summaryrefslogtreecommitdiff
path: root/Gestor.Model/Gestor.Model.Attributes/ForceLogAttribute.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Gestor.Model/Gestor.Model.Attributes/ForceLogAttribute.cs')
-rw-r--r--Gestor.Model/Gestor.Model.Attributes/ForceLogAttribute.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/Gestor.Model/Gestor.Model.Attributes/ForceLogAttribute.cs b/Gestor.Model/Gestor.Model.Attributes/ForceLogAttribute.cs
new file mode 100644
index 0000000..673d14f
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Attributes/ForceLogAttribute.cs
@@ -0,0 +1,27 @@
+using System;
+
+namespace Gestor.Model.Attributes;
+
+public class ForceLogAttribute : Attribute
+{
+ public bool Log { get; set; }
+
+ public virtual bool Description => DescriptionValue;
+
+ protected bool DescriptionValue
+ {
+ get
+ {
+ return Log;
+ }
+ set
+ {
+ Log = value;
+ }
+ }
+
+ public ForceLogAttribute(bool log = true)
+ {
+ Log = log;
+ }
+}