예제 #1
0
        //插入数据2
        private void button2_Click(object sender, EventArgs e)
        {
            string       cnStr        = ConfigurationManager.ConnectionStrings["InventoryConnectionString"].ConnectionString;
            InventoryDAL inventoryDAL = new InventoryDAL();

            inventoryDAL.OpenConnection(cnStr);
            inventoryDAL.InsertAutoForParm(999, "红色", "123", "法拉第");
            inventoryDAL.CloseConnection();
            BindData();
        }