//
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
//
namespace MUnique.OpenMU.Persistence.EntityFramework.Extensions.ModelBuilder;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using MUnique.OpenMU.Persistence.EntityFramework.Model;
///
/// Extensions for the and .
///
internal static class LetterExtensions
{
///
/// Applies the settings for the entity.
///
/// The builder.
public static void Apply(this EntityTypeBuilder builder)
{
builder.HasOne(body => body.RawHeader);
}
///
/// Applies the settings for the entity.
///
/// The builder.
public static void Apply(this EntityTypeBuilder builder)
{
builder.Ignore(header => header.ReceiverName);
}
}