In order to generalize a mapping class of entity framework core, there is an interface with the following definition:
public interface IEntityTypeConfiguration<TEntity>...
Saturday, 15 May 2021
Entity Framework provides several ways to intercept and customize the behavior of the framework during various stages of the database interaction process. These interception points allow developers to...
Tuesday, 19 May 2020
In SQL, we have Inner, left outer, right outer, and full outer joins. For simulating them in Entity Framework in Linq componet we should do some innovation! Let’s consider with example.
...
Monday, 17 February 2020
In earlier versions of Entity Framework( before Entity Framework . Core) when you wanted to create an inner table from two Entities, you would be able to use entity framework mapping in a way to creat...
Friday, 21 September 2018
Using the in-memory database of entity framework is super easy. Create an asp.net core and reference the following NuGet package if it's not referenced( it's been referenced in asp.net core 2 ...
Tuesday, 18 September 2018
If you have used EF core, you have seen that there is no HasPrecision method to use and all of the decimal data types will be map as decimal(18,2) in SQL server by default. We used to map de...
Saturday, 18 August 2018
In Asp.net core samples, you always see the AddDbContext method In services to register Entity framework DbContext. I mean something like below:
public class Startup
{
p...
Tuesday, 12 December 2017
Mapping in entity framework core has a little bit different configuration in comparison to the previous version of entity framework. Let's create a mapping for the following class:
...
Monday, 04 September 2017
In my previews blog post I wrote about Z.bulkOperation. I migrated to sqlbulktools just because it's free with the same ability! (to be frank). Now to see the reason for my migration, fire up visu...
Wednesday, 16 November 2016
Today I was tackling with a problem. It was about inserting and updating 200000 records of data. I just wanted to find a solution rather than writing Store Procedure. I just searched on the web and fo...
Tuesday, 25 October 2016
If you have worked with entity framework for a long time with and LINQ of course, you probably have seen the Error: The entity cannot be constructed in a LINQ to Entities query. So when...
Saturday, 24 May 2014
While using Entity Framework, definitely you will need to migrate your database! In SQL server, you need to write a query to do that. Entity framework is doing the same task but in your application vi...
Sunday, 24 March 2013
To read about definitions of Repository pattern refer to here or here and then let's begin! I'm gonna to show the using of repository pattern with entity framework in Data access layer. Sorry ...
Friday, 14 December 2012