DotNetShoutout - Stories tagged with Code first
2
Shouts

Avoiding Circular Reference for Entity in JSON Serialization - Gil Fink's Blog

posted by gilfgilf 585 days, 22 hours, 17 minutes ago
Monday, October 17, 2011 9:20:31 AM GMT
One problem that I was facing yesterday while working on an ASP.NET MVC application was a JSON serialization issue. The problem was a circular reference caused by the DataContractJsonSerializer because of relations between the entity and other entities. In this post I’ll show you how you can use a simple workaround in order to avoid the problem. (more)
category: Web Dev | clicked: 32 | comment | | source: blogs.microsoft.co.il
tags: ASP.NET MVC, JSON, Serialization, Entity Framework, Code first
4
Shouts

Entity Framework Code First Development With WebMatrix

published 627 days, 1 hour, 11 minutes ago posted by MikesdotnettingMikesdotnetting 627 days, 13 hours, 30 minutes ago
Tuesday, September 06, 2011 6:26:05 AM GMT Monday, September 05, 2011 6:07:40 PM GMT
Entity Framework Code First Development With WebMatrix   The existing data access story for WebMatrix is the Database Helper. Microsoft's recommended data access technology going forward is the Entity Framework (EF). This article explores how to use the Code First capability offered by EF within an ASP.NET Web Pages application.   The database helper was introduced to provide an easy way for beginners to use SQL in their web pages. As such, it works well, but has its critics. Some of th... (more)
category: Web Dev | clicked: 29 | 1 comment | | source: www.mikesdotnetting.com
tags: Code first, Entity Framework 4.1, asp net web pages, WebMatrix
3
Shouts

Creating a Many To Many Mapping Using Code First - Gil Fink's Blog

published 660 days, 11 hours, 44 minutes ago posted by gilfgilf 663 days, 15 minutes ago
Wednesday, August 03, 2011 7:53:16 PM GMT Monday, August 01, 2011 7:22:52 AM GMT
Today I got a question about how to create a many to many mapping using Entity Framework Code First. The question was how to create the mapping with an existing database. Here is an explanation how to achieve that. (more)
category: How To | clicked: 58 | comment | | source: blogs.microsoft.co.il
tags: Fluent API, many to many, Entity Framework, Code first
3
Shouts

How to Configure a Self Reference in Code First - Gil Fink on .Net

published 721 days, 14 hours, 26 minutes ago posted by gilfgilf 721 days, 19 hours, 53 minutes ago
Friday, June 03, 2011 5:11:01 PM GMT Friday, June 03, 2011 11:44:03 AM GMT
A few days ago a worker in Sela asked me how to configure a self referencing entity with EF Code First. In this post I’ll show you how to implement that configuration. (more)
category: How To | clicked: 21 | comment | | source: blogs.microsoft.co.il
tags: Code first, Configuration, Entity Framework 4.1
7
Shouts

Creating a Code First Database Initializer Strategy - Gil Fink on .Net

published 724 days, 19 hours, 52 minutes ago posted by gilfgilf 725 days, 23 hours, 20 minutes ago
Tuesday, May 31, 2011 11:45:38 AM GMT Monday, May 30, 2011 8:17:49 AM GMT
Yesterday I helped a colleague with his ASP.NET MVC 3 site deployment. That colleague implemented the data access layer using EF4.1 Code First. One of the restrictions that he had was that he didn’t have database permissions to create a new database and couldn’t use SQL Express or SQL CE in his application. Instead he had an empty database for his disposal in the hosting environment without a way to ru... (more)
category: How To | clicked: 28 | 1 comment | | source: blogs.microsoft.co.il
tags: Code first, Entity Framework 4.1, Database, Strategy
6
Shouts

EFMVC – A demo web app using ASP.NET MVC 3 and EF 4.1 Code First

