Ejemplo n.º 1
0
        public override bool EntityEquals(BaseTypeForLinq other)
        {
            Debug.Assert(other is OrderForLinq, "Expected other side to already have been checked to be the correct type.");

            var otherOrder = (OrderForLinq)other;
            var customersEqual = Customer == null ? otherOrder.Customer == null : Customer.Id == otherOrder.Customer.Id;
            return base.EntityEquals(other) && customersEqual;
        }
Ejemplo n.º 2
0
        public override bool EntityEquals(BaseTypeForLinq other)
        {
            Debug.Assert(other is OrderForLinq, "Expected other side to already have been checked to be the correct type.");

            var otherOrder     = (OrderForLinq)other;
            var customersEqual = Customer == null ? otherOrder.Customer == null : Customer.Id == otherOrder.Customer.Id;

            return(base.EntityEquals(other) && customersEqual);
        }
        public override bool EntityEquals(BaseTypeForLinq other)
        {
            Debug.Assert(other is CustomerForLinq, "Expected other side to already have been checked to be the correct type.");

            var otherCustomer = (CustomerForLinq)other;
            var customersEqual = Orders == null
                                     ? otherCustomer.Orders == null
                                     : Orders.SequenceEqual(otherCustomer.Orders, new BaseTypeForLinqComparer());

            return base.EntityEquals(other) && customersEqual;
        }
Ejemplo n.º 4
0
        public override bool EntityEquals(BaseTypeForLinq other)
        {
            Debug.Assert(other is CustomerForLinq, "Expected other side to already have been checked to be the correct type.");

            var otherCustomer  = (CustomerForLinq)other;
            var customersEqual = Orders == null
                                     ? otherCustomer.Orders == null
                                     : Orders.SequenceEqual(otherCustomer.Orders, new BaseTypeForLinqComparer());

            return(base.EntityEquals(other) && customersEqual);
        }