Im using EF CTP 4. I have a simple console app (for testing purposes) that is using EF to insert some data into a SQL database.
I have come to a problem where by upo
i have the same issue here and it's really an ugly solution.
[Key]
public Int64 PolicyID { get; set; }
this is NOT an auto generated number
then i hit the same error.
EF Code First CTP5
after apply this:
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.None)]
public Int64 PolicyID { get; set; }
then it will work.