c# sql stored procedure isn't committing
问题 Whenever I run the following code I get the expected output private int NewBorrower(string givenName, string surname) { int returnValue = 0; using (conn) { conn.Open(); string sql = "AddBorrower"; cmd = new SqlCommand(sql, conn); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add("@givenName", SqlDbType.NVarChar).Value = givenName; cmd.Parameters.Add("@surname", SqlDbType.NVarChar).Value = surname; SqlParameter id = cmd.Parameters.Add("@id", SqlDbType.Int); id.Direction =