diff options
| author | Lucas Faria Mendes <lucas.fariamo08@gmail.com> | 2026-03-30 17:17:46 +0000 |
|---|---|---|
| committer | Lucas Faria Mendes <lucas.fariamo08@gmail.com> | 2026-03-30 17:17:46 +0000 |
| commit | 0440c722a221b8068bbf388c1c0c51f0faff0451 (patch) | |
| tree | 169cbf90c50ff7961db82ecb606c50c2a45a1688 /Gestor.Model/Gestor.Model.Domain.Common/Banco.cs | |
| parent | 225aa1499e37faf9d38257caabbadc68d78b427e (diff) | |
| download | gestor-master.tar.gz gestor-master.zip | |
Diffstat (limited to 'Gestor.Model/Gestor.Model.Domain.Common/Banco.cs')
| -rw-r--r-- | Gestor.Model/Gestor.Model.Domain.Common/Banco.cs | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/Gestor.Model/Gestor.Model.Domain.Common/Banco.cs b/Gestor.Model/Gestor.Model.Domain.Common/Banco.cs new file mode 100644 index 0000000..b5cf70c --- /dev/null +++ b/Gestor.Model/Gestor.Model.Domain.Common/Banco.cs @@ -0,0 +1,56 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using Gestor.Model.Attributes; +using Gestor.Model.Domain.Generic; +using Newtonsoft.Json; + +namespace Gestor.Model.Domain.Common; + +public class Banco : IDomain +{ + private string _nome; + + private string _site; + + public int Id { get; set; } + + [Log(true)] + public int Codigo { get; set; } + + [Log(true)] + [Name(true)] + [Description("BANCO")] + public string Nome + { + get + { + return _nome?.ToUpper(); + } + set + { + _nome = value; + } + } + + [Log(true)] + public string Site + { + get + { + return _site?.ToUpper().Trim(); + } + set + { + _site = value; + } + } + + [JsonIgnore] + public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate; + + public List<KeyValuePair<string, string>> Validate() + { + return new List<KeyValuePair<string, string>>(); + } +} |