Что нужно еще подключить не понятно
public class AppDBContent : DbContext
{
public AppDBContent(DbContextOptions<AppDBContent> options) : base(options)
{
}
public Microsoft.EntityFrameworkCore.DbSet<Realty> Realty { get; set; }
public Microsoft.EntityFrameworkCore.DbSet<Category> Category { get; set; }
}
public void ConfigureServices(IServiceCollection services)
{
services.AddDbContext<AppDBContent>(options => options.UseSqlServer(_confSting.GetConnectionString("DefaultConnection")));
services.AddTransient<IAllRealty, MockRealty>();
services.AddTransient<IRealtyCategory, MockCategory>();
services.AddControllersWithViews();
services.AddMvc();
}