public Cheque(Lfx.Data.Connection dataBase, decimal importe, int numero, string emisor, NullableDateTime fechaEmision, NullableDateTime fechaCobro, Bancos.Banco banco) : this(dataBase) { this.Importe = importe; this.Numero = numero; this.Emisor = emisor; this.FechaEmision = fechaEmision; this.FechaCobro = fechaCobro; this.Banco = banco; }
public override bool Equals(object obj) { NullableDateTime LDat = obj as NullableDateTime; if (object.ReferenceEquals(obj, null)) { if (this.Value.Year == 1 && this.Value.Month == 1 && this.Value.Day == 1) { // 01-01-0001 es igual a null return(true); } else { return(false); } } else { return(this.Value == LDat.Value); } }