Beispiel #1
0
 /// <summary>
 /// Maps order detail entity to order detail business object.
 /// </summary>
 /// <param name="od">An order detail entity.</param>
 /// <returns>An order detail business object.</returns>
 internal static OrderDetail ToBusinessObject(OrderDetailEntity od)
 {
     return new OrderDetail
     {
         ProductName = od.ProductEntity.ProductName,
         Discount = (float)od.Discount,
         Quantity = od.Quantity,
         UnitPrice = (float)od.UnitPrice,
         Version = VersionConverter.ToString(od.Version)
     };
 }
Beispiel #2
0
		private void detach_OrderDetailEntities(OrderDetailEntity entity)
		{
			this.SendPropertyChanging();
			entity.OrderEntity = null;
		}
Beispiel #3
0
 partial void DeleteOrderDetailEntity(OrderDetailEntity instance);
Beispiel #4
0
 partial void UpdateOrderDetailEntity(OrderDetailEntity instance);
Beispiel #5
0
 partial void InsertOrderDetailEntity(OrderDetailEntity instance);
Beispiel #6
0
		private void attach_OrderDetailEntities(OrderDetailEntity entity)
		{
			this.SendPropertyChanging();
			entity.ProductEntity = this;
		}
Beispiel #7
0
 private void detach_OrderDetailEntities(OrderDetailEntity entity)
 {
     this.SendPropertyChanging();
     entity.OrderEntity = null;
 }
Beispiel #8
0
 partial void DeleteOrderDetailEntity(OrderDetailEntity instance);
Beispiel #9
0
 partial void UpdateOrderDetailEntity(OrderDetailEntity instance);
Beispiel #10
0
 partial void InsertOrderDetailEntity(OrderDetailEntity instance);
Beispiel #11
0
 private void attach_OrderDetailEntities(OrderDetailEntity entity)
 {
     this.SendPropertyChanging();
     entity.ProductEntity = this;
 }