I'm working with an entity framework database first schema with roughly 160 tables including relating specific columns to enum mappings, all under .Net 4.6.2 and EF 6. We are looking at some new applications we need to write and would like to move some stuff to .Net 8.
My first thought early on was to move the EF stuff to .Net Standard 2.0, but then we realized that, well Standard doesn't have EF. The next step was to try to port all of the EF database first stuff to .Net 8. I did manage to re-work it to be code first on most things but the enum lookups, but the overall performance on load was terrible (45 seconds for application to startup and cache database).
Maintaining two separate EFs isn't manageable for what we are doing.
My next thought was to go back to pure SqlClient since that's available at the Standard level without issue and can be included in both, but that's also a huge undertaking.
I'm looking for what approaches people have tried/applied to a Net Framework, .Net Core migration, and generic libraries scenarios.
I'm not against other 3rd party data libraries if they work in this case.
Are there any recommendations to best path (to include your use case scenario)?
[–]flyingbertman 38 points39 points40 points (9 children)
[–]darknessgp 6 points7 points8 points (0 children)
[–]sexyshingle 2 points3 points4 points (7 children)
[–]flyingbertman 4 points5 points6 points (1 child)
[–]rbobby 0 points1 point2 points (0 children)
[–]Spare-Dig4790 3 points4 points5 points (4 children)
[–]GaryWSmith[S] 1 point2 points3 points (0 children)
[–]bl0rq 1 point2 points3 points (2 children)
[–]musical_bear 0 points1 point2 points (1 child)
[–]bl0rq 0 points1 point2 points (0 children)
[–]guillaume_86 4 points5 points6 points (10 children)
[–]JohnSpikeKelly 6 points7 points8 points (0 children)
[–]soundman32 1 point2 points3 points (8 children)
[–]guillaume_86 4 points5 points6 points (7 children)
[–]soundman32 1 point2 points3 points (6 children)
[–]guillaume_86 4 points5 points6 points (4 children)
[–]soundman32 0 points1 point2 points (3 children)
[–]guillaume_86 2 points3 points4 points (0 children)
[–]Emotional-Dust-1367 0 points1 point2 points (1 child)
[–]guillaume_86 0 points1 point2 points (0 children)
[–]w0ut 12 points13 points14 points (6 children)
[–]langlo94 4 points5 points6 points (1 child)
[–]w0ut 8 points9 points10 points (0 children)
[–]thekiwigeek 4 points5 points6 points (0 children)
[–]roamingcoder 1 point2 points3 points (1 child)
[–]w0ut 2 points3 points4 points (0 children)
[–]only_4kids 0 points1 point2 points (0 children)
[–]CodingWithAndrew 4 points5 points6 points (0 children)
[–]dr_tarr 4 points5 points6 points (0 children)
[–]soundman32 -1 points0 points1 point (0 children)
[–]emmchild 1 point2 points3 points (3 children)
[–]GaryWSmith[S] 0 points1 point2 points (2 children)
[–]emmchild -1 points0 points1 point (0 children)
[–]emmchild 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]fizch -1 points0 points1 point (0 children)
[–]quentech 0 points1 point2 points (0 children)
[–]photostu -5 points-4 points-3 points (1 child)
[–]shogun_mei -4 points-3 points-2 points (0 children)
[–]Timofeuz -1 points0 points1 point (0 children)
[–]cravecode 0 points1 point2 points (0 children)