Adding an entity with a mapped property having [DatabaseGenerated(DatabaseGeneratedOption.Identity)] throws NotSupportedException:
The property 'EntityHasIdentity.Id' does not have a value set and no value generator is available for properties of type 'int'. Either set a value for the property before adding the entity or configure a value generator for properties of type 'int' in 'OnModelCreating'.
Adding an entity with a mapped property having
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
throwsNotSupportedException
:I've implemented this and added unit tests in https://github.com/daveidmx/FileBaseContext/commit/5e25c29b0aeb52ac9c478aabb504284e73317f48 and can put up a PR once #17 is resolved.