/// <summary>Updates the specified NWService.Dal.EntityClasses.CustomerEntity 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 UpdateFromCustomer(this NWService.Dal.EntityClasses.CustomerEntity toUpdate, NWService.Dtos.DtoClasses.Customer dto)
 {
     if ((toUpdate == null) || (dto == null))
     {
         return;
     }
     toUpdate.Address      = dto.Address;
     toUpdate.City         = dto.City;
     toUpdate.CompanyName  = dto.CompanyName;
     toUpdate.ContactName  = dto.ContactName;
     toUpdate.ContactTitle = dto.ContactTitle;
     toUpdate.Country      = dto.Country;
     toUpdate.CustomerId   = dto.CustomerId;
     toUpdate.Fax          = dto.Fax;
     toUpdate.Phone        = dto.Phone;
     toUpdate.PostalCode   = dto.PostalCode;
     toUpdate.Region       = dto.Region;
 }
 /// <summary>Extension method which produces a projection to NWService.Dtos.DtoClasses.Customer which instances are projected from the
 /// NWService.Dal.EntityClasses.CustomerEntity 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.CustomerEntity instance created from the specified entity instance</returns>
 public static NWService.Dtos.DtoClasses.Customer ProjectToCustomer(this NWService.Dal.EntityClasses.CustomerEntity entity)
 {
     return(_compiledProjector(entity));
 }