CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

John Papa [MVP C#]

.NET Code Samples, Data Access, and Other Musings

January 2008 - Posts

  • Invalid References in Entity Framework

    We all make mistakes ... I know I certainly do. Today I made one that only set me back about 10 minutes ... but I admit I felt silly after I realized what I did wrong. Today I created a new VS 2008 project, added an Entity Data model (aka EDMX file) to the project, and began setting up my EDM. When i went to build the project I received a ton of errors about invalid references. So I checked my references folder and bam! ... several dll's were marked is invalid.

    image

    The quick and easy solution to this problem was that I forgot to set the target framework of my project to .NET Framework 3.5.

    image

    Once this is done everything is happy as Ferris Bueller in a parade.

  • Designing an Entity Data Model

    Just published is my article on Designing an Entity Data Model with the Entity Framework tools. This article is part of my Data Points column in the February issue of MSDN Magazine. A few months ago I wrote an article discussing an overview of the Entity Framework and examining the CSDL, SSDL, and MSL that defines the EDM. When that article was published the tools were not available, so in this article I  decided to explain how the tools work which coincides nicely with the previous article's explanation of the XML files (CSDL, SSDL, MSL). The EDM designer sits  on top of the XML files and uses the XML information to represent the model. Likewise, the model can be changed using the designer tools which then updates the XML under the covers.

    I will be having a few more articles in the upcoming months that explain more about the Entity Framework and its auxiliary parts. For next month's issue I plan on going through many of the Standard Query Operators that can be used with LINQ to objects/entities. Also, if you are planning on attending DevConnections in Orlando in the Spring (this April), I will be presenting 2 different 1:15 minute sessions on the Entity Framework there as well.

    As always, if you want to review my history of articles, please visit my articles history page where you can find them all listed.

    2008-02-MSDN

  • Thankful for the MVP Award

    This Holiday season I received a nice gift from the Microsoft MVP award program as I was renewed as a Microsoft C# MVP again for 2008. My program lead, Rafael, notified me yesterday that I was renewed. The MVP award is great for many reasons and I am proud to be a part of the community.

    Congratulations to all of those who were renewed and to those who were newly awarded the MVP this time around!

    mvp
    Posted Jan 02 2008, 09:58 PM by John Papa with no comments
    Filed under:
More Posts