This is the proper way of creating a PK without Identity Autoincrement enabled:
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.None)]
public string FooId { get; set; }
This is the proper way of creating a PK without Identity Autoincrement enabled:
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.None)]
public string FooId { get; set; }