Entity Framework EDM.Binary Mapping for VB Type

I use POCOs with the latest version of EF 4.0 and have a timestamp field on my SQL Server 2008 db to work with optimistic concurrency.

The designer created a mapping for the field with the entity type Binary. How should this be presented in my VB POCO, since EDM.Binary is not available there? When I have a field as a byte array, I get an error:

The type "Edm.Binary" of the member "RowVersionNr" in the conceptual lateral type "SchoolModel.Course" does not match the type "System.Byte" of the member "RowVersionNr" on the side of the side of the object "EFLibrary.Course '.

+3
source share

Source: https://habr.com/ru/post/1723422/


All Articles