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
{{ message }}
This repository has been archived by the owner on Dec 20, 2018. It is now read-only.
UserInfo come from MyProject.Models (where I have a MyProjectDbContext) because it used by other project (Web Services, Windows Services...) and is also joined to other table, mainly in history tables...
I wish to keep the ApplicationDbContext (IdentityDbContext) in the web site, and have a separate assembly for my Models.
The pb is that the migration failed because the table UserInfo is in both assembly
Is there a way to do that ?
or
do I have to move the ApplicationDbContext (IdentityDbContext) in my model assembly ?
The text was updated successfully, but these errors were encountered:
ghost
changed the title
IdentityDbContext in WebSite and MyProjectDbContext in separate assembly sharing a table
Q: IdentityDbContext in WebSite and MyProjectDbContext in separate assembly sharing a table
Oct 12, 2016
Sorry for being slow responding--we had some internal team changes. This can be done, but requires that you choose one context that will manage the UserInfo table through Migrations and manually remove anything generated for it by the other context. More info and a better experience for this is tracked by dotnet/efcore#2725
Hello
I have a Web Site with of course an
ApplicationDbContext : IdentityDbContext<ApplicationUser>
where my ApplicationUser is :
UserInfo come from MyProject.Models (where I have a MyProjectDbContext) because it used by other project (Web Services, Windows Services...) and is also joined to other table, mainly in history tables...
I wish to keep the ApplicationDbContext (IdentityDbContext) in the web site, and have a separate assembly for my Models.
The pb is that the migration failed because the table UserInfo is in both assembly
Is there a way to do that ?
or
do I have to move the ApplicationDbContext (IdentityDbContext) in my model assembly ?
The text was updated successfully, but these errors were encountered: