Advertisement
Guest User

Untitled

a guest
Oct 6th, 2018
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. public void addItems(string item_name, float item_price)
  2. {
  3. using (IDbConnection connection = new MySqlConnection(Helper.CnnVal("dbConn")))
  4. {
  5. List<Item> items = new List<Item>();
  6.  
  7. items.Add(new Item { _itm_name = item_name, _itm_price = item_price });
  8.  
  9. connection.Execute("ItemsAdd", items, commandType: CommandType.StoredProcedure);
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement