Contents tagged with Entity Framework
-
Fix: Add an Existing Entity Framework .edmx File to Visual Studio 2013
One of my older code samples for RainWorx AuctionWorx uses Entity Framework and SQLCE to bulk import AdventureWorks products as sample auction, classified, and fixed price listings into the system.
-
EntityDataSource control for Entity Framework 6 Preview
It took a while but we now have a preview version of the EntityDataSource control for Entity Framework 6.
-
Explained: EF 6 and “Could not determine storage version; a valid storage connection or a version hint is required.”
I have a legacy ASP.NET 3.5 web site that I’ve upgraded to a .NET 4 web application. At the same time, I upgraded to Entity Framework 6.
-
Fix: The type 'System.Data.Objects.ObjectContext' is defined in an assembly that is not referenced.
I got this message in a class that inherits from DbContext. It made no sense, because System.Data.Entity was definitely referenced in my ASP.NET project.
-
Entity Framework Code First–Magic SQL Tool
Having written the plain old classes (POCO) for my latest Web application, I wasn’t looking forward to creating the corresponding tables in SQL Server. I’m not a database guy really. Just a guy who needs to use databases.
-
Fix: 'Unable to load one or more of the requested types' Errors
A long time ago, I reported on an intermittent ‘Could not load file or assembly‘ bug where ASP.NET 4 was encountering a bizarre error on start-up in System.Reflection.RuntimeModule.GetTypes(RuntimeModule module). I neglected to post a follow-up here.
-
Extracting the Date from a DateTime in Entity Framework 4 and LINQ
In my current ASP.NET 4 project, I’m displaying dates in a GridDateTimeColumn of Telerik’s ASP.NET Radgrid control. I don’t care about the time stuff, so my DataFormatString shows only the date bits:
-
Entity Framework Code-First to Provide Replacement for ASP.NET Profile Provider
A while back, I coordinated a project to add support for the SQL Table Profile Provider in ASP.NET 4 Web Applications. We urged Microsoft to improve ASP.NET’s built-in Profile support so our workaround wouldn’t be necessary. Instead, Microsoft plans to provide a replacement for ASP.NET Profile in a forthcoming release.
-
Fix: The version of SQL Server in use does not support datatype 'datetime2'.
This message appeared today after posting a new build to our ASP.NET 4 web app:
-
Fix: The argument types 'Edm.Guid' and 'Edm.String' are incompatible for this operation.
This one had me going for a while until I found the tip in Julie Lerman’s essential book, Programming Entity Framework, 2nd Edition.