Entity Framework

[Linq] Select Parent Objects Where Child Objects Have a Matching Child Object

Problem: Linq to Select Parent Objects Where Child Objects Have a Matching Child Object linq how to select a parent […]

Updated on     Kisan Patel

How to Handle Transactions in ASP.NET MVC ?

Problem: How to use Transactions in ASP.NET MVC ? How to Handle Transactions in ASP.NET MVC ? How to implement […]

Updated on     Kisan Patel

[Solved] Entity Framework and slow bulk INSERT

Problem: Entity Framework gets slow in long Iteration Loops. Entity Framework and slow bulk INSERT. When working with bulk insert […]

Updated on     Kisan Patel

C# – Linq Distinct on a particular Property

Problem: How to use Distinct when I do not have a simple list (a simple list of integers is pretty […]

Updated on     Kisan Patel

Using Entity Framework Code First Migrations in ASP.NET MVC

This post will explain you how to use code first migrations to include our model and update the database in […]

Updated on     Kisan Patel

How to Bulk Insert with Entity Framework?

Problem: Fastest Way of Inserting in Entity Framework How to Perform Bulk Inserts in Entity Framework? How to Bulk Insert […]

Updated on     Kisan Patel

Get individual Validation Errors in ModelState using Entity Framework

This tutorial will show you how to inspecting individual validation errors in ModelState using Entity Framework. Here are the Student […]

Updated on     Kisan Patel

Specify Computed Column in Entity Framework Code First

This tutorial will show you how to specify computed column in entity framework code first using¬†DatabaseGenerated attribute? If you’re mapping […]

Updated on     Kisan Patel

Specify auto-increment Column in the Entity Framework Code First

Auto-increment column is very useful if we want a unique key for each record in the database table. This is […]

Updated on     Kisan Patel

[Fixed] The cast to value type ‘System.Decimal’ failed because the materialized value is null.

Full Error: The cast to value type ‘System.Decimal’ failed because the materialized value is null. The cast to value type […]

Updated on     Kisan Patel