❔ DbContext
Can i use this in a non-asp area like for example, a simple program to make few tables using DbSet
11 Replies
Sure, you can use EF Core in any kind of a project
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
That's an entirely different thing
Dependency injection
You can use EF Core without dependency injection
do you have any resources for that information
First EF Core Console Application
Learn to use Entity Framework Core in an application step by step.
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
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
Yes u can i was doing it ez to build a database from code first approch
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.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
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.