예제 #1
0
 internal SqlCommand CommandBuilder(string command, Tool.CommandType commandType, List <Parameter> parameters)
 {
     _sqlCommand = new SqlCommand(command, _sqlConnection);
     _sqlCommand.AddParameters(parameters);
     _sqlCommand.ParseCommandType(commandType);
     return(_sqlCommand);
 }
예제 #2
0
 internal static void ParseCommandType(this SqlCommand command, Tool.CommandType commandType)
 {
     command.CommandType = (System.Data.CommandType)Enum.Parse(typeof(System.Data.CommandType), commandType.ToString());
 }