/// <summary> /// Maps customer entity to customer business object. /// </summary> /// <param name="c">A customer entity to be transformed.</param> /// <returns>A customer business object.</returns> internal static Customer ToBusinessObject(CustomerEntity c) { return new Customer { CustomerId = c.CustomerId, Company = c.CompanyName, City = c.City, Country = c.Country, Version = VersionConverter.ToString(c.Version) }; }
partial void DeleteCustomerEntity(CustomerEntity instance);
partial void UpdateCustomerEntity(CustomerEntity instance);
partial void InsertCustomerEntity(CustomerEntity instance);