using ASC.Common; using ASC.Core.Common.EF.Model; using Microsoft.EntityFrameworkCore; namespace ASC.Core.Common.EF.Context { public class AccountLinkContext : BaseDbContext { public DbSet AccountLinks { get; set; } protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.AddAccountLinks(); } } public static class AccountLinkContextExtension { public static DIHelper AddAccountLinkContextService(this DIHelper services) { return services.AddDbContextManagerService(); } } }