I am using **EF Core**. I am using `DbContext.Set()` method but it is giving me the error - "Cannot create a DbSet for 'MediaDate' because this type is not included in the model for the context.'"

Below is my code:

```
var context = new GoldentaurusContext();
DbSet<MediaDate> set = context.Set<MediaDate>();
mediaDateList = set.FromSql("[dbo].[sp_GetMediaDate]")
                .Select(x => new SelectListItem { Text = x.DateText, Value = x.DateValue })
                .ToList();

```

The MediaDate class:

```
public class MediaDate
{
    public string DateText { get; set; }
    public string DateValue { get; set; }
}

```

[![enter image description here](https://i.stack.imgur.com/03H3P.png)](https://i.stack.imgur.com/03H3P.png)

Why it is requiring me to add the **MediaDate** class to the **DbContext** class?

Please help what I am doing wrong?