ID du cadre d'entité non pas automatiquement
Use [Key, DatabaseGenerated(DatabaseGeneratedOption.None)] annotation on Id field
public class Item
{
[Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
[Required]
public Guid Id { get; set; }
public string Name { get; set; }
}
code fighter