Cynthia
Cynthia

Reputation: 2150

Is there a reference for EF4 Fluent API syntax?

I keep searching the web for examples of the new fluent API syntax in Microsoft's Entity Framework technology previews ... I come up with bits and pieces here and there.

Is there any reliable place to go to find ALL the possibilities? And maybe something that explains them a bit ("HasRequired", "WithMany", etc.)?

FYI, I am specifically trying to figure out how to define a foreign key/primary key relationship explicitly through fluent API.

Upvotes: 6

Views: 2334

Answers (3)

Ladislav Mrnka
Ladislav Mrnka

Reputation: 364329

The best reference at the moment are blog posts (=> google). You can start with ADO.NET Team blog where are announced new features with examples.

Upvotes: 2

Alpha
Alpha

Reputation: 7868

I know this question has more than one year old, but for those who arrive here: MSDN now has an entry on Code First Fluent API with introductory examples and common tasks.

Upvotes: 2

Craig Stuntz
Craig Stuntz

Reputation: 126557

No, unfortunately, not at this time. The current syntax is a preview and subject to change. There is no official documentation yet. There is nothing in MSDN. The best one-stop example I found is here. See also this post and the items linked there.

Folks on the leading edge can expect turbulence. :)

Update: The API documentation was just released.

Upvotes: 7

Related Questions