System.Data.OleDb Namespace OleDbParameter Class
Sets or retrieves the DataRowVersion used for the parameter value.
Script |
OleDbParameter.SourceColumn [ = enumValue ] |
The property is read/write with a default value of Current.
IDataParameter.SourceVersion
The SourceVersion property is used by UpdateCommand during Update to determine whether the original or current value is used for the parameter value. This allows primary keys to be updated. This property is ignored by InsertCommand and DeleteCommand. This property is set to the version of the DataRow used by the Item property, or the GetChildRows method of the DataRow object.
The following example initializes an OleDbParameter and sets some of its properties.
public void CreateOleDbParameter ( ) {
OleDbParameter myParam = new OleDbParameter ( "Description", OleDbType.VarChar, 100 );
myParam.SourceColumn = "Description";
myParam.SourceVersion = DataRowVersion.Current;
}
Public Sub CreateOleDbParameter ( )
Dim myParam As New OleDbParameter ( "Description", OleDbType.VarChar, 100 )
myParam.SourceColumn = "Description"
myParam.SourceVersion = DataRowVersion.Current
End Sub |
|
C# |
VB |
OleDbParameter Members