Contents tagged with Entity Framework
-
Fed Up With System.Data.Metadata.Edm.ObjectItemAssemblyLoader
I’m fed up with the random errors I’m getting on my ASP.NET 4, Entity Framework 4 web application lately. It seems to stem from something that System.Data.Metadata.Edm is doing with a call to System.Reflection.Assembly.GetTypes().
-
Fix: The type or namespace name 'EntityDataSource' does not exist
Today’s stupid mistake had me going in circles in my Web application project. The error message was:
-
Monitor Your EF4 Queries with Entity Framework Profiler
Entity Framework is wonderful for non-SQL developers like me. I can implement data access code in VB-like object syntax or with drag’n’drop datasource controls and then let EF turn it into T-SQL.
-
Unhelpful ASP.NET Error Message: ‘Retrieve the LoaderExceptions property for more information’
Since I upgraded my file-based web site from ASP.NET 3.5 to 4.0 (including Entity Framework 4), I’ve been getting the following error message far too often:
-
‘Schema specified is not valid’ error on Upgrading to ASP.NET 4
To take advantage of improvements in ASP.NET 4 and Entity Framework 4, I decided to upgrade my ASP.NET 3.5 site to 4.0. Most everything went smoothly except for the following error:
-
Fix: WCF - The type provided as the Service attribute value in the ServiceHost directive could not be found
I wanted to expose some raw data to users in my current ASP.NET 3.5 web site project. I created a subdirectory called ‘datafeeds’ and added a WCF Data Service. I wired the dataservice up to the Entity Framework class and, on running the ItemDataService.svc file, was greeted with:
-
EF 4 Pluralization Update
I previously wrote about playing with EF 4’s PluralizationService class. Now that OrcsWeb is running ASP.NET 4, you can play with my little pluralization page and its WCF service online.
-
EF 4’s PluralizationService Class: A Singularly Impossible Plurality
Entity Framework’s new 4.0 designer does its best to generate correct plural and singular forms of object names. This magic is done through the PluralizationService Class found in the System.Data.Entity.Design.PluralizationServices namespace and in the System.Data.Entity.Design.dll assembly.
-
Using a Stored Procedure in Entity Framework 4
In my latest contract, the DBA has opted to use SQL Server stored procedures for all data access. Preventing direct table access may ensure maximum security and performance - but it sure reduces the fun for the front-end guy (me).
-
Fixing the ‘Telerik.WebControls.GridInsertionObject does not contain a property’ Error
I really like working with the Telerik ASP.NET AJAX controls. However, I keep forgetting about a problem in the RadGrid that occurs when trying to add a new record using EntityDataSource. If there aren’t any records yet, and you click Add Record, you often get this: