Assembly: System.Data.OracleClient (in system.data.oracleclient.dll)
/** @property */ public boolean get_SourceColumnNullMapping () /** @property */ public void set_SourceColumnNullMapping (boolean value)
public override function get SourceColumnNullMapping () : boolean public override function set SourceColumnNullMapping (value : boolean)
Property ValueTrue if the source column is nullable, otherwise false.
SourceColumnNullMapping is used by the OracleCommandBuilder to correctly generate update commands when dealing with nullable columns. Generally, use of SourceColumnNullMapping is limited to developers inheriting from OracleCommandBuilder.
DbCommandBuilder uses this property to determine whether the source column is nullable, and sets this property to true if it is nullable, and false if it is not. When OracleCommandBuilder is generating its Update statement, it examines the SourceColumnNullMapping for each parameter. If the property is true, OracleCommandBuilder generates a WHERE clauses like the following (in this query expression, "FieldName" represents the name of the field):
((@IsNull_FieldName = 1 AND FieldName IS NULL) OR (FieldName = @Original_FieldName))
If SourceColumnNullMapping for the field is false, OracleCommandBuilder generates the following WHERE clause:
FieldName = @OriginalFieldName
In addition, @IsNull_FieldName contains 1 if the source field contains null, and 0 if it does not. This mechanism allows for a performance optimization in Oracle Server, and provides for common code that works across multiple providers.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.