示例#1
0
 protected bool Equals(Entity other)
 {
     return(Boolean == other.Boolean && NullableBoolean == other.NullableBoolean && Byte == other.Byte && NullableByte == other.NullableByte && SByte == other.SByte && NullableSByte == other.NullableSByte &&
            Char == other.Char && NullableChar == other.NullableChar && Decimal == other.Decimal && NullableDecimal == other.NullableDecimal && Double.Equals(other.Double) &&
            NullableDouble.Equals(other.NullableDouble) && Single.Equals(other.Single) && NullableSingle.Equals(other.NullableSingle) && Int32 == other.Int32 && NullableInt32 == other.NullableInt32 &&
            UInt32 == other.UInt32 && NullableUInt32 == other.NullableUInt32 && Int64 == other.Int64 && NullableInt64 == other.NullableInt64 && UInt64 == other.UInt64 && NullableUInt64 == other.NullableUInt64 &&
            Int16 == other.Int16 && NullableInt16 == other.NullableInt16 && UInt16 == other.UInt16 && NullableUInt16 == other.NullableUInt16 && Enum == other.Enum && NullableEnum == other.NullableEnum &&
            string.Equals(String, other.String) && Equals(Nested, other.Nested));
 }