Unconscious accessibility in the property of the DataSet type

1

I'm trying to create the data layer with Entity Framework Core in my .net core web application but he has thrown me an error that I do not know what it is.

  

Severity Code Description Project File Line Suppression State   Error CS0053 Inconsistent accessibility: property type 'DbSet' is less accessible than property 'DataContext.GuestResponses' DataAccesLayer C: \ Users \ Maf \ source \ repos \ WebApplicationA \ DataAccesLayer \ DataContext.cs 12 Active

    class GuestResponse
{
    public long Id { get; set; }
    public string Name { get; set; }
    public string Email { get; set; }
    public string Phone { get; set; }
    public bool? WillAttend { get; set; }
}
    
asked by Maria Perez 02.05.2018 в 01:40
source

1 answer

1

Place your class as public, so you have access from your DataContext

public class GuestResponse
{
    public long Id { get; set; }
    public string Name { get; set; }
    public string Email { get; set; }
    public string Phone { get; set; }
    public bool? WillAttend { get; set; }
}
    
answered by 02.05.2018 / 07:38
source