Читати англійською Редагувати

Поділитися через


DbParameter.SourceVersion Property

Definition

Gets or sets the DataRowVersion to use when you load Value.

C#
public virtual System.Data.DataRowVersion SourceVersion { get; set; }
C#
public abstract System.Data.DataRowVersion SourceVersion { get; set; }

Property Value

One of the DataRowVersion values. The default is Current.

Implements

Exceptions

The property is not set to one of the DataRowVersion values.

Remarks

Used by UpdateCommand during an Update operation to determine whether the parameter value is set to Current or Original. This lets primary keys be updated. This property is set to the version of the DataRow used by the DataRow.Item property, or the GetChildRows method of the DataRow object.

Applies to

Продукт Версії
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

See also