Exemple #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);
        }
Exemple #2
0
 public int Update(Chain.Model.MemChild model)
 {
     return(this.dal.Update(model));
 }
Exemple #3
0
 public int Add(Chain.Model.MemChild model)
 {
     return(this.dal.Add(model));
 }