예제 #1
0
        public void Add(WayBillRoute wayBillRoute)
        {
            if (list.Exists(item => item == wayBillRoute))
                return;

            list.Add(wayBillRoute);
        }
예제 #2
0
        protected override void loadFromSql()
        {
            DataTable dt = _provider.Select("WayBillRoute");

            foreach (DataRow row in dt.Rows)
            {
                WayBillRoute wayBillRoute = new WayBillRoute(row);
                Add(wayBillRoute);
            }
        }