Tags » Entity Framework

How to Break Out Aggregate Roots and Repositories in a Legacy Entity Framework Application

I started working at my current job about a year ago. They are a bright group, filled with a diverse set of development talent. The applications our team works on are multi-tiered with extremely complex business logic, a DDD enthusiast’s heaven. 1,494 more words

Menace of Trim function usage in Entity Framework

Problem Statement 

During the last few weeks, we have been working towards improving the performance of one of our applications. We had multiple refinement meetings to break down the cumulative effort into multiple user stories. 733 more words

SQL Server

Handy note on Configuration and InitializationStrategy in .Net EntityFramework

The default Entity framework conventions can be overridden through two methods
1.Data Annotations
2.Fluent API.
Entities and properties are configured through EntityTypeConfiguration. The ModelBuilder class provides Enity (),which return EntityTypeConfiguration object which is  used in configuration.  180 more words


One stop for all basic Entity framework Migration commands

This post thows up a glimpse on the basic commads syntax and usage serving as a quick reference when ever you are struck out for pretty basic thing. 185 more words


Entity Framework Core dynamic connection string (multi-tenant) with DI

Isolating database to each customer, sounds crazy, but it is having great benefit when it comes to management. The key here is do it using ASP.NET Core Dependency Injection, otherwise, it can be done easily by passing connectionString as parameter when initiating new DbContext. 535 more words


EF code first - Model compatibility cannot be checked because the database does not contain model metadata

This suggests that migration table is out of sync (even if your data isn’t), and that’s been part of the db schema now (since 4.3 I think – under system tables). 304 more words


A Shallow Dive into EntityTypeConfiguration

Hello! Strawberry Sberry here. This time strawberry in search of a new tech friend. Sberry came to know about EntityTypeConfiguration from its previous tech friend DbContext. 349 more words