huysentruitw / entity-framework-core-mock

Easy Mock wrapper for mocking EFCore5 DbContext and DbSet using Moq or NSubstitute

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

modelBuilder.ApplyConfiguration

pfaustinopt opened this issue · comments

Hey,

Is it possible to use the IEntityTypeConfiguration instead of this?

public class User
{
    [Key, Column(Order = 0)]
    public Guid Id { get; set; }

    public string FullName { get; set; }
}

Little late to the party, but you can probably use the same solution as I'm talking about here