Arthur Vickers
Arthur Vickers
@apostnov How are you telling EF to use the `IEntityTypeConfiguration` classes you are creating? Can you show your `OnModelCreating` code?
**EF Team Triage:** Closing this issue as the requested additional details have not been provided and we have been unable to reproduce it. *BTW this is a canned response and...
@apostnov You are using `modelBuilder.ApplyConfigurationsFromAssembly(typeof(Context).Assembly);`. This will only create configuration instances that have a default constructor.
@apostnov I'll move this to the docs repo to track documenting this. If ApplyConfigurationsFromAssembly were to do this, then what value would it pass to the constructor?
@apostnov This would only work if there is a non-public parameterless constructor that could be called. (Have you verified that this doesn't work already?) I think the main problem here...
> Is this "how it's supposed to work"? You're saying that we need to just know (or be told) to run a query or write some special-purpose code every time...
Suggestion from @ErikEJ on https://github.com/dotnet/efcore/issues/20793#issuecomment-621943308 > It would lower the barrier to have a "template/null" provider to use as a starting point. But of course it can quickly become stale.
If we put it in the main repo, then it would evolve along with the other providers _and_ there will still always be a branch/tag to get the snapshot of...
Yeah, that would be ideal.
@ErikEJ We discussed this and we're thinking that we could try this out on https://github.com/efcore first to see what it looks like and how it evolves. We could potentially move...