@@ -0,0 +1,18 @@
|
||||
using IRaCIS.Core.Domain.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.EntityConfigration
|
||||
{
|
||||
public class ReadModuleConfigration : IEntityTypeConfiguration<ReadModule>
|
||||
{
|
||||
|
||||
|
||||
public void Configure(EntityTypeBuilder<ReadModule> builder)
|
||||
{
|
||||
|
||||
builder.HasOne(t => t.SubjectVisit).WithMany(t => t.ReadModuleList);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user