diff options
Diffstat (limited to 'Codemerx/Gestor.Model/Model.Attributes')
9 files changed, 319 insertions, 0 deletions
diff --git a/Codemerx/Gestor.Model/Model.Attributes/EntityAttribute.cs b/Codemerx/Gestor.Model/Model.Attributes/EntityAttribute.cs new file mode 100644 index 0000000..46113ad --- /dev/null +++ b/Codemerx/Gestor.Model/Model.Attributes/EntityAttribute.cs @@ -0,0 +1,40 @@ +using System;
+using System.Runtime.CompilerServices;
+
+namespace Gestor.Model.Attributes
+{
+ [AttributeUsage(AttributeTargets.All)]
+ public class EntityAttribute : Attribute
+ {
+ public virtual string Description
+ {
+ get
+ {
+ return this.DescriptionValue;
+ }
+ }
+
+ protected string DescriptionValue
+ {
+ get
+ {
+ return this.Tipo;
+ }
+ set
+ {
+ this.Tipo = value;
+ }
+ }
+
+ public string Tipo
+ {
+ get;
+ set;
+ }
+
+ public EntityAttribute(string tipo)
+ {
+ this.Tipo = tipo;
+ }
+ }
+}
\ No newline at end of file diff --git a/Codemerx/Gestor.Model/Model.Attributes/ForceLogAttribute.cs b/Codemerx/Gestor.Model/Model.Attributes/ForceLogAttribute.cs new file mode 100644 index 0000000..a9b0f20 --- /dev/null +++ b/Codemerx/Gestor.Model/Model.Attributes/ForceLogAttribute.cs @@ -0,0 +1,39 @@ +using System;
+using System.Runtime.CompilerServices;
+
+namespace Gestor.Model.Attributes
+{
+ public class ForceLogAttribute : Attribute
+ {
+ public virtual bool Description
+ {
+ get
+ {
+ return this.DescriptionValue;
+ }
+ }
+
+ protected bool DescriptionValue
+ {
+ get
+ {
+ return this.Log;
+ }
+ set
+ {
+ this.Log = value;
+ }
+ }
+
+ public bool Log
+ {
+ get;
+ set;
+ }
+
+ public ForceLogAttribute(bool log = true)
+ {
+ this.Log = log;
+ }
+ }
+}
\ No newline at end of file diff --git a/Codemerx/Gestor.Model/Model.Attributes/HelpAttribute.cs b/Codemerx/Gestor.Model/Model.Attributes/HelpAttribute.cs new file mode 100644 index 0000000..54ed201 --- /dev/null +++ b/Codemerx/Gestor.Model/Model.Attributes/HelpAttribute.cs @@ -0,0 +1,40 @@ +using System;
+using System.Runtime.CompilerServices;
+
+namespace Gestor.Model.Attributes
+{
+ [AttributeUsage(AttributeTargets.All)]
+ public class HelpAttribute : Attribute
+ {
+ public virtual string Description
+ {
+ get
+ {
+ return this.DescriptionValue;
+ }
+ }
+
+ protected string DescriptionValue
+ {
+ get
+ {
+ return this.Tipo;
+ }
+ set
+ {
+ this.Tipo = value;
+ }
+ }
+
+ public string Tipo
+ {
+ get;
+ set;
+ }
+
+ public HelpAttribute(string tipo)
+ {
+ this.Tipo = tipo;
+ }
+ }
+}
\ No newline at end of file diff --git a/Codemerx/Gestor.Model/Model.Attributes/LogAttribute.cs b/Codemerx/Gestor.Model/Model.Attributes/LogAttribute.cs new file mode 100644 index 0000000..ca9e763 --- /dev/null +++ b/Codemerx/Gestor.Model/Model.Attributes/LogAttribute.cs @@ -0,0 +1,40 @@ +using System;
+using System.Runtime.CompilerServices;
+
+namespace Gestor.Model.Attributes
+{
+ [AttributeUsage(AttributeTargets.All)]
+ public class LogAttribute : Attribute
+ {
+ public virtual bool Description
+ {
+ get
+ {
+ return this.DescriptionValue;
+ }
+ }
+
+ protected bool DescriptionValue
+ {
+ get
+ {
+ return this.Log;
+ }
+ set
+ {
+ this.Log = value;
+ }
+ }
+
+ public bool Log
+ {
+ get;
+ set;
+ }
+
+ public LogAttribute(bool log = true)
+ {
+ this.Log = log;
+ }
+ }
+}
\ No newline at end of file diff --git a/Codemerx/Gestor.Model/Model.Attributes/NameAttribute.cs b/Codemerx/Gestor.Model/Model.Attributes/NameAttribute.cs new file mode 100644 index 0000000..fd04e69 --- /dev/null +++ b/Codemerx/Gestor.Model/Model.Attributes/NameAttribute.cs @@ -0,0 +1,40 @@ +using System;
+using System.Runtime.CompilerServices;
+
+namespace Gestor.Model.Attributes
+{
+ [AttributeUsage(AttributeTargets.All)]
+ public class NameAttribute : Attribute
+ {
+ public virtual bool Description
+ {
+ get
+ {
+ return this.DescriptionValue;
+ }
+ }
+
+ protected bool DescriptionValue
+ {
+ get
+ {
+ return this.Log;
+ }
+ set
+ {
+ this.Log = value;
+ }
+ }
+
+ public bool Log
+ {
+ get;
+ set;
+ }
+
+ public NameAttribute(bool log = true)
+ {
+ this.Log = log;
+ }
+ }
+}
\ No newline at end of file diff --git a/Codemerx/Gestor.Model/Model.Attributes/OldValue2Attribute.cs b/Codemerx/Gestor.Model/Model.Attributes/OldValue2Attribute.cs new file mode 100644 index 0000000..83fb5cf --- /dev/null +++ b/Codemerx/Gestor.Model/Model.Attributes/OldValue2Attribute.cs @@ -0,0 +1,20 @@ +using System;
+using System.Runtime.CompilerServices;
+
+namespace Gestor.Model.Attributes
+{
+ [AttributeUsage(AttributeTargets.Field)]
+ public class OldValue2Attribute : Attribute
+ {
+ public string OldValue2
+ {
+ get;
+ private set;
+ }
+
+ public OldValue2Attribute(string oldValue)
+ {
+ this.OldValue2 = oldValue;
+ }
+ }
+}
\ No newline at end of file diff --git a/Codemerx/Gestor.Model/Model.Attributes/OldValueAttribute.cs b/Codemerx/Gestor.Model/Model.Attributes/OldValueAttribute.cs new file mode 100644 index 0000000..4f8c17c --- /dev/null +++ b/Codemerx/Gestor.Model/Model.Attributes/OldValueAttribute.cs @@ -0,0 +1,20 @@ +using System;
+using System.Runtime.CompilerServices;
+
+namespace Gestor.Model.Attributes
+{
+ [AttributeUsage(AttributeTargets.Field)]
+ public class OldValueAttribute : Attribute
+ {
+ public string OldValue
+ {
+ get;
+ private set;
+ }
+
+ public OldValueAttribute(string oldValue)
+ {
+ this.OldValue = oldValue;
+ }
+ }
+}
\ No newline at end of file diff --git a/Codemerx/Gestor.Model/Model.Attributes/TipoAttribute.cs b/Codemerx/Gestor.Model/Model.Attributes/TipoAttribute.cs new file mode 100644 index 0000000..f4590da --- /dev/null +++ b/Codemerx/Gestor.Model/Model.Attributes/TipoAttribute.cs @@ -0,0 +1,40 @@ +using System;
+using System.Runtime.CompilerServices;
+
+namespace Gestor.Model.Attributes
+{
+ [AttributeUsage(AttributeTargets.All)]
+ public class TipoAttribute : Attribute
+ {
+ public virtual string Description
+ {
+ get
+ {
+ return this.DescriptionValue;
+ }
+ }
+
+ protected string DescriptionValue
+ {
+ get
+ {
+ return this.Tipo;
+ }
+ set
+ {
+ this.Tipo = value;
+ }
+ }
+
+ public string Tipo
+ {
+ get;
+ set;
+ }
+
+ public TipoAttribute(string tipo)
+ {
+ this.Tipo = tipo;
+ }
+ }
+}
\ No newline at end of file diff --git a/Codemerx/Gestor.Model/Model.Attributes/WidthAttribute.cs b/Codemerx/Gestor.Model/Model.Attributes/WidthAttribute.cs new file mode 100644 index 0000000..af31e8f --- /dev/null +++ b/Codemerx/Gestor.Model/Model.Attributes/WidthAttribute.cs @@ -0,0 +1,40 @@ +using System;
+using System.Runtime.CompilerServices;
+
+namespace Gestor.Model.Attributes
+{
+ [AttributeUsage(AttributeTargets.All)]
+ public class WidthAttribute : Attribute
+ {
+ public virtual string Description
+ {
+ get
+ {
+ return this.DescriptionValue;
+ }
+ }
+
+ protected string DescriptionValue
+ {
+ get
+ {
+ return this.Tipo;
+ }
+ set
+ {
+ this.Tipo = value;
+ }
+ }
+
+ public string Tipo
+ {
+ get;
+ set;
+ }
+
+ public WidthAttribute(string tipo)
+ {
+ this.Tipo = tipo;
+ }
+ }
+}
\ No newline at end of file |