We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SmartSqlBuilder = new SmartSqlBuilder() .UseXmlConfig() .UseLoggerFactory(LoggerFactory) .UseAlias(GLOBAL_SMART_SQL) .AddFilter<TestPrepareStatementFilter>() .Build();
public class TestPrepareStatementFilter : IPrepareStatementFilter, ISetupSmartSql { private ILogger<TestPrepareStatementFilter> _logger; public void OnInvoking(ExecutionContext context) { _logger.LogDebug("TestPrepareStatementFilter.OnInvoking"); } public void OnInvoked(ExecutionContext context) { _logger.LogDebug("TestPrepareStatementFilter.OnInvoked"); } public Task OnInvokingAsync(ExecutionContext context) { _logger.LogDebug("TestPrepareStatementFilter.OnInvokingAsync"); return Task.CompletedTask; } public Task OnInvokedAsync(ExecutionContext context) { _logger.LogDebug("TestPrepareStatementFilter.OnInvokedAsync"); return Task.CompletedTask; } public void SetupSmartSql(SmartSqlBuilder smartSqlBuilder) { _logger = smartSqlBuilder.LoggerFactory.CreateLogger<TestPrepareStatementFilter>(); } }
-> https://github.com/Smart-Kit/SmartSql-Docs
The text was updated successfully, but these errors were encountered:
Ahoo-Wang
No branches or pull requests
-> https://github.com/Smart-Kit/SmartSql-Docs
The text was updated successfully, but these errors were encountered: