コード例 #1
0
        public int InsertCatalogItem(int id, string name, string description, string pictureName, double price, int typeId, int brandId, bool isDisabled)
        {
            CatalogItemsTableAdapter dataAdapter = new CatalogItemsTableAdapter();

            return(dataAdapter.Insert(id, name, description, pictureName, price, typeId, brandId, isDisabled, DateTime.UtcNow));
        }
コード例 #2
0
        public int DeleteCatalogItem(int id)
        {
            CatalogItemsTableAdapter dataAdapter = new CatalogItemsTableAdapter();

            return(dataAdapter.Delete(id));
        }
コード例 #3
0
        public DataTable GetCatalogItems()
        {
            CatalogItemsTableAdapter dataAdapter = new CatalogItemsTableAdapter();

            return(dataAdapter.GetData());
        }
コード例 #4
0
        public int UpdateCatalogItem(DataRow dataRow)
        {
            CatalogItemsTableAdapter dataAdapter = new CatalogItemsTableAdapter();

            return(dataAdapter.Update(dataRow));
        }