Path: redb/redb.MSSql/Providers/MssqlUserProvider.cs Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb Page: https://redbase.app/src/dev-2026-12-06/redb/redb.MSSql/Providers/MssqlUserProvider.cs ---- using redb.Core.Data; using redb.Core.Models.Contracts; using redb.Core.Providers.Base; using redb.Core.Security; using redb.MSSql.Query; using Microsoft.Extensions.Logging; using redb.MSSql.Sql; namespace redb.MSSql.Providers; /// /// MS SQL Server implementation of user provider. /// Inherits all business logic from UserProviderBase. /// Only provides MSSQL-specific SQL dialect and password hasher. /// /// Usage: /// services.AddScoped<IUserProvider, MssqlUserProvider>(); /// public class MssqlUserProvider : UserProviderBase { /// /// Creates a new MSSQL user provider. /// /// Database context for executing queries /// Security context for authorization /// Optional logger for diagnostics public MssqlUserProvider( IRedbContext context, IRedbSecurityContext securityContext, ILogger? logger = null) : base(context, securityContext, new MsSqlDialect(), new BcryptPasswordHasher(), logger) { } /// protected override bool LikeBracketIsWildcard => true; /// /// Creates a new MSSQL user provider with custom password hasher. /// /// Database context for executing queries /// Security context for authorization /// Custom password hasher implementation /// Optional logger for diagnostics public MssqlUserProvider( IRedbContext context, IRedbSecurityContext securityContext, IPasswordHasher passwordHasher, ILogger? logger = null) : base(context, securityContext, new MsSqlDialect(), passwordHasher, logger) { } }