Hi Denis,
I believe the one you send is for programmatically changing the connection in runtime.
But my question is is there a possibility that within a single Model, like in my example.
1. ABC - this entity connects to Global DB
2. DEF - this entity connects to Product DB
3. XYZ - this entity connects to Product DB
4. VON - this entity connects to Product DB
And then I put association between ABC and DEF.
Entities connects to different datasource, what I mean is that, when I query ABC and DEF in a single query expression, it will
access different database.
var query = context.ABC.Select(p => new {
ComesFrom_GlobalDB = p.DEF.columnHere,
ComesFrom_ProductDB = p.columnHere
}
);
Like in this example, ABC should connect to GlobalDB and DEF should connect to ProductDB.
How can I set different connections per entity in runtime?
Thanks,
Von