Esempio n. 1
0
 /// <summary>
 /// Maps order entity to order business object.
 /// </summary>
 /// <param name="o">An order entity.</param>
 /// <returns>An order business object.</returns>
 internal static Order ToBusinessObject(OrderEntity o)
 {
     return new Order
     {
         OrderId = o.OrderId,
         Freight = o.Freight.HasValue ? (float)o.Freight : default(float),
         OrderDate = o.OrderDate,
         RequiredDate = o.RequiredDate.HasValue ? (DateTime)o.RequiredDate : default(DateTime),
         Version = VersionConverter.ToString(o.Version)
     };
 }
Esempio n. 2
0
		private void detach_OrderEntities(OrderEntity entity)
		{
			this.SendPropertyChanging();
			entity.CustomerEntity = null;
		}
Esempio n. 3
0
 partial void DeleteOrderEntity(OrderEntity instance);
Esempio n. 4
0
 partial void UpdateOrderEntity(OrderEntity instance);
Esempio n. 5
0
 partial void InsertOrderEntity(OrderEntity instance);