linq2db / LinqToDB.Identity

ASP.NET Core Identity provider that uses LinqToDB.
https://linq2db.github.io/
MIT License
46 stars 9 forks source link

Rewrite AddLinqToDBStores #5

Closed ili closed 7 years ago

ili commented 7 years ago

AddLinqToDBStores methods should be rewritten to allow register own types easy, for now it is needed to write:

services
    .AddSingleton<IConnectionFactory<MyDataContext,MyDataConnection>>(new IdentityConnectionFactory())
    .AddScoped(typeof(IUserStore<User>), typeof(UserStore))
    .AddScoped(typeof(IRoleStore<Role>), typeof(RoleStore));