private Catering getFromDbRow(DataRow row) { var catering = new Catering { Id = DbConverter.ToInt32(row, nameof(Catering.Id)), Name = DbConverter.ToString(row, nameof(Catering.Name)), Comment = DbConverter.ToString(row, nameof(Catering.Comment)), AddressText = DbConverter.ToString(row, nameof(Catering.AddressText)), Latitude = DbConverter.ToDecimal(row, nameof(Catering.Latitude)), Longitude = DbConverter.ToDecimal(row, nameof(Catering.Longitude)), CateringCategory = new CateringCategory { Id = DbConverter.ToInt32(row, "CategoryId"), Name = DbConverter.ToString(row, "CateringName"), Comment = DbConverter.ToString(row, "CateringComment"), DisplayName = DbConverter.ToString(row, "DisplayName"), } }; return(catering); }