How to generate and auto increment Id with Entity Framework

This is a guess 🙂

Is it because the ID is a string? What happens if you change it to int?

I mean:

 public int Id { get; set; }

Leave a Comment