You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use proper enumerations to prevent mixing int from different tables.
Based on: #11970 #13814
I wrote the provided code.
When running the code I got the following error:
Identity value generation cannot be used for the property 'DeviceID' on entity type 'Device' because the property type is 'Device_Values'. Identity value generation can only be used with signed integer properties.
I have tried the code with the following versions of EF Core
3.1.5
3.1.8
5.0.0-preview.8.20407.4
Can you provide any guidance/workaround for how to fix this?
I use proper enumerations to prevent mixing int from different tables.
Based on:
#11970
#13814
I wrote the provided code.
When running the code I got the following error:
Identity value generation cannot be used for the property 'DeviceID' on entity type 'Device' because the property type is 'Device_Values'. Identity value generation can only be used with signed integer properties.
I have tried the code with the following versions of EF Core
Can you provide any guidance/workaround for how to fix this?
Steps to reproduce
Further technical details
EF Core version: 3.1.5 & 3.1.8 & 5.0.0-preview.8.20407.4
Database provider: (e.g. Microsoft.EntityFrameworkCore.SqlServer)
Target framework: (e.g. .NET Core 3.1)
Operating system: Windows 10
IDE: Visual Studio 2019 16.8 Preview
The text was updated successfully, but these errors were encountered: