Beispiel #1
0
        public IList <Model.sys_lottery> GetModelListByPage(Model.sys_lottery model)
        {
            string where = GetWhere(model);
            model.Total  = DBHelperDapper.DBHelper.GetRecordCountByTBName <Model.sys_lottery>(where, model);

            return(DBHelperDapper.DBHelper.GetModelListPageByTBName <ConsoleDapper.Model.sys_lottery>
                       (where, model.Order + (model.IsAsc ? " ASC" : " DESC"),
                       (model.Page - 1) * model.PageSize, model.Page * model.PageSize, model));
        }
Beispiel #2
0
 public IList <Model.sys_lottery> GetModelListByPage(Model.sys_lottery model)
 {
     return(BMAData.Instance.Sys_lottery.GetModelListByPage(model));
 }
Beispiel #3
0
        public int AddModel(Model.sys_lottery model)
        {
            int no = BMAData.Instance.Sys_lottery.AddModel(model);

            return(no);
        }
Beispiel #4
0
 public int DeleteModel(Model.sys_lottery model)
 {
     return(BMAData.Instance.Sys_lottery.DeleteModel(model));
 }
Beispiel #5
0
 public Model.sys_lottery GetModel(Model.sys_lottery model)
 {
     return(BMAData.Instance.Sys_lottery.GetModel(model));
 }