示例#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;
 }
示例#2
0
 public static bool IsPwd(this CampoTipo tipo) => tipo.In(CampoTipo.Pwd);
示例#3
0
 public static bool IsReq(this CampoTipo tipo) => tipo.In(CampoTipo.Req);
示例#4
0
 public static bool IsNul(this CampoTipo tipo) => tipo.In(CampoTipo.Nul);
示例#5
0
 public static bool IsKey(this CampoTipo tipo) => tipo.In(CampoTipo.Key);