Exemplo n.º 1
0
        /// <summary>
        /// Starts a data command with the specified stored procedure name.
        /// </summary>
        /// <param name="storedProcedureName">Name of the stored procedure.</param>
        /// <returns>
        /// A fluent <see langword="interface" /> to a data command.
        /// </returns>
        public IDataCommand StoredProcedure(string storedProcedureName)
        {
            var dataCommand = new DataCommand(this, _dbTransaction);

            return(dataCommand.StoredProcedure(storedProcedureName));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DataParameter{TValue}" /> class.
 /// </summary>
 /// <param name="dataCommand">The data command.</param>
 /// <param name="parameter">The parameter.</param>
 internal DataParameter(DataCommand dataCommand, DbParameter parameter)
 {
     _dataCommand = dataCommand;
     _parameter   = parameter;
 }
Exemplo n.º 3
0
        /// <summary>
        /// Starts a data command with the specified SQL.
        /// </summary>
        /// <param name="sql">The SQL statement.</param>
        /// <returns>
        /// A fluent <see langword="interface" /> to a data command.
        /// </returns>
        public IDataCommand Sql(string sql)
        {
            var dataCommand = new DataCommand(this, _dbTransaction);

            return(dataCommand.Sql(sql));
        }