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; }
public static bool IsPwd(this CampoTipo tipo) => tipo.In(CampoTipo.Pwd);
public static bool IsReq(this CampoTipo tipo) => tipo.In(CampoTipo.Req);
public static bool IsNul(this CampoTipo tipo) => tipo.In(CampoTipo.Nul);
public static bool IsKey(this CampoTipo tipo) => tipo.In(CampoTipo.Key);