Esempio n. 1
0
        // INSERT

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

            return(dataAdapter.Insert(id, name));
        }
Esempio n. 2
0
        // GET

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

            return(dataAdapter.GetData());
        }
Esempio n. 3
0
        public int UpdateCatalogType(DataRow dataRow)
        {
            CatalogTypesTableAdapter dataAdapter = new CatalogTypesTableAdapter();

            return(dataAdapter.Update(dataRow));
        }
Esempio n. 4
0
        // DELETE

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

            return(dataAdapter.Delete(id));
        }
Esempio n. 5
0
        // UPDATE

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

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