Open motycak opened 3 years ago
Hi @motycak,
(un)fortunately this is not a general mistake. Because I couldn't reproduce it in example. (see my demo project)
Maybe it depends on some of your other settings, or you have a problem elsewhere. Are you sure you are using the correct instance of IDatabase
to which DatabaseConfigurations
is configured?
Library name and version
Description
It is not enough to define in the DatabaseConfiguration for the entity:
.AutoIncrement (autoIncrementType: AutoIncrementMethodType.Identity).
When adding an item. It falls: Cannot insert explicit value for identity column in table 'TableName' when IDENTITY_INSERT is set to OFFSteps To Reproduce
Initialization script:
DatabaseConfiguration:
Entity:
4.Used:
Actual behavior:
When I add an annotation to an id, it adds an item.