Модуль коллаборации
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Nashel.Modules.Collaboration.Domain.Entities;
|
||||
|
||||
namespace Nashel.Modules.Collaboration.Infrastructure.Persistence
|
||||
{
|
||||
public class CollaborationDbContext : DbContext
|
||||
{
|
||||
public DbSet<Contract> Contracts { get; set; }
|
||||
|
||||
public CollaborationDbContext(DbContextOptions<CollaborationDbContext> options)
|
||||
: base(options)
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.HasDefaultSchema("collaboration");
|
||||
modelBuilder.ApplyConfigurationsFromAssembly(typeof(CollaborationDbContext).Assembly);
|
||||
base.OnModelCreating(modelBuilder);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user