Skip to content

Boolean fields marked as pk and also pk fields not marked as such in edmx model #37

Open
@alessaro92

Description

@alessaro92

It's the first time I use this EF provider to work with access databases and I'm trying to configure the database first mode, creating the edmx model from a database file which has always been used as a reference for application development and test.
I suppose the access file I'm working with was created with a fairly old version of office: it has MDB extension.
The model generated from this file contains a table whose boolean fields have been marked as primary key even though they aren't part of primary key of the table in the database.
So I tried editing the table removing some fields, and I got another strange result generating again the model: the boolean fields are not part of primary key anymore, but the fields that are part of the primary key are not defined as such in the model, only one of four fields has been marked as primary key.
I am not able to understand why there is this behaviour, so I attach here the two database file and the screenshots of the models generated from them.
I used Microsoft JET 4.0 as a provider.

edmx_model_test1
edmx_model_test2
test_db_files.zip

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions