Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 411
Cynthia Avatar asked Sep 09 '10 18:09

Cynthia


1 Answers

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.

like image 60
Craig Stuntz Avatar answered Oct 17 '22 13:10

Craig Stuntz