You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
EntityFrameworkCore.Jet/test/EFCore.Jet.IntegrationTests/Model11/Mappings.cs

21 lines
538 B
C#

using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace EFCore.Jet.Integration.Test.Model11
{
public class VersionMap : IEntityTypeConfiguration<Version>
{
public void Configure(EntityTypeBuilder<Version> builder)
{
// Relationships
builder.HasMany(t => t.Models)
.WithMany(t => t.Versions);
builder.HasMany(t => t.DataReleaseLevels)
.WithMany(t => t.Versions);
}
}
}