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

April 2007 - Posts

  • Orcas Beta 1 - VPC Images and New Patch Available

    Last week the Orcas Beta 1 was made available for download by Microsoft. It is madeup of 8 large RAR files and can be downlaoded from here: http://msdn2.microsoft.com/en-us/vstudio/aa700831.aspx

    Some of my excitement was tempered a bit when a bug was found that caused problems with the EDM Wizard. The team was quick to respond and they have already released a patch for it, as posted on their web site:

    Late last week, after bits had been finalized, we found a bug in the ADO.NET Entity Data Model Wizard that shipped with Visual Studio “Orcas” beta 1. The problem has now been corrected.
     Please download and install the patch available at: http://www.microsoft.com/downloads/details.aspx?FamilyID=f69e9eb8-0ebd-4fba-a4cc-2050297ba75b&displaylang=en to fix the problem.

    I have been busy editing my slides for VSLive Orlando where I am doing a full day workshop on data access. Only 1.5 hours of which is focussed on Orcas ... but I still had to review all of the beta 1 tools to make sure my samples still work for May 10th's workshop. So far everything seems fine, but I am glad the patch came out so I can fully test the walk throughs, too. That is the fun of presenting beta topics (or pre-beta topics). :)

     

    Posted Apr 27 2007, 08:42 AM by John Papa with no comments
    Filed under: ,
  • Take a Peek!

    I want to offifically welcome Brian Peek as our newest colleague at CodeBetter.com. Brian is a .NET guru who brings a different flavor to our community. He has wowed me with some of the stuff he has created including the Finalizer which is a battlebot that is powered by .NET code (Brian was an integral part of a team that built and programmed it). The Finalizer made an appearance during a keynote speech at Tech Ed in 2005 (which is more than I can say).

    Brian also wrote parts of a book titled Debugging ASP.NET  and currently has a column with MSDN's Coding For Fun. Here are some of the links to his Coding For Fun articles:

    April Fools’ Day Application

    Animated Musical Holiday Light Show

    Computer-Controlled R/C Car with Camera

    Managed Library for Nintendo's Wiimote

    Scary Halloween Application

    Motion-Detecting, Blood Squirting Halloween Skull

    I hope you all enjoy Peek's posts .. which tend to include XBOX development, XNA coding, and a smattering of off the wall ideas.

  • Entity Framework: CSDL, MSL and SSDL Schemas

    Due to the lack of a designer and because I am very curious, I’ve been digging through the XML for the CSDL, MSL and a little bit into the SSDL schemas for the Entity Framework’s Entity Data Model. Even if you are waiting for the Designer to be released (date TBD) it cannot hurt to get familiar with these XML file structures. For example, the MSDL’s schema supports the following for the mapping Conditions:

     

    <!-- Type for Condition Element-->

      <xs:complexType name="TCondition">

        <xs:attribute ref="tns:Value" use="optional" />

        <xs:attribute ref="tns:Name" use="optional" />

        <xs:attribute ref="tns:ColumnName" use="optional" />

        <xs:attribute ref="tns:IsNull" use="optional" />

      </xs:complexType>

     

    Currently the conditions in mapping only allow you to compare a column to a scalar value or to check for NULL. You can create multiple conditions, which will create an AND situation. However you cannot combine the conditions with OR’s (i.e. you can’t say get all orders > $10,000 or  orders < $100).  In fact, nor can you compare values at this point (i.e. < ). These features are surely going to be in future versions, though.

     

     

     

    By having the XSD’s for the CSDL, MSL AND SSDL you can explore what options are available even if the intellisense is not working in the latest CTP J (which has happened to me at times). For example, I noticed that complex properties are in the schema, however they are not fully supported at this time. But at least this gives me a glimpse at what might be supported in the future.

     

    I open the XSD’s in Visual Studio.NET Orcas, but of course you can use other tools like XML Spy. Here is a snapshot of the TableMappingFragment’s schema from the MSL file:

     

     

     

    If you are looking for the XSD’s, you can find them in the March Orcas CTP located at this folder:

     

    C:\Program Files\Microsoft Visual Studio 9.0\Xml\Schemas

     

    And the file names are:

    -          CSDLSchema.xsd

    -          CSMSL.xsd

    -          SSDLSchema.xsd

  • Friday - Tampa - .NET University

    A few weeks go I mentioned that many of my colleagues and I from ASPSOFT will be presenting several topics in Tampa, Florida on April 6th, 2007. There are still seats left for this event (and its free). All topics are covered at a 100-level, and labs will be included with the courseware.

    This 1 day training event is titled “.NET University” and will cover:

    - Windows Communication Foundation

    - Windows Presentation Foundation

    - Windows Workflow Foundation

    - CardSpace 

    If you are interested, make sure you register for the event.


    Event Code: 115720

    4/6/2007

    9:00 AM - 5:00 PM

    Welcome Time:
    4/6/2007 8:30 AM Eastern Time

    Microsoft Corporation

    3000 Bayport Drive

    Suite 480

    Tampa, FL 33607

    USA

    driving directions

     

    General Event Information


    Featured Product/Topic: Visual Studio 2005 Professional Edition

    Recommended Audiences: Solution Architects, Software Developers, Students, Technical Decision Makers

    aspsoft.com, Microsoft and DevFish.NET are proud to present .NET University as a 1-day training course for our customers!  Join us to get an overview of the .NET Framework (.NET 3.0), including Windows Communication Foundation, Windows Presentation Foundation, Windows Workflow Foundation, and Windows CardSpace. All topics are covered at a 100-level, and labs will be included with the courseware. Upon completion, attendees will receive their official .NET University alumni T-Shirt and a Certificate of completion. Space is limited, so register early to get your seat at .NET University!

    Posted Apr 03 2007, 07:39 AM by John Papa with 2 comment(s)
    Filed under:
  • Problems Sending Mail on Dedicated Server with GoDaddy

    I set up a new dedicated server at GoDaddy.com this weekend. One of the issues I struggled with was when I set up MailEnable to run on the server I could not send mail. I could receive it just fine, but it would not go out anywhere. A friend of mine helped me track down what the issue was and it turns out that I could not connect to other sites through port 25. After digging through GoDaddy’s support pages we found a note about how GoDaddy blocks port 25 and that you have to use a Smart Host to send email through a relay server they set up. Of course this works, but it’s a bit annoying that I bought a dedicated server and they are blocking me from sending out on port 25.

     

    So if you go buy a dedicated server from GoDaddy and you intend to set up you won mail server on it, be aware that you must use the smart host to send mail. So far everything else has been fine. The server looks good, its fast as I need it, and the price was great when compared to other hosting providers.

More Posts