You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see we have this code in the UpsertCommandBuilder to build the command based on their runners. Is there any way we can pass these runners or replace them with our own IUpsertCommandRunner to actually customize few methods or add few etc on top of the existing ones?
private IUpsertCommandRunner GetCommandRunner()
{
var dbProvider = _dbContext.GetService<IDatabaseProvider>();
var commandRunner = _dbContext.GetInfrastructure().GetServices<IUpsertCommandRunner>()
.Concat(DefaultRunners.GetRunners())
.FirstOrDefault(r => r.Supports(dbProvider.Name));
if (commandRunner == null)
throw new NotSupportedException(Resources.DatabaseProviderNotSupportedYet);
return commandRunner;
}
The text was updated successfully, but these errors were encountered:
I see we have this code in the UpsertCommandBuilder to build the command based on their runners. Is there any way we can pass these runners or replace them with our own IUpsertCommandRunner to actually customize few methods or add few etc on top of the existing ones?
The text was updated successfully, but these errors were encountered: