From 674ca83ba9243a9e95a7568c797668dab6aee26a Mon Sep 17 00:00:00 2001 From: Lucas Faria Mendes Date: Mon, 30 Mar 2026 10:35:25 -0300 Subject: feat: upload files --- Gestor.Model/Model.Attributes/EntityAttribute.cs | 40 ++++++++++++++++++++++ Gestor.Model/Model.Attributes/ForceLogAttribute.cs | 39 +++++++++++++++++++++ Gestor.Model/Model.Attributes/HelpAttribute.cs | 40 ++++++++++++++++++++++ Gestor.Model/Model.Attributes/LogAttribute.cs | 40 ++++++++++++++++++++++ Gestor.Model/Model.Attributes/NameAttribute.cs | 40 ++++++++++++++++++++++ .../Model.Attributes/OldValue2Attribute.cs | 20 +++++++++++ Gestor.Model/Model.Attributes/OldValueAttribute.cs | 20 +++++++++++ Gestor.Model/Model.Attributes/TipoAttribute.cs | 40 ++++++++++++++++++++++ Gestor.Model/Model.Attributes/WidthAttribute.cs | 40 ++++++++++++++++++++++ 9 files changed, 319 insertions(+) create mode 100644 Gestor.Model/Model.Attributes/EntityAttribute.cs create mode 100644 Gestor.Model/Model.Attributes/ForceLogAttribute.cs create mode 100644 Gestor.Model/Model.Attributes/HelpAttribute.cs create mode 100644 Gestor.Model/Model.Attributes/LogAttribute.cs create mode 100644 Gestor.Model/Model.Attributes/NameAttribute.cs create mode 100644 Gestor.Model/Model.Attributes/OldValue2Attribute.cs create mode 100644 Gestor.Model/Model.Attributes/OldValueAttribute.cs create mode 100644 Gestor.Model/Model.Attributes/TipoAttribute.cs create mode 100644 Gestor.Model/Model.Attributes/WidthAttribute.cs (limited to 'Gestor.Model/Model.Attributes') diff --git a/Gestor.Model/Model.Attributes/EntityAttribute.cs b/Gestor.Model/Model.Attributes/EntityAttribute.cs new file mode 100644 index 0000000..46113ad --- /dev/null +++ b/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/Gestor.Model/Model.Attributes/ForceLogAttribute.cs b/Gestor.Model/Model.Attributes/ForceLogAttribute.cs new file mode 100644 index 0000000..a9b0f20 --- /dev/null +++ b/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/Gestor.Model/Model.Attributes/HelpAttribute.cs b/Gestor.Model/Model.Attributes/HelpAttribute.cs new file mode 100644 index 0000000..54ed201 --- /dev/null +++ b/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/Gestor.Model/Model.Attributes/LogAttribute.cs b/Gestor.Model/Model.Attributes/LogAttribute.cs new file mode 100644 index 0000000..ca9e763 --- /dev/null +++ b/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/Gestor.Model/Model.Attributes/NameAttribute.cs b/Gestor.Model/Model.Attributes/NameAttribute.cs new file mode 100644 index 0000000..fd04e69 --- /dev/null +++ b/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/Gestor.Model/Model.Attributes/OldValue2Attribute.cs b/Gestor.Model/Model.Attributes/OldValue2Attribute.cs new file mode 100644 index 0000000..83fb5cf --- /dev/null +++ b/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/Gestor.Model/Model.Attributes/OldValueAttribute.cs b/Gestor.Model/Model.Attributes/OldValueAttribute.cs new file mode 100644 index 0000000..4f8c17c --- /dev/null +++ b/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/Gestor.Model/Model.Attributes/TipoAttribute.cs b/Gestor.Model/Model.Attributes/TipoAttribute.cs new file mode 100644 index 0000000..f4590da --- /dev/null +++ b/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/Gestor.Model/Model.Attributes/WidthAttribute.cs b/Gestor.Model/Model.Attributes/WidthAttribute.cs new file mode 100644 index 0000000..af31e8f --- /dev/null +++ b/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 -- cgit v1.2.3