zzz projects Entity Framework 6 EF 6
Home EF Core Articles Knowledge Base Online Examples
  • Home
  • EF Core
  • Articles
  • Knowledge Base
  • Online Examples

Entity Framework 6 - Knowledge Base (KB)

36 results in tag: poco

"Metadata information not found" while using EF4's POCO Template?

I just installed the POCO Template for EF4. I have a single entity in my model, ...AnnouncementText..., and the T4 files seem to be properly generated. Attempting to access this new entity is throwing the following error when I access the auto-generated...
efpocoadapter entity-framework poco
asked by ladenedge

EF4 POCO: Snapshot vs Self-tracking over WCF

Last year I developed a data access service for our project using Entity Framework (.NET3.5 of course) and using Julie Lerhman's book as a guide developed state tracking POCO objects. We use WCF and also have Silverlight 3 clients. We are moving to .NET 4...
entity-framework poco self-tracking-entities snapshot wcf
asked by MrLane

Using Entity Framework 4.0 with Code-First and POCO: How to Get Parent Object with All its Children?

I'm new to EF 4.0, so maybe this is an easy question. I've got VS2010 RC and the latest EF CTP. I'm trying to implement the "Foreign Keys" code-first example on the EF Team's Design Blog, ...http://blogs.msdn.com/efdesign/archive/2009/10/12/code-only-furt...
code-first entity-framework one-to-many poco
asked by SirEel

Generate POCO classes in different project to the project with Entity Framework model

I'm trying to use the Repository Pattern with EF4 using VS2010....To this end I am using POCO code generation by right clicking on the entity model designer and clicking Add code generation item. I then select the POCO template and get my classes....What ...
.net code-generation entity-framework poco repository-pattern
asked by Max

what is Entity Framework with POCO

What is the benefit of using POCO? I don't understand the meaning of Persistence Ignorance, what does this mean? That the poco object can't expose things like Save? I can't wrap my head around this POCO that there's alot of buzz around. ...What is the dif...
.net c# entity-framework poco
asked by pdiddy

Automapper : mapping issue with inheritance and abstract base class on collections with Entity Framework 4 Proxy Pocos

I am having an issue using AutoMapper (which is an excellent technology) to map a business object to a DTO where I have inheritance off of an abstract base class within a collection....Here are my objects:...abstract class Payment class CashPayment : Paym...
.net automapper collections entity-framework poco
asked by Ken Burkhardt

How to declare one to one relationship using Entity Framework 4 Code First (POCO)

How to declare a one to one relationship using Entity Framework 4 Code First (POCO)?...I found ...this question (one-to-one relationships in Entity Framework 4) ..., but the article that the answer references was not useful (there is one line of code that...
c# ef-code-first entity-framework one-to-one poco
asked by Paul Hiles

Why is my Entity Framework Code First proxy collection null and why can't I set it?

I am using DBContext and have two classes whose properties are all virtual. I can see in the debugger that I am getting a proxy object when I query the context. However, a collection property is still null when I try to add to it. I thought that the proxy...
collections entity-framework poco proxies
asked by Rob Kent

OptimisticConcurrencyException Does Not Work in Entity Framework In Certain Situations

UPDATE (2010-12-21): Completely rewrote this question based on tests that I've been doing. Also, this used to be a POCO specific question, but it turns out that my question isn't necessarily POCO specific....I'm using Entity Framework and I've got a time...
asp.net c# concurrency entity-framework poco
asked by Johnny Oshika

EF Code First - Recreate Database If Model Changes

I'm currently working on a project which is using EF Code First with POCOs. I have 5 POCOs that so far depends on the POCO "User"....The POCO "User" should refer to my already existing MemberShip table "aspnet_Users" (which I map it to in the OnModelCreat...
asp.net-membership entity-framework poco
asked by ebb

Entity framework attach update not working

I'm trying to update a POCO object using entity framework in the following way:... context.Jobs.Attach(job); context.SaveChanges(); ...That does not work. No error is thrown, it just isn't updating the values in the database....I tried:...context.Jobs.At...
entity-framework poco
asked by Shawn Mclean

Code First: Independent associations vs. Foreign key associations?

I have a mental debate with myself every time I start working on a new project and I am designing my POCOs. I have seen many tutorials/code samples that seem to favor ...foreign key associations...:...Foreign key association...public class Order { pub...
entity-framework poco
asked by Daniel Liuzzi

select certain fields from dbset<t>

I am using EF4.1, and for performance issues I need to select only a few fields from a DbSet which is mapped to a view on the sql server....Any ideas about how to do that?...so selecting fields from Customer would return the below error....var result = co...
entity-framework poco
asked by hazimdikenli

Loading from database without proxy classes?

In Entity Framework 4 Is it possible to choose to load some queries into a POCO without it using proxy classes? (For the purpose of caching that object for future read only use). I am using the Repository - Service pattern....By this I mean:...var order ...
c# entity-framework poco proxy-classes
asked by JK.

C# Clone System.Data.Entity.DynamicProxies to the actual (non proxied) class?

Possible Duplicate:...EF4 Cast DynamicProxies to underlying object...I'm trying to figure out how to clone or convert a System.Data.Entity.DynamicProxies into it's actual class. Eg:...System.Data.Entity.DynamicProxies.Currency_F4008E27DE_etc is the proxy ...
c# cloning dynamic-proxy entity-framework poco
asked by JK.

How to use Entity Framework with Stored procedures and POCOs

I am trying here to use Entity Framework with Stored procedures and POCOS and 2 different projects....I have one project DataAccess (for my edmx and DataContexts) and one project BusinessEntities (for my POCOs).... DataAccess have a reference of BusinessE...
c# entity-framework poco stored-procedures
asked by Erick

Entity Framework loading child collection with sort order

I have two tables a parent and a child table. The child table has a column sortorder (a numeric value). Because of the missing support of the EF to persist a IList inclusive the sort order without exposing the sortorder (see: ...Entity Framework persistin...
code-first ef-code-first entity-framework poco
asked by X181

Entity Framework Non-nullable column is mapped to a nullable entity property

I am getting this nullable column error message in Entity Framework 4.1 - when the column is not actually nullable: ...Non-nullable column MyView.RunningTotal in table TransactionListView is mapped to a nullable entity property. ...But you can see from t...
c# entity-framework mapping nullable poco
asked by JK.

Custom setter for C# model

I don't know how to make custom setter for C# data model. The scenario is pretty simple, I want my password to be automatically encrypted with SHA256 function. SHA256 function works very well (I've used in in gazillion of projects before)....I've tried co...
.net c# entity-framework poco
asked by Stan

What is POCO in Entity Framework?

I just started learning POCO but cannot understand its use and advantage. Even following link of stackoverflow did not help me....what is Entity Framework with POCO...Can anybody explain the usage of POCO with a simple example?
.net c# entity-framework poco
asked by user1556433

Page 1 of 2
  • 1
  • 2
  • »

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...

Related

  • EF Extensions Online Benchmark
  • WIN an EF Extensions license
  • EF6 BatchSaveChanges for only $79
Save your entities 20× faster with EF Extensions
SaveChanges vs BulkSaveChanges

EF Extensions
Try for free now
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!