Questions tagged [efpocoadapter]
15 questions
23
votes
8 answers
"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…

ladenedge
- 13,197
- 11
- 60
- 117
10
votes
3 answers
DataContractSerializer: How to serialize classes/members without DataContract/DataMember attributes
DataContractSerializer requires classes and members to be marked with the DataContract and DataMember attributes. However, in my case the classes are auto-generated with the EFPocoAdapater framework and these attributes are not present.
How can I…

aleemb
- 31,265
- 19
- 98
- 114
3
votes
1 answer
Memory usage in EF 1 web service application keeps growing on each call - query cache issues?
hoping some of you clever people can help me out here!
We have an ASP.NET web service app, using Entity Framework 1 and EFPocoAdapter. The mem usage of the app pool running this web service keeps growing on every web service call. We currently…

John_Higg
- 31
- 1
3
votes
1 answer
How to design an application using Entity Framework 4.1, POCOs, and the Repository Pattern
I'm trying to design an application, in ASP.NET MVC, using Enterprise Library 4.1 I added the Entity Framework POCO template and moved the generated entities to a separate "Entities" project. However, I'm having a hard time determining the best…

Bob Wintemberg
- 3,212
- 6
- 34
- 44
3
votes
1 answer
Entity Framework with POCO Template and FKs in Model - Null Ref Exception
I'm using Entity Framework 4 with the POCO code generation template from Microsoft downloaded from the Visual Studio gallery. I am also leaving the default option to "Include foreign keys in model" selected when generating the EF model from the…

Brian Sullivan
- 27,513
- 23
- 77
- 91
2
votes
2 answers
Entity Framework Foreign Key (or lack thereof)
So I have pouring of this code forever, trying to figure this out... I am using Entity Framework 1.0 with ASP.NET MVC in .NET 3.5 SP1 with EFPocoAdapter (so separate Poco classes).
So I have the following code for one of Controllers:
…
J Barker
2
votes
1 answer
Can I get a POCO from EF4's function import?
In the context of Entity Framework 4, the default behavior when adding a function import is to call it via ExecuteFunction(), where T must apparently implement some property change notification stuff. (In my case it's generating a complex type…

ladenedge
- 13,197
- 11
- 60
- 117
1
vote
1 answer
How else can I map decimals to doubles with EntityFramework POCOs?
I'm trying to refactor an an existing codebase to use POCO EF. Currently it uses EntityObjects but there is custom code to "flatten" the mapped objects to POCOs, i.e. for all mapped classes there are currently two related objects, one POCO called…

adhocgeek
- 1,437
- 1
- 16
- 30
1
vote
0 answers
EFPocoAdapter -- PopulatePocoEntity has null PocoEntity
I'm trying EF with the EFPocoAdapter for the first time. I have a relatively simple TPH scenario with one table and two types, each inheriting from an abstract base class.
My model validates through EdmGen, and my PocoAdapter.cs and xxxEntities.cs…

basscinner
- 323
- 1
- 5
- 13
0
votes
2 answers
How can I create separate projects containing relative entities (POCOs) using EF and then access them from a single project
Consider I want to develop a large enterprise application. In my application I have several modules something like:
Purchase, Inventory, Accounts, Payroll, HR and so on. I will develop each of these modules individually.
I want to create a Class…

Hasibul
- 569
- 2
- 6
- 21
0
votes
1 answer
Entity Framework v1 and Cached POCO update
I am using EF v1 and Velocity cache in my .NET 3.5 application. My cached objects are a representation of the Entity model in database. So I decided to use EF v1 with POCO adapters. So there's an entity access layer that reads the object from cache…

Megha
- 335
- 3
- 13
0
votes
1 answer
EF Saving changes suddenly stopped working
SaveChanges() on my EFv4 POCO context suddenly stopped working. It issues an error "Cannot insert NULL value into column 'postalcode' of table Clients"
Client entity contains a reference to PostCode (properties postalcode, postname) entity.
PostCode…

mare
- 13,033
- 24
- 102
- 191
0
votes
0 answers
Reverse Poco only Generating initial comment block
I'm trying to generate models from an existing database using the Reverse POCO generator. I've not made any changes to the default template file and I've called my connection string "MyDbContext".

Web Develop Wolf
- 5,996
- 12
- 52
- 101
0
votes
1 answer
The type or namespace name 'FixupCollection' could not be found
I generated POCO's using the EF POCO template. When I build my project, it tells me that I am missing a reference to the FixupCollection. Which library reference am I missing?
Here's the error:
The type or namespace name 'FixupCollection' could not…

Water Cooler v2
- 32,724
- 54
- 166
- 336
0
votes
2 answers
Can't do projections to Persistence Ignorance (POCO) class using EFPocoAdapter
Given a simple POCO class such as:
public class User { public int Id { get; set; } public string Name { get; set; } public string Password { get; set; } }
When I try a query with projection to itself like so:
using (var context = new…
Carlos