.NET 4.0 and VS 2010 introduce a new feature for the Entity Framework called model first. In addition, you will now be able to have a code only model. Written with POCOs and a simple class derived from ObjectContext and you are on the way…
Yesterday i was attempting to use a stored procedure with the Entity Framework through the “function import” features and couldn’t get the auto-gen feature to expose the function on the Context. The stored procedure was returning a scalar value which at this point doesn’t seem to be supported through auto-gen. Choosing an Entity, however works fine. Further digging this morning led me to this article on the ADO.NET team blog explaining the issues with return types and stored procedures in Entity Framework. The article also links to another great article showing how to return custom types two ways: one way through the entity framework itself, the other through the use of extension methods.
Ran into an issue on a website where the Session was timing out yet the forms auth ticket was still valid which was causing errors. Here is one solution:
The GU also mentions some of this in the post and in digging through all the comments.
Ya, i know, you can type “prop” + tab->tab but i like this better. It will create the public properties for a highlighted list of private members to the clipboard. You can then choose where to paste the results in your code.
For a complete description:
To download the VS 2008 Compatible version:
Found a brief, useful example of how to implement a simple plug-in based application via .NET today on CodeProject.
To use the template, goto File\New Project\Visual C# and look to “My Templates” and you should see WCF JSON.