private static Customer TranslateFromCustomerRowToCustomerEntity(OrdersManagementDataSet.CustomersRow customersRow) { Customer customer = new Customer(); customer.Address = customersRow.IsAddressNull() ? null : customersRow.Address; customer.City = customersRow.IsCityNull() ? null : customersRow.City; customer.CompanyName = customersRow.CompanyName; customer.CustomerId = customersRow.CustomerId; customer.PostalCode = customersRow.IsPostalCodeNull() ? null : customersRow.PostalCode; customer.Region = customersRow.IsRegionNull() ? null : customersRow.Region; return customer; }