dotConnect Universal Documentation
Devart.Common Namespace / DbParameterBase Class / SourceVersion Property

In This Topic
    SourceVersion Property (DbParameterBase)
    In This Topic
    Gets or sets the System.Data.DataRowVersion to use when loading Value.
    Syntax
    'Declaration
     
    Public Overrides Property SourceVersion As DataRowVersion
    public override DataRowVersion SourceVersion {get; set;}

    Property Value

    One of the System.Data.DataRowVersion values. The default value is Current.
    Remarks
    The SourceVersion is used by DbDataAdapter.UpdateCommand during an System.Data.Common.DbDataAdapter.Update() operation to determine whether the parameter value is set to Current or Original. This allows primary keys to be updated. This property is ignored by DbDataAdapter.InsertCommand and DbDataAdapter.DeleteCommand.

    This property is set to the version of the System.Data.DataRow used by either the System.Data.DataRow.Item property (System.Data.DataRow indexer), or the System.Data.DataRow.GetChildRows() method of the System.Data.DataRow object.

    See Also