示例#1
0
文件: Region.cs 项目: Adithyat/Nexum
        public static string GetRegionName()
        {
            DataTable dt = RegionDL.GetRegionList();
            DataRow   dr = dt.Rows[0];

            return(dr["name"].ToString());
        }
示例#2
0
文件: Region.cs 项目: Adithyat/Nexum
        public static List <Region> GetRegionList()
        {
            List <Region> regions = new List <Region>();

            DataTable dt = RegionDL.GetRegionList();

            foreach (DataRow dr in dt.Rows)
            {
                Region Region = new Region();
                Region.RegionID   = Convert.ToInt16(dr["ID"].ToString());
                Region.RegionName = dr["name"].ToString();

                regions.Add(Region);
            }
            return(regions);
        }