Tags » Entity Framework

How To improve Entity Framework Performance

it is mandatory to know about performance of it. These are right up to a certain point as LINQ comes with its own penalties. There are some tips and tricks that we should keep in mind while desiging and query database using entity framework… 339 more words

C#

Using a Route in Forms and Hyperlink

Using a Route in Forms

To use a route in forms, you need to change from:

@using(Html.BeginForm("Index","Products",FormMethod.Get))

to

@using(Html.BeginRouteForm("ProductsIndex",FormMethod.Get))

Using a Route in Hyperlink

To use a route in hyperlink, you need to change from: 107 more words

Blog

Seed database with test data using Entity Framework


Step 1: Right click on the project in solution explorer and add a class file with name = EmployeeDBContextSeeder.cs

Step 2: Copy and paste the following code in EmployeeDBContextSeeder.cs file… 267 more words

Entity Framework

Entity Framework - The ALTER TABLE statement conflicted with the FOREIGN KEY constraint

System.Data.SqlClient.SqlException (0x80131904): The ALTER TABLE statement conflicted with the FOREIGN KEY constraint “FK_dbo.ScheduleStateReports_dbo.UploadFile_UploadFileID”. The conflict occurred in database “aspnet-cpa”, table “dbo.UploadFile”, column ‘ID’.

Solution
Delete data from both tables.

DotNet Core and EF: Database First

In a LocalDB (SQLServer), I created 2 tables, City and Customer, with FKs from Customer to City. I populated them, and you can get the backup of those… 116 more words

DotNetCore

Entity Framework and EF Core

What is EF: EF is a Microsoft ORM, to perform CRUD operations in Databases. It was first introduced in year 2008.

Evolution of EF: 391 more words

EF Core

Adding ASP.Net Identity (with OWIN) to Existing MVC 5 Project

The simple way is start empty MVC project with authentication and pick and choose ASP.Net Identity part you want to implement.

Here is the summary: 216 more words

General