huysentruitw / entity-framework-core-mock

Easy Mock wrapper for mocking EFCore5 DbContext and DbSet using Moq or NSubstitute
MIT License
132 stars 24 forks source link

modelBuilder.ApplyConfiguration #18

Closed pfaustinopt closed 4 years ago

pfaustinopt commented 5 years ago

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; }
}
huysentruitw commented 4 years ago

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