Exemplo n.º 1
0
        // INSERT

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

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

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

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

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

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

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

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

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