Acme.Northwind.EFDAL.DBHelper.GetCommand C# (CSharp) Method

GetCommand() static private method

static private GetCommand ( string commandText, CommandType commandType, IDbConnection connection ) : IDbCommand
commandText string
commandType CommandType
connection IDbConnection
return IDbCommand
		internal static IDbCommand GetCommand(string commandText, CommandType commandType, IDbConnection connection)
		{
			var cmd = new SqlCommand(commandText);
			cmd.CommandType = commandType;
			cmd.Connection = (SqlConnection)connection;
			return cmd;
		}