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; }
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); }