Konrad
Konrad

Reputation: 776

Firebird entity framework errow while generate model from database

I had to import data from firebird database to Entity Framework, in order to do so I'v installed .net provider and DDEX Provider for visual studio. My problem occurs when I was adding any table to model the erros says

"Key Part: 'SomeColumn' for type MyTable is not valid. All parts of the key must be non nullable.**"

It does't matter if I'am trying to import one table or many tables, I always had the same error. What I have to do ? Any Ideas ? I will appreciate any help.

Upvotes: 2

Views: 886

Answers (1)

Konrad
Konrad

Reputation: 776

I solved the problem. All I need to do is right click on model.edmx ->Open with ->XML Text Editor and remove all but one which is appropiate ID of table.

Upvotes: 4

Related Questions