published 748 days, 7 hours, 53 minutes ago posted by http://shijucv.myopenid.com/http://shijucv.myopenid.com/ 751 days, 3 hours, 57 minutes ago
Saturday, May 07, 2011 11:43:58 PM GMT Thursday, May 05, 2011 3:40:22 AM GMT
I have created a demo web app for some of my previous blog posts and can be download from http://efmvc.codeplex.com/. The following technologies are used for the web appASP.NET MVC 3Entity Framework 4.1 Code FirstMicrosoft Unity 2.0jQuery Mobile The following are the main features of the web applicationCRUD demo in ASP.NET MVC 3 with Entity Framework 4.1 Code FirstRazor View EngineGeneric repository for Entity Framework 4.1 Code FirstRepository Pattern and Unit of WorkDependency Injection using Unity 2.... (more)
category: Web Dev | clicked: 29 | 1 comment | | source: weblogs.asp.net
tags: ASP.NET MVC 3, Code first, Entity Framework 4.1, asp.ner mvc, ASP.NET
7
Shouts

Not Just a Designer: Code First in Entity Framework Article on VS Magazine - Gil Fink on .Net

published 751 days, 18 hours, 43 minutes ago posted by gilfgilf 752 days, 18 hours, 10 minutes ago
Wednesday, May 04, 2011 12:54:12 PM GMT Tuesday, May 03, 2011 1:27:13 PM GMT
Lately I wrote an article about Code First approach in Entity Framework 4.1 for Visual Studio Magazine. The article was published a few days ago and you can read it here. Enjoy! (more)
category: How To | clicked: 5 | 2 comments | | source: blogs.microsoft.co.il
tags: Entity Framework, Code first, Entity Framework 4.1, article
6
Shouts

Spreading Inheritance Tree Mapping Across Assemblies in Code First - Gil Fink on .Net

published 767 days, 17 hours, 36 minutes ago posted by gilfgilf 768 days, 18 hours, 25 minutes ago
Monday, April 18, 2011 2:01:52 PM GMT Sunday, April 17, 2011 1:12:51 PM GMT
Today I helped a client to solve a problem regarding EF4.1 Code First. The issue that they banged their heads with was an inheritance tree mapping in their model which is spread across two different assemblies. When they run the application they always got the same exception – “mapping and metadata information could not be found for entitytype ‘entity name’”. (more)
category: How To | clicked: 2 | comment | | source: blogs.microsoft.co.il
tags: Entity Framework, Code first, Mapping
6
Shouts

EF 4.1 Released - ADO.NET team blog

published 768 days, 19 hours, 32 minutes ago posted by KluggerKlugger 769 days, 11 hours, 15 minutes ago
Sunday, April 17, 2011 12:05:53 PM GMT Saturday, April 16, 2011 8:22:03 PM GMT
We are excited to announce the final Release to Web (RTW) of Microsoft ADO.NET Entity Framework 4.1 (EF 4.1). This is a fully supported, go-live release. What’s in EF 4.1? ADO.NET Entity Framework 4.1 introduces two new features: The DbContext API is a simplified abstraction over ObjectContext and a number of other types that were included in previous releases of the ADO.NET Entity Framework. The DbContext API surface is optimized for common tasks and coding patterns. DbContext can be used with Databa... (more)
category: Architecture | clicked: 15 | 1 comment | | source: blogs.msdn.com
tags: ADO.NET, Entity Framework, Code first, What's New, DbContext API
7
Shouts

MVC + Code-First + Azure Part 2: Deployment - ADO.NET team blog

published 768 days, 19 hours, 32 minutes ago posted by iftekharahmedamitiftekharahmedamit 769 days, 12 hours, 6 minutes ago
Sunday, April 17, 2011 12:05:53 PM GMT Saturday, April 16, 2011 7:31:50 PM GMT
In the previous article, you learned how to create a basic MVC application using Code First. In the second and final section you will learn how to prepare and deploy your application to Windows Azure using Visual Studio. Deploying to Windows Azure Preparing Application Having tested our app locally, it is time to set up Azure to deploy our app. Although this process may seem long, all the steps except for deployment only have to be done once per application. First thing we must do before deploying is e... (more)
category: Architecture | clicked: 3 | comment | | source: blogs.msdn.com
tags: ADO.NET, Windows Azure, Code-first, Linq To SQL, Entity Framework, Code first, SQL Azure, DbContext API, MVC, Azure
8
Shouts

Code First/Entity Framework 4.1 Videos and Articles on MSDN - Julie Lerman

