Эта строка предупреждает об ошибке при переходе на EF 3.0, я не могу найти метод расширения HasDefaultValue ()
using MGame.Core;
using MGame.Model;
using MGame.Model.Enums;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
namespace MGame.Data.DataContextConfigurations
{
public class AddressConfiguration : DataContextBaseEntityTypeConfiguration, IEntityTypeConfiguration<Address>
{
public void Configure(EntityTypeBuilder<Address> builder)
{
builder.Property(e => e.AddressTypeId).IsRequired().HasDefaultValue(0);
также завершается с
builder.ToTable(nameof(AncestorRegionView));
, а также с
builder.Metadata.IsQueryType = true;