示例#1
0
        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);
        }
示例#2
0
        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;
        }