示例#1
0
        public List<Dictionary<string, object>> GetProcData(Model.EACategory model)
        {
            var procName = "";

            List<Dictionary<string, object>> list = Db.Fetch<Dictionary<string, object>>($"exec {procName} @0", model.ID);
            return list;

        }
示例#2
0
        public Model.EACategory GetPublicInfo(string id)
        {
            Model.EACategory model = Db.SingleById <Model.EACategory>(id);
            if (model != null & model.ID != null)
            {
                model.Cols = Db.Fetch <Model.EACatCols>(new Sql("select * from EACatCols where RID=@0", model.ID));
            }

            return(model);
        }