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
0
1. Example
Project: Sequelocity.NET
Source File: SequelocityDotNet.cs
Source File: SequelocityDotNet.cs
public static DatabaseCommand AddParameter( this DatabaseCommand databaseCommand, DbParameter dbParameter ) { databaseCommand.DbCommand.AddParameter( dbParameter ); return databaseCommand; }
0
2. Example
Project: Sequelocity.NET
Source File: SequelocityDotNet.cs
Source File: SequelocityDotNet.cs
public static DbCommand AddParameters( this DbCommand dbCommand, IEnumerable<DbParameter> dbParameters ) { foreach ( DbParameter dbParameter in dbParameters ) { dbCommand.AddParameter( dbParameter ); } return dbCommand; }
0
3. Example
Project: Sequelocity.NET
Source File: SequelocityDotNet.cs
Source File: SequelocityDotNet.cs
public static DbCommand AddParameters( this DbCommand dbCommand, params DbParameter[] dbParameters ) { foreach ( DbParameter dbParameter in dbParameters ) { dbCommand.AddParameter( dbParameter ); } return dbCommand; }