-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
enhancementUpdates existing code to be simpler, more powerful or adds somehow to existing functionalityUpdates existing code to be simpler, more powerful or adds somehow to existing functionality
Description
Instead of overriding the convention property we should probably use a callback instead. That way there is more flexibility and freedom.
The following will need to be revised:
.../src/DotNetToolkit.Repository/RepositoryBase.cs
private void ConfigureContext(IRepositoryContext context)
{
Guard.EnsureNotNull(context.Conventions, "No conventions have been configured for this context.");
if (_options.Conventions != null)
RepositoryConventions.Combine(_options.Conventions, context.Conventions);
if (_loggerProvider != null)
context.LoggerProvider = _loggerProvider;
context.Conventions.ThrowsIfInvalidPrimaryKeyDefinition<TEntity>();
}
Metadata
Metadata
Assignees
Labels
enhancementUpdates existing code to be simpler, more powerful or adds somehow to existing functionalityUpdates existing code to be simpler, more powerful or adds somehow to existing functionality