public static DistrictInfo PopulateDistrictInfo(IDataReader reader) { DistrictInfo entity = new DistrictInfo() { ID = (int)reader["ID"], CityID = (int)reader["CityID"], Name = reader["Name"] as string, PostCode = reader["PostCode"] as string, }; return(entity); }
public static DistrictInfo PopulateDistrictInfo(IDataReader reader) { DistrictInfo entity = new DistrictInfo() { ID = (int)reader["ID"], CityID = (int)reader["CityID"], Name = reader["Name"] as string, PostCode = reader["PostCode"] as string, }; return entity; }