Fluent API, Annotations and EF 4.1 - entity-framework

Would somebody please guide me towards links that explain Fluent API and Annotations when using EF 4.1 code first please? The more in depth, the better.
Thank you so much for your help in advance!

May issue of MSDN magazine contains article about EF 4.1. For further information check these blogs:
ADO.NET team blog
Morteza Manavi's Blog
Julie Lerman's Blog
You can also check this video but for that you need a subscription ($29 per month).
Almost everything can be found on Stack Overflow ;)
code-first ef-code-first entity-framework-4.1 dataannotations

http://msdn.microsoft.com/en-us/data/aa937723 has many tutorials on Entity Framework 4.1
Fluent API : http://msdn.microsoft.com/en-us/data/hh272551
Data Annotations : http://msdn.microsoft.com/en-us/data/gg193958

Related

Purpose of Entity Framework DBContext Generator

This is probably an obvious question to many but I'm scratching my head over this one.
Can someone explain to me what purpose/advantage generating POCO classes via t4 templates such as the ADO.Net DBContext Generator has over standard EDMX data access?
I understand that they offer extensibility over the entity class definitions, but if a development team is not interested in that what other obvious purpose or advantages do they have?
Thanks
As mentioned by ThomasH in the comments the provided link gave me the info I needed.

Any Data Annotations tutorials that use EF Database-First approach to explain the subject?

All tutorials on Data Annotation attributes I've found explain the subject using either Asp.Net or EF Code-First examples. I don't know either of the two, so do you know of any tutorials that would explain the subject using EF Database-First approach?
Thank you
Here's one that's for ASP.NET Web Forms with EF Database First:
http://www.asp.net/web-forms/tutorials/getting-started-with-ef/the-entity-framework-and-aspnet-getting-started-part-8
This is the last installment in an 8-part tutorial series.

What the purpose of OnModelCreating in EF4 Code-First?

I was curious about what the purpose of OnModelCreating in EF4 Code-First context class? How does it work?
Here is a nice article in ADO.NET Team Blog.
In short, this event is mainly for Fluent mapping.
OnModelCreating gives you access to a ModelBuilder instance that you can use to configure/customize the model.
As the previous answer mentions, you will typically use the code-first fluent API within it. Gil Fink has posted what IMHO is a clearer explanation than the article cited in the previous answer.
For background info, Guthrie has a nice intro article on EF Code-First, and if you are wondering why its referred to as "fluent API", look here.

How can we use the LinqToSQL in ASP.NET MVC 2 Application?

Can anyone help me to write an Application using ASP.NET MVC 2 and LinqToSQL??? also explain the Repository Pattern!!!
Unless you specify what kind of help, it's very hard to answer your question. This article from Scott Gu might help you get started with linq to sql.
Here's a link to another article on the repository pattern, and here

Entity framework 4 blog or information page

I am trying to find proper place where can i get all updates regarding EF 4 as we are going to use it for our new project.
Is there any team blog for EF4 from microsoft?
Any other online source?
I am trying to get upto speed with EF 4 but just googling everywhere there seems to be old information and confusion me a lot.
http://blogs.msdn.com/efdesign/ Entity Framework Design
http://blogs.msdn.com/adonet/default.aspx ADO.Net Team blog
http://misfitgeek.com/blog/resources-for-learning-the-ado-net-entity-framework/
http://msdn.microsoft.com/en-us/data/aa937723.aspx
Entity Framework 4.0 Resources – documentation links, best blog posts and more
Julia Lerman (author of "Programming Entity Framework") also has a lot of informationn on her blog Don't Be Iffy and on her book web site, Learn Entity Framework. She's currently updating her book content to reflect EF4.
Marc
Danny Simmons is the EF dev manager for Microsoft, his blog is: system.data.objects dev guy