public static void ToRow(Country bean, CountryRow row) { if (bean == null) return; row.Id = bean.Id; row.ShortName = bean.ShortName; row.Name = bean.Name; }
public static Country ToBean(CountryRow row) { if (row == null) return null; var bean = new Country(); bean.Id = row.Id; bean.ShortName = row.ShortName; bean.Name = row.Name; return bean; }