1
Answer

Primary Key in the table

Arbaz Qureshi

Arbaz Qureshi

2y
626
1

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)