Why is Asp.Net Identity IdentityDbContext a Black-Box?

前端 未结 4 424
星月不相逢
星月不相逢 2020-11-30 03:08

There is a lot of confusion it seems around IdentityDbContext.

If we create two Database Contexts in our application, one for Identity and one for our c

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-30 03:56

    Even though the identity tables in database gets named with aspnet prefix you can always change them. But not always the table name in database will not be the ones you'll see when accessing from DbContext. You'll need to work with names that gets generated by the framework. But this can be changed too. See Identity Data Model with the Entity Framework Fluent.

提交回复
热议问题