Entity Framework ID bukan kenaikan otomatis


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