예제 #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));
        }