This course will be retired on June 1, 2025.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
Let's take a moment to talk about databases and the .NET Framework's support for working with databases. We'll also take a look at what Entity Framework is and how it offers developers a better way of working with data in their applications.
POCOs
In the video, I referred to POCOs as "Plain Old C# Objects", though they're sometimes known as "Plain Old CLR Objects". The CLR is the part of the .NET Framework that manages the execution of .NET applications. Click here for more information about the .NET CLR.
Entity Framework Data Providers
While EF is typically used with SQL Server, other databases are supported through the use of data providers. Here are links to some common alternatives.
- Oracle (NuGet Package)
- MySQL (NuGet Package)
- PostgreSQL (NuGet Package)
Additional Learning
If you'd like to learn more about databases, see these Treehouse courses.
For more information about LINQ, see this Treehouse course.
LINQ to Entities enables developers to write EF queries using C#. For more information see:
EF Development History
EF has improved greatly since its early releases. Here's an overview of the development history of EF.
- 3.5
- Initially only supported Database First workflow
- No support for POCO entity classes
- 4.0
- Model First workflow
- Support for POCO entity classes
- Lazy loading
- 4.1
- First version shipped outside of the .NET Framework
- Added support for Code First workflow
- DbContext
- 4.3
- Introduced Code First Migrations
- 5.0
- EF is open sourced
- Enum support
- EF Power Tools
- 6.0
- Async query and save
- No longer dependent on the .NET Framework
- Full list of changes at https://msdn.microsoft.com/en-us/data/jj574253.aspx
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up