published 768 days, 19 hours, 32 minutes ago posted by iftekharahmedamitiftekharahmedamit 769 days, 12 hours, 21 minutes ago
Sunday, April 17, 2011 12:05:53 PM GMT Saturday, April 16, 2011 7:16:07 PM GMT
Currently, 8 of the 10 videos on Code First and EF 4.1 I have already created for MSDN are online but they are not easy to find. Three of them are on the msdn.com/data/videos page. The others have not been placed there yet although you can find links to the videos at msdn.com/data/ef and then from the videos to the articles. Here are direct links to all of the videos and related articles that are currently online.Building an MVC 3 App with Code First and Entity Framework 4.1  Whitepaper     VideoBuildi... (more)
category: Architecture | clicked: 19 | comment | | source: thedatafarm.com
tags: Entity Framework, Code first, Entity Framework 4.1, Entity Framework 4
3
Shouts

Four ways to utilize Entity Framework 4 - .NET Development - Gal Ratner

published 790 days, 10 hours, 41 minutes ago posted by galratnergalratner 793 days, 1 hour, 46 minutes ago
Saturday, March 26, 2011 8:56:13 PM GMT Thursday, March 24, 2011 5:51:48 AM GMT
There is some confusion out there about a simple question: How can I use Entity Framework? Some developers have heard about reverse engineering models so I decided to write a quick preview to the main features of EF4. This isn’t an in-depth article, but, rather a visual summary of the main four scenarios EF can accommodate.  If you are looking to utilize any of the scenarios described here you might need to seek further documentation and realize that development with Entity Framework is a vast subject an... (more)
category: Architecture | clicked: 1 | comment | | source: galratner.com
tags: Code first, Entity Framework 4
4
Shouts

Using WCF Data Services with Entity Framework 4.1 and Code First - ADO.NET team blog

published 794 days, 7 hours, 38 minutes ago posted by iftekharahmedamitiftekharahmedamit 794 days, 16 hours, 44 minutes ago
Tuesday, March 22, 2011 11:59:28 PM GMT Tuesday, March 22, 2011 2:53:08 PM GMT
In this post you’ll see how Code First and the DbContext class in Entity Framework 4.1 RC will work with WCF Data Services going forward. WCF Data Services in .NET 4.0 was released prior to the Entity Framework 4.1 RC and so does not natively know about the DbContext class. There are numerous posts already on how to get DbContext to work with WCF Data Services in .NET 4.0, including this one by Rowan Miller. These posts talk about how to write some extra code to initialize the DataService class. This is ... (more)
category: Architecture | clicked: 41 | 1 comment | | source: blogs.msdn.com
tags: DbContext, Code first, Data Services, Entity Framework 4.1, WCF Data Services, WCF
9
Shouts

Using Code First Model Configurations Classes - Gil Fink on .Net

published 808 days, 15 hours, 26 minutes ago posted by gilfgilf 809 days, 17 hours, 43 minutes ago
Tuesday, March 08, 2011 4:11:34 PM GMT Monday, March 07, 2011 1:54:06 PM GMT
In the past I explained how to use the Code First Fluent API in order to configure and shape your EDM during runtime. One of the problems that might raise when you use the Fluent API as I showed in the previous post is that the OnModelCreating method might become bloated and hard to read. This is the time to get familiar with another model configuration option which is built inside Code First. (more)
category: How To | clicked: 1 | comment | | source: blogs.microsoft.co.il
tags: Entity Framework, Code first, Configuration
6
Shouts

Contract first vs Code first WCF

published 819 days, 8 hours, 43 minutes ago posted by lukus7lukus7 819 days, 20 hours, 43 minutes ago
Friday, February 25, 2011 10:54:52 PM GMT Friday, February 25, 2011 10:54:34 AM GMT
Reflections on contract first WCF and if it is worth the extra effort. (more)
category: Web Dev | clicked: 11 | 1 comment | | source: www.instantiate.co.nz
tags: .NET, Web Services, Code first, contract first, WCF, XSD
3
Shouts

EF Feature CTP5: Inheritance Scenarios with Code First Fluent API - Gil Fink on .Net

