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 dbsets 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.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -