Closed VillaltaJose closed 8 months ago
I'm having the same issue here
What do you mean with SetGeneratedOption(DatabaseGeneratedOption.None)
? Can you share an example of your model configuration?
There is a test case which verifies this behavior. Please let me know if it's still not working for you.
I'm having the same issue. Here is a code sample :
` public class TestMap : DommelEntityMap
Map(p => p.test_id).ToColumn("Id", caseSensitive: true).IsKey()
.SetGeneratedOption(DatabaseGeneratedOption.None);
Map(p => p.test_name).ToColumn("Name", caseSensitive: true);
Map(p => p.test_count).ToColumn("Count", caseSensitive: true);
}
}`
When using a custom primary key (in most cases varchar keys), dommel tries to put an auto increment key ignoring the SetGeneratedOption(DatabaseGeneratedOption.None) property.