public RelacaoAttribute(string[] campos, RelacaoTipo tipo = RelacaoTipo.NoUpdate, Type ownerType = null, object ownerProp = null, object ownerObj = null) { Campos = campos; Tipo = tipo; OwnerType = ownerType; OwnerProp = ownerProp as PropertyInfo; OwnerObj = ownerObj; }
public RelacaoAttribute(string campo, RelacaoTipo tipo = RelacaoTipo.NoUpdate) { Tipo = tipo; Campos = new[] { campo }; }