Mark read/write collection as 'new' (Csla 4.xx) #3258
-
We are fetching a collection of items from a legacy database and want to 'insert' the same items collection in a new database. Kind regards |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
So you are thinking that the create operation would load the data from the old database, and the insert/update/delete operations would interact with the new database? That should work, as long as nobody tries to reuse that collection later thinking that its create operation will act normally. |
Beta Was this translation helpful? Give feedback.
-
I am curious about how the connection string would work in this use case? You would be switching database connections and then contexts (if EF Core) which would require two connection strings and then some type of logic to switch databases in midstream. I am going to be using multi-tenant configuration for my application, and found an article you might be interested in. https://learn.microsoft.com/en-us/ef/core/miscellaneous/multitenancy |
Beta Was this translation helpful? Give feedback.
-
Lol flashy, that's awesome. The 817 is for a street number, not an area code. |
Beta Was this translation helpful? Give feedback.
So you are thinking that the create operation would load the data from the old database, and the insert/update/delete operations would interact with the new database?
That should work, as long as nobody tries to reuse that collection later thinking that its create operation will act normally.