示例#1
0
 public void Update(Topic item)
 {
     EnterpriseDAO.Update("UpdateTopic", System.Data.CommandType.StoredProcedure, DataHelper.GetParamsForTopic(item));
 }
示例#2
0
        public List <Entities.IDNamePair> Get(string tableName)
        {
            var dt = EnterpriseDAO.Get("select * from " + tableName, System.Data.CommandType.Text, null);

            return(DataHelper.DataTableToObjects <IDNamePair>(dt, ToObject));
        }
示例#3
0
        public List <Topic> Get()
        {
            var dt = EnterpriseDAO.Get("GetTopics", System.Data.CommandType.StoredProcedure, null);

            return(DataHelper.DataTableToObjects <Topic>(dt, ToObject));
        }