❔ DbContext

Can i use this in a non-asp area like for example, a simple program to make few tables using DbSet
11 Replies
Angius
Angius2y ago
Sure, you can use EF Core in any kind of a project
infernus8349
infernus8349OP2y ago
but then they use something like services.soemthing liek that in another file i dont understand and i coudl't find a video on how they do it outside of asp can you show me how to do taht
Angius
Angius2y ago
That's an entirely different thing Dependency injection You can use EF Core without dependency injection
infernus8349
infernus8349OP2y ago
do you have any resources for that information
infernus8349
infernus8349OP2y ago
thanks man i will surely read on it i have been trying to get this information for a long time eveeryone talks about it with respect to ASP.net
FusedQyou
FusedQyou2y ago
Is the simple program still .NET? Because anything in .NET will mostly work in any type of project So EF works everywhere, but you can also set up the whole Dependency Injection structure if you want that
Royce
Royce2y ago
Yes u can i was doing it ez to build a database from code first approch
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
infernus8349
infernus8349OP2y ago
idk much aobut it as i was literally jsut starting with asp.net, api and stuff like those oh i see the reason why i asked is because i have seen only videos where people have used it in asp.net
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server