DocSpace-buildtools/common/ASC.Core.Common/EF/Context/VoipDbContext.cs
2019-12-11 17:30:28 +03:00

23 lines
663 B
C#

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>();
}
}
}