Acme.Northwind.EFDAL.DBHelper.GetCommand C# (CSharp) Méthode

GetCommand() static private méthode

static private GetCommand ( string commandText, CommandType commandType, IDbConnection connection ) : IDbCommand
commandText string
commandType CommandType
connection IDbConnection
Résultat 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;
		}