published 893 days, 5 hours, 39 minutes ago posted by gilfgilf 894 days, 21 hours, 2 minutes ago
Tuesday, December 14, 2010 1:58:42 AM GMT Sunday, December 12, 2010 10:35:47 AM GMT
One of the interesting features of Code Firstfluent API is the ability to configure inheritance in your model. Since one of the strengths of an O/RM solution is its ability to map inheritance then this feature is a must in every mapping scenario (may it be Model first, Database First or Code First). In this post I’ll show how to configure inheritance by using the fluent API. (more)
category: How To | clicked: 0 | comment | | source: blogs.microsoft.co.il
tags: Fluent API, Code first, Entity Framework 4, CTP
5
Shouts

Class-Level Model Validation with EF Code First and ASP.NET MVC 3 - ScottGu's Blog

published 893 days, 5 hours, 39 minutes ago posted by http://kazimanzurrashid.myopenid.com/http://kazimanzurrashid.myopenid.com/ 895 days, 13 hours, 37 minutes ago
Tuesday, December 14, 2010 1:58:42 AM GMT Saturday, December 11, 2010 6:00:48 PM GMT
Earlier this week the data team released the CTP5 build of the new Entity Framework Code-First library.  In my blog post a few days ago I talked about a few of the improvements introduced with the new CTP5 build.  Automatic support for enforcing DataAnnotation validation attributes on models was one of the improvements I discussed.  It provides a pretty easy way to enable property-level validation logic within your model layer. You can apply validation attributes like [Required], [Range], and [Regular... (more)
category: Architecture | clicked: 1 | comment | | source: weblogs.asp.net
tags: EF, Entity Framework, Code first, Entity Framework 4
6
Shouts

Announcing Entity Framework Code-First (CTP5 release) - ScottGu's Blog

published 895 days, 14 hours, 50 minutes ago posted by http://kazimanzurrashid.myopenid.com/http://kazimanzurrashid.myopenid.com/ 898 days, 18 hours, 33 minutes ago
Saturday, December 11, 2010 4:47:49 PM GMT Wednesday, December 08, 2010 1:04:29 PM GMT
This week the data team released the CTP5 build of the new Entity Framework Code-First library.  EF Code-First enables a pretty sweet code-centric development workflow for working with data.  It enables you to:Develop without ever having to open a designer or define an XML mapping file Define model objects by simply writing “plain old classes” with no base classes required Use a “convention over configuration” approach that enables database persistence without explicitly configuring anything Optionally o... (more)
category: How To | clicked: 1 | comment | | source: weblogs.asp.net
tags: Code first, entity framework 4.0
8
Shouts

MSDN Magazine: Data Points - Entity Framework Preview: code first, ObjectSet and DbContext

published 962 days, 20 hours, 12 minutes ago posted by https://me.yahoo.com/mosessaur#7fe0dhttps://me.yahoo.com/mosessaur#7fe0d 964 days, 20 hours, 39 minutes ago
Tuesday, October 05, 2010 11:25:29 AM GMT Sunday, October 03, 2010 10:58:46 AM GMT
With the code first feature in Entity Framework, there is no visual data model and no XML describing that model. You simply create the classes for your application domain and go. We’ll show you this and several other nifty new features in the latest EF CTP. (more)
category: How To | clicked: 4 | comment | | source: msdn.microsoft.com
tags: EF, Entity Framework, EF4, Code first, entityframework, MSDN, MSDN Magazine
7
Shouts

Entity Framework 4 “Code-First” - Custom Database Schema Mapping - ScottGu's Blog

published 1035 days, 14 hours, 26 minutes ago posted by rajuraju 1036 days, 20 hours, 53 minutes ago
Saturday, July 24, 2010 5:11:12 PM GMT Friday, July 23, 2010 10:44:15 AM GMT
Last week I blogged about the new Entity Framework 4 “code first” development option.  The EF “code-first” option enables a pretty sweet code-centric development workflow for working with data.  It enables you to:Develop without ever having to open a designer or define an XML mapping file Define model objects by simply writing “plain old classes” with no base classes required Use a “convention over configuration” approach that enables database persistence without explicitly configuring anything In last... (more)
category: How To | clicked: 2 | comment | | source: weblogs.asp.net
tags: XML, Code first, Entity Framework 4, ScottGu
Previous 1 2 Next