예제 #1
0
 public virtual bool Equals(Order other)
 {
     if(ReferenceEquals(null, other))
     {
         return false;
     }
     if(ReferenceEquals(this, other))
     {
         return true;
     }
     if(OrderId != default(int))
     {
         return other.OrderId == OrderId;
     }
     return other.OrderId == OrderId && other.OrderDate == OrderDate && other.RequiredDate == RequiredDate && other.ShippedDate == ShippedDate && other.Freight == Freight && other.ShipName == ShipName && other.ShipAddress == ShipAddress && other.ShipCity == ShipCity && other.ShipRegion == ShipRegion && other.ShipPostalCode == ShipPostalCode && other.ShipCountry == ShipCountry && other.Customer == Customer && other.Employee == Employee && other.Shipper == Shipper;
 }
예제 #2
0
 public void Create(Order v)
 {
     _Northwind.Save(v);
 }
예제 #3
0
 public void Delete(Order v)
 {
     _Northwind.Delete(v);
 }
예제 #4
0
 public void Update(Order v)
 {
     _Northwind.Update(v);
 }
예제 #5
0
 public void Delete(Order v)
 {
     _northwind.GetCurrentSession().Delete(v);
 }
예제 #6
0
 public void Create(Order v)
 {
     _northwind.GetCurrentSession().Save(v);
 }
예제 #7
0
 public void Update(Order v)
 {
     _northwind.GetCurrentSession().Update(v);
 }
 public string ToString(Order obj)
 {
     return obj.OrderId.ToString();
 }