It looks like you did not specify the property stampas a string in your model, and this is just a binary field. You can specify it with the Fluent API:
modelBuilder.Entity<Driver>().Property(d => d.stamp)
.IsRowVersion()
.IsConcurrencyToken(false);
, stamp concurrency. ( rowversion - concurrency, .) concurrency, Fluent API...
modelBuilder.Entity<Driver>().Property(d => d.stamp)
.IsRowVersion();
... :
[Timestamp]
public byte[] stamp { get; set; }
EF UPDATE .
Edit
Database-First, [Timestamp] . Code-First.
Database-First, , EDM, EDMX:
connectionString="metadata=res://*/Model1.csdl
|res://*/Model1.ssdl
|res://*/Model1.msl;
...
..."
Entity Framework , - Fluent API (OnModelCreating ). EDMX.
, stamp concurrency, EDMX. XML :
SSDL:
<Property Name="stamp" Type="timestamp" Nullable="false"
StoreGeneratedPattern="Computed" />
CSDL:
<Property Name="stamp" Type="Binary" Nullable="false" MaxLength="8"
FixedLength="true"
annotation:StoreGeneratedPattern="Computed"
ConcurrencyMode="Fixed" />
Visual Studio: stamp , "Concurrency Mode" "Fixed" ( "StoreGeneratedPattern" "Computed" ).
. , . Fluent API , EDMX .