示例#1
0
        // INSERT

        public int InsertCatalogType(int id, string name)
        {
            CatalogTypesTableAdapter dataAdapter = new CatalogTypesTableAdapter();

            return(dataAdapter.Insert(id, name));
        }
示例#2
0
        // GET

        public DataTable GetCatalogTypes()
        {
            CatalogTypesTableAdapter dataAdapter = new CatalogTypesTableAdapter();

            return(dataAdapter.GetData());
        }
示例#3
0
        public int UpdateCatalogType(DataRow dataRow)
        {
            CatalogTypesTableAdapter dataAdapter = new CatalogTypesTableAdapter();

            return(dataAdapter.Update(dataRow));
        }
示例#4
0
        // DELETE

        public int DeleteCatalogType(int id)
        {
            CatalogTypesTableAdapter dataAdapter = new CatalogTypesTableAdapter();

            return(dataAdapter.Delete(id));
        }
示例#5
0
        // UPDATE

        public int UpdateCatalogType(int id, string type)
        {
            CatalogTypesTableAdapter dataAdapter = new CatalogTypesTableAdapter();

            return(dataAdapter.Update(type, id));
        }