/// <summary>Updates the specified NWService.Dal.EntityClasses.OrderDetailEntity entity with the values stored in the dto object specified</summary>
 /// <param name="toUpdate">the entity instance to update.</param>
 /// <param name="dto">The dto object containing the source values.</param>
 /// <remarks>The PK field of toUpdate is set only if it's not marked as readonly.</remarks>
 public static void UpdateFromOrderDetail(this NWService.Dal.EntityClasses.OrderDetailEntity toUpdate, NWService.Dtos.DtoClasses.OrderDetail dto)
 {
     if ((toUpdate == null) || (dto == null))
     {
         return;
     }
     toUpdate.Discount  = dto.Discount;
     toUpdate.OrderId   = dto.OrderId;
     toUpdate.ProductId = dto.ProductId;
     toUpdate.Quantity  = dto.Quantity;
     toUpdate.UnitPrice = dto.UnitPrice;
 }
 /// <summary>Extension method which produces a projection to NWService.Dtos.DtoClasses.OrderDetail which instances are projected from the
 /// NWService.Dal.EntityClasses.OrderDetailEntity entity instance specified, the root entity of the derived element returned by this method.</summary>
 /// <param name="entity">The entity to project from.</param>
 /// <returns>NWService.Dal.EntityClasses.OrderDetailEntity instance created from the specified entity instance</returns>
 public static NWService.Dtos.DtoClasses.OrderDetail ProjectToOrderDetail(this NWService.Dal.EntityClasses.OrderDetailEntity entity)
 {
     return(_compiledProjector(entity));
 }