The method is not working when set property as concurrency token.
For example:
builder
.Entity<Vehicle>()
.Abstract()
.HasKey(v => v.Name)
.HasKey(v => v.Model)
.Property(v => v.WheelCount).IsConcurrencyToken(true);
The edm model is:
<EntityType Name="Vehicle" Abstract="true">
<Key>
<PropertyRef Name="Name" />
<PropertyRef Name="Model" />
</Key>
<Property Name="Name" Type="Edm.String" Nullable="false" />
<Property Name="Model" Type="Edm.Int32" Nullable="false" />
<Property Name="WheelCount" Type="Edm.Int32" Nullable="false" />
There is no etag attribute added to the property element.
Comments: Let us remove the IsConcurrencyToken since we don't support eTag yet.
For example:
builder
.Entity<Vehicle>()
.Abstract()
.HasKey(v => v.Name)
.HasKey(v => v.Model)
.Property(v => v.WheelCount).IsConcurrencyToken(true);
The edm model is:
<EntityType Name="Vehicle" Abstract="true">
<Key>
<PropertyRef Name="Name" />
<PropertyRef Name="Model" />
</Key>
<Property Name="Name" Type="Edm.String" Nullable="false" />
<Property Name="Model" Type="Edm.Int32" Nullable="false" />
<Property Name="WheelCount" Type="Edm.Int32" Nullable="false" />
There is no etag attribute added to the property element.
Comments: Let us remove the IsConcurrencyToken since we don't support eTag yet.