DocSpace-client/common/ASC.Core.Common/EF/Context/VoipDbContext.cs

23 lines
663 B
C#
Raw Normal View History

2019-12-11 14:30:28 +00:00
using ASC.Core.Common.EF.Model;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
namespace ASC.Core.Common.EF.Context
{
public class VoipDbContext : BaseDbContext
{
public DbSet<VoipNumber> VoipNumbers { get; set; }
public DbSet<DbVoipCall> VoipCalls { get; set; }
public DbSet<CrmContact> CrmContact { get; set; }
}
public static class VoipDbExtension
{
public static IServiceCollection AddVoipDbContextService(this IServiceCollection services)
{
return services.AddDbContextManagerService<VoipDbContext>();
}
}
}