c# - Can I use the same Entity Model for 2 databases in one application -
i have create application copy common configuration settings 1 database database (same schema). i'm wondering if can use 1 entity model access both databases. stores , products need copied. can use same model store servera.databasea , insert server.databaseb?
you can have 2 similar dbset
s in 2 different dbcontext classes. mentioned in comments, real problem deal identity columns , imo context attachments. think best way handle identity columns manually , fetch data db in detached state.