CSLA 6.2 and LinqToSql #3181
Replies: 2 comments 3 replies
-
Things like the Have you read this document? https://github.com/MarimerLLC/csla/blob/main/docs/Upgrading%20to%20CSLA%206.md |
Beta Was this translation helpful? Give feedback.
-
Entity framework is probably the obvious replacement for anything using LinqToSql. That doesn't mean that it has to be replaced. However, EF is something for which there is lots of help and support and which is much more common in the industry now. If you want to keep your LinqToSql implementation then you would have to look at injecting something like the context manager. You can have CSLA inject properties into your Fetch method by adorning them with the [Inject] attribute. Remember that you also have to register something into DI for that to work. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Upgrading to CSLA 6.2. I'm beginning to think this is a non-Starter. My project uses LinqToSql throughout. Here is an example of a simple Fetch in the DataAccess.LinqToSql layer:
Beautifully simple but I understand that LinqToSql has been deprecated in the ContextManager. Is that correct? What's the alternative? All help gratefully appreciated.
Beta Was this translation helpful? Give feedback.
All reactions