Esempio n. 1
0
        public List <Chain.Model.MemChild> DataTableToList1(DataTable dt)
        {
            List <Chain.Model.MemChild> modelList = new List <Chain.Model.MemChild>();
            int rowsCount = dt.Rows.Count;

            if (rowsCount > 0)
            {
                for (int i = 0; i < rowsCount; i++)
                {
                    Chain.Model.MemChild model = new Chain.Model.MemChild();
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
Esempio n. 2
0
 public int Update(Chain.Model.MemChild model)
 {
     return(this.dal.Update(model));
 }
Esempio n. 3
0
 public int Add(Chain.Model.MemChild model)
 {
     return(this.dal.Add(model));
 }