NSoft.NFramework.Data.DevartOracle.EnterpriseLibrary.OracleDatabase.AddParameter C# (CSharp) Method

AddParameter() public method

public AddParameter ( DbCommand command, string name, DbType dbType, int size, ParameterDirection direction, bool nullable, byte precision, byte scale, string sourceColumn, DataRowVersion sourceVersion, object value ) : void
command System.Data.Common.DbCommand
name string
dbType DbType
size int
direction ParameterDirection
nullable bool
precision byte
scale byte
sourceColumn string
sourceVersion DataRowVersion
value object
return void
        public override void AddParameter(DbCommand command, string name, DbType dbType, int size, ParameterDirection direction,
                                          bool nullable, byte precision, byte scale, string sourceColumn, DataRowVersion sourceVersion,
                                          object value) {
            if(sourceVersion == DataRowVersion.Default)
                sourceVersion = DataRowVersion.Current;

            var parameter = CreateParameter(name, dbType, size, direction, nullable, precision, scale, sourceColumn, sourceVersion,
                                            value);
            command.Parameters.Add(parameter);
        }