Hi,
In an MVC app with code first I have a table with the key field as Long and the scaffolding made it automatic an auto increment field.
that is not what I wanted, I want to generate my own key. So I annotated the key field with:
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.None)]
I ran the migration (Add-Migration and Update-Database) But nothing happens with the Primary key. sneeking in the Generated Migration SQL I do also not find anything that is relevant.
How can I do this??
Rob