Created
October 15, 2016 14:56
-
-
Save crowcoder/22f67aca970a7bc98f352db161ccf679 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private static void InputWithNoDefault_DBNullValue(SqlCommand cmd) | |
| { | |
| cmd.CommandType = CommandType.StoredProcedure; | |
| cmd.CommandText = "usp_Input_No_Default"; | |
| SqlParameter par = new SqlParameter("@param1", SqlDbType.VarChar); | |
| par.Direction = ParameterDirection.Input; | |
| par.Value = DBNull.Value; | |
| cmd.Parameters.Add(par); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment