Пример #1
0
        public static bool Equals(ShoppingCartCriteria?left, ShoppingCartCriteria?right)
        {
            bool result = ShoppingCartId.Equals(left?.ShoppingCartId, right?.ShoppingCartId);

            result &= (result ? SalesPointId.Equals(left?.SalesPointId, right?.SalesPointId) : false);
            result &= (result ? ViewPointId.Equals(left?.ViewPointId, right?.ViewPointId) : false);
            result &= (result ? SalesPersonId.Equals(left?.SalesPersonId, right?.SalesPersonId) : false);
            result &= (result ? CustomerId.Equals(left?.CustomerId, right?.CustomerId) : false);

            return(result);
        }
Пример #2
0
 public ViewPointId ConvertTo(String value)
 {
     return(ViewPointId.Parse(value));
 }
Пример #3
0
        public ViewPointId?ConvertNullableTo(String?value)
        {
            ViewPointId.TryParse(value, out ViewPointId? result);

            return(result);
        }
Пример #4
0
 public String ConvertFrom(ViewPointId value)
 {
     return(value.ToString());
 }