summaryrefslogtreecommitdiff
path: root/Gestor.Model/Gestor.Model.Domain.Common/Banco.cs
blob: b5cf70cb0482f8c156e2ff7758bfb90899024880 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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>>();
	}
}