browse.develop.com
Browse.develop.com is a community that was established to collect and
organize valuable web information. Our technical staff have selected and
indexed information and courses that they feel will help you stay
current on best practices across the SDLC.
|
85 Articles match "Entity Framework"
-
| The Best from DevelopMentor | 85 Results found Showing page 1 of 9 Next > | - Entity Framework 5 + Enumerations => What’s not to love?
Entity Framework 5 now supports enumerations (when using Visual Studio 2012 and targeting the.NET 4.5 framework). Next we’ll generate an entity data model from the database. Using enumerations with Entity Framework 5. We need to change the type of the ‘Habitable’ column in the database to a tinyint and we need to modify the information in the conceptual schema to inform the entity framework of our change in design: The screenshot shows that we need to change the underlying type as well as check the “Set Flags attribute”. DevelopMentor Courses - Sunday, September 2, 2012 - Entity Framework 5 is available
Entity Framework 5 is included in Visual Studio 2012, but is also available to users of Visual Studio 2010 (as a NuGet package: [link] ). Note: Some Entity Framework 5 features are only available when writing an application that targets.NET 4.5. Entity FrameworkThis includes enum support, spatial data types, table-valued functions and the performance improvements. Read more about what is new on the MSDN ADO.NET blog: [link]. DevelopMentor Courses - Sunday, August 26, 2012 - Reporting using Entity Framework
Technologies like Entity Framework help us convert data in the database to.NET objects and add logic. 39: Next step is to create a WCF service application, add an Entity Framework model and drag the two views onto the model: Next we’ll implement two methods to use the Entity Framework model to select the data and return a list of CustomerView or OrderView objects. For many years the mantra for implementing business logic in your line of business application has been: “don’t put it in the database, don’t put it in the user interface”. Life is good. The Blomsma Code - Wednesday, October 20, 2010 - Type-Safe Include extension method for Entity Framework
If you’re interested in the Include method in a LINQ to Entities queries to be type-safe, then Joe Ferner has the answer for you in this post: Type-Safe Entity Framework Include: [link]. Entity Framework DevelopMentor Courses - Tuesday, January 24, 2012 - Generating an index in the database using Entity Framework Code First
If you’re using Entity Framework Code First, then you may want to create an index on some of your table. Entity FrameworkThe way to do this is to call “Database.ExecuteSqlCommand” in the “Seed” method of your database initializer. The sample below shows how it is done (thanks to Rolf for pointing me in the right direction): using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.Entity; using System.ComponentModel.DataAnnotations; namespace CodeFirstPlayground. {. class Program. {. static void Main( string [] args ). {. DevelopMentor Courses - Tuesday, January 17, 2012 - So Cal Code Camp Session on Entity Framework 4.0
I’ll be presenting a session at Southern California Code Camp entitled “ What’s New in Entity Framework 4.0 ” on Sunday Nov 22nd. Tags: Technical Entity Framework Hope to see you there! Tony and Zuzana's World - Wednesday, November 18, 2009 - Logging and tracing with Entity Framework
If you’re using the Entity Framework and don’t want to implement ToTraceString() at strategic points in your code in order to see what kind of SQL statements are getting generated then check out one of the following: Community Entity Framework Provider Wrappers (free). Entity Framework Profiler. Entity Framework LINQlink] /. Or use NuGet: Install-Package CommunityEFProviderWrappers.EFTracingProvider. link]. DevelopMentor Courses - Wednesday, June 29, 2011 - Entity Framework - Model First: One-to-One relationship
If you’re doing Model First with Entity Framework you may run into a scenario where you want to design a 1-to-1 relationship, but also have a foreign key be available on your entity. The default behavior in Entity Framework when doing a 1-to-1 relationship (with Model First), or 1-to-0.1 Add the entity that goes on the 1 side of the association, give it a primary key of type integer. Add the entity that goes on the 0.1 Click on the 1 entity and add an association, make it a 1-to-0.1, Entity Framework LINQ DevelopMentor Courses - Wednesday, June 29, 2011 - Tony Sneed: Build Async Services with ASP.NET Web API and Entity Framework 6
If you are building web services that interact with a database, chances are they are not written in a scalable fashion. Web services based either on WCF, which supports both SOAP and REST, or on ASP.NET Web API, which exclusively … Continue reading → DevelopMentor Courses - Friday, March 22, 2013 - Entity Framework 4.1 power tools
For each table a 2 classes are generated, the first is the entity class itself. The second is a map class that defines the mapping between the entity and the database. Another thing I noticed was that the entities only have their collection properties marked as virtual. The other properties containing the entity data are not virtual. The EF team at Microsoft just release a first CTP of the EF 4.1 Power Tools making it even easier to do Code First development with an existing database. The only gotcha is you have to make sure the EF4.1 Adding Ef4.1 Enjoy! The Problem Solver - Thursday, May 19, 2011 %> |