refactor: add .editorconfig and refactor code
This commit is contained in:
@ -9,7 +9,7 @@ public static class ModelBuilderExtensions
|
||||
{
|
||||
var applyGenericMethod = typeof(ModelBuilder)
|
||||
.GetMethods()
|
||||
.First(m => m.Name == "ApplyConfiguration" &&
|
||||
.First(m => m.Name == nameof(ApplyConfiguration) &&
|
||||
m.GetParameters().Any(p => p.ParameterType.GetGenericTypeDefinition() == typeof(IEntityTypeConfiguration<>)));
|
||||
|
||||
var entityType = configuration.GetType().GetInterfaces()
|
||||
|
Reference in New Issue
Block a user