문제

If I create my code with model first, the mapper creates the Data as I expected. But when I save some new data to the Database the primary key for all data is 0. The Entity Framework doesn't increment the Index. What is wrong? I'm using Firebird2.5 and the newest .net-Provider.

도움이 되었습니까?

해결책

Firebird has no Autoincrement for the primary keys. Look in the Properties of the created classes there is a property which handles the key generation. This is the StoreGeneratedPattern Property and it must set to Identity.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top