Exemple #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)
     };
 }
Exemple #2
0
		private void detach_OrderDetailEntities(OrderDetailEntity entity)
		{
			this.SendPropertyChanging();
			entity.OrderEntity = null;
		}
Exemple #3
0
 partial void DeleteOrderDetailEntity(OrderDetailEntity instance);
Exemple #4
0
 partial void UpdateOrderDetailEntity(OrderDetailEntity instance);
Exemple #5
0
 partial void InsertOrderDetailEntity(OrderDetailEntity instance);
Exemple #6
0
		private void attach_OrderDetailEntities(OrderDetailEntity entity)
		{
			this.SendPropertyChanging();
			entity.ProductEntity = this;
		}
Exemple #7
0
 private void detach_OrderDetailEntities(OrderDetailEntity entity)
 {
     this.SendPropertyChanging();
     entity.OrderEntity = null;
 }
Exemple #8
0
 partial void DeleteOrderDetailEntity(OrderDetailEntity instance);
Exemple #9
0
 partial void UpdateOrderDetailEntity(OrderDetailEntity instance);
Exemple #10
0
 partial void InsertOrderDetailEntity(OrderDetailEntity instance);
Exemple #11
0
 private void attach_OrderDetailEntities(OrderDetailEntity entity)
 {
     this.SendPropertyChanging();
     entity.ProductEntity = this;
 }