با سلام خدمت برنامه نویسان عزیز

من دارم entity framework code first را به تازگی فرا میگیرم . دانشجو هستم.

من یک کلاس تعریف کردم به نام person با مشخصات زیر

using System;using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace EF_first
{
class Person
{
public Int32 Id
{
get;
set;
}
public string FirstName
{
get;
set;
}
public string LastName
{
get;
set;
}
}
}


و یک کلاس دیگر بانام personContext با مشخصات زیر

using System;using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity;
namespace EF_first
{
public class PersonContext : DbContext
{
public PersonContext():base("EF.con")
{


}
public DbSet<Person> Persons
{
get;
set;
}
}
}

ولی با خطای زیر مواجه شده ام
Severity    Code    Description    Project    File    Line    Suppression StateError    CS0053    Inconsistent accessibility: property type 'DbSet<Person>' is less accessible than property 'PersonContext.Persons'    EF-first    C:\Users\_21\Desktop\learning project\EF-first\EF-first\PersonContext.cs    15    Active

توی عکس فکر کنم واضح تره . ممنون میشم راهنمایی کنید ..
ممنون


Untitled.jpg