System.Data.Common.DbCommand.AddParameter(System.Data.Common.DbParameter)

Here are the examples of the csharp api class System.Data.Common.DbCommand.AddParameter(System.Data.Common.DbParameter) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

3 Examples 7

1. Example

View license
public static DatabaseCommand AddParameter( this DatabaseCommand databaseCommand, DbParameter dbParameter )
        {
            databaseCommand.DbCommand.AddParameter( dbParameter );

            return databaseCommand;
        }

2. Example

View license
public static DbCommand AddParameters( this DbCommand dbCommand, IEnumerable<DbParameter> dbParameters )
        {
            foreach ( DbParameter dbParameter in dbParameters )
            {
                dbCommand.AddParameter( dbParameter );
            }

            return dbCommand;
        }

3. Example

View license
public static DbCommand AddParameters( this DbCommand dbCommand, params DbParameter[] dbParameters )
        {
            foreach ( DbParameter dbParameter in dbParameters )
            {
                dbCommand.AddParameter( dbParameter );
            }

            return dbCommand;
        }