Arbaz Qureshi

Arbaz Qureshi

  • NA
  • 80
  • 9.7k

Primary Key in the table

Mar 28 2022 6:14 AM

I am working on the repository pattern I have made a table in the model class shown in bold font .

using System.ComponentModel.DataAnnotations;

namespace RepositoryPattern.Models
{
    public class Unit
    {
        [Key]
        int Id { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
    }
}

 

But in the below picture the Package Console Manager is showing this output.


Answers (1)