コード例 #1
0
        private DbCommand NewStoredProcCommand(string commandText)
        {
            DbCommand command = DbResourceAllocator.NewCommand(commandText, this.connection, this.localTransaction);

            command.CommandType = CommandType.StoredProcedure;
            return(command);
        }
コード例 #2
0
        internal DbCommand NewCommand()
        {
            DbConnection dbConnection = OpenNewConnection();

            return(DbResourceAllocator.NewCommand(dbConnection));
        }