in

CodeSmith Community

Your Code. Your Way. Faster!

DataSets

Last post 03-14-2008 1:38 PM by a222493. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 03-13-2008 10:53 AM

    • a222493
    • Not Ranked
    • Joined on 03-13-2008
    • Posts 2
    • Points 40

    DataSets

    Hi,

    I'm brand new to CodeSmith and so far it looks great.  I've been looking through thte Template Explorer and the TypedDataSet.cst template popped out at me.  I am creating a DataSet based DAL using Visual Studio 2005.  I notice that .xsd, .vb, .xsc and .xss files are generated by VS.

    My question is how do I integrate the code generated by CodeSmith from the TypedDataSet template into my Visual Studio Project?  Will I be able to view the DataSet through Visual Studio's graphical viewer?

     

    • Post Points: 35
  • 03-14-2008 8:25 AM In reply to

    • pwelter34
    • Top 25 Contributor
    • Joined on 03-13-2003
    • Eden Prairie, MN
    • Posts 255
    • Points 680,930

    Re: DataSets

     Hi,

    The template you are referring to creates a class from a dataset xsd file.  You can use the generated class in a Visual Studio project. You can also use XSD.exe to generate an xsd from an xml file if need be.

     ~ Paul

    • Post Points: 35
  • 03-14-2008 1:38 PM In reply to

    • a222493
    • Not Ranked
    • Joined on 03-13-2008
    • Posts 2
    • Points 40

    Re: DataSets

    Thanks pwelter34 for your help, but I'm having trouble understanding your answer.

    You mention in your post that the template "creates a class from a dataset xsd file".  I created the cs class file using the "TypedDataSet.cst" CodeSmith template which referenced a table in my database.  Am I confused here?

    You also mention that I can use "xsd.exe to generate the xsd from an xml file". How do I create the XML file.  Can I use a CodeSmith template to somehow generate the XML file?  or can I derive the XML file from the class file?

    Thanks for the help!

    • Post Points: 5
Page 1 of 1 (3 items)
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems