Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void addItems(string item_name, float item_price)
- {
- using (IDbConnection connection = new MySqlConnection(Helper.CnnVal("dbConn")))
- {
- List<Item> items = new List<Item>();
- items.Add(new Item { _itm_name = item_name, _itm_price = item_price });
- connection.Execute("ItemsAdd", items, commandType: CommandType.StoredProcedure);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement