Ejemplo n.º 1
0
 public CampoAttribute(string nome, CampoTipo tipo = CampoTipo.Nul,
                       int tamanho = 0, int precisao = 0, Type ownerType = null, object ownerProp = null)
 {
     Nome      = nome;
     Tipo      = tipo;
     Tamanho   = tamanho;
     Precisao  = precisao;
     OwnerProp = ownerProp as PropertyInfo;
     OwnerType = ownerType;
 }
Ejemplo n.º 2
0
 public static bool IsPwd(this CampoTipo tipo) => tipo.In(CampoTipo.Pwd);
Ejemplo n.º 3
0
 public static bool IsReq(this CampoTipo tipo) => tipo.In(CampoTipo.Req);
Ejemplo n.º 4
0
 public static bool IsNul(this CampoTipo tipo) => tipo.In(CampoTipo.Nul);
Ejemplo n.º 5
0
 public static bool IsKey(this CampoTipo tipo) => tipo.In(CampoTipo.Key);