From 0440c722a221b8068bbf388c1c0c51f0faff0451 Mon Sep 17 00:00:00 2001 From: Lucas Faria Mendes Date: Mon, 30 Mar 2026 14:17:46 -0300 Subject: some dlls --- .../Gestor.Model.Attributes/ForceLogAttribute.cs | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Gestor.Model/Gestor.Model.Attributes/ForceLogAttribute.cs (limited to 'Gestor.Model/Gestor.Model.Attributes/ForceLogAttribute.cs') 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; + } +} -- cgit v1.2.3