Tags » Entity Framework

Entity Framework & Direct SQL

Entity Framework is a great time saver.

When I think back to the days when I had to manually construct SQL statements, parse the results, control updates, and of course ensure my actual database design was in sync with what my code expected – well it sends a shiver down my spine! 740 more words

.NET

Naming the Patron Object

There are only two hard things in Computer Science: cache invalidation and naming things.

– Phil Karlton

To any seasoned developer, this is entirely too true, and…

334 more words
Coding

Common Problems with Entity Framework for Importing Store Procedure

Three common issues occurs while adding store procedure to edmx file of Entity Framework

Introduction

I’ve seen three problems with updating a Stored Procedure after adding it to the entity framework: 589 more words

SQL

Gotcha: Entity Framework gets slow in long Iteration Loops

Gotcha: Entity Framework gets slow in long Iteration Loops http://t.co/MlVl7nw7BZ

— Danny Acuna (@DannyAcunaTECH) December 31, 2014

Good2Read

Entity FrameWork Basic

Entity Framework

  1. Insert object

Entities db = new Entities();

db.Connection.Open();

db.BasicParameters.AddObject(obj);

db.SaveChanges();

db.Connection.Close();

  1. Update Object

Entities db = new Entities();

db.Connection.Open();

var query = from wgroup in db.BasicParameters where wgroup.ID == obj.ID select wgroup; 321 more words

Entity FrameWork

Repository + Unit Of Work Pattern Demystified

The repository and unit of work patterns are intended to create an abstraction layer between the data access layer and the business logic layer of an application. 1,800 more words

Design Pattern