CodeSmith Community
Your Code. Your Way. Faster!

Xsd and Dnn modules with CodeSmith

Latest post 06-30-2008 6:10 PM by blake05. 1 replies.
  • 06-29-2008 6:25 AM

    Xsd and Dnn modules with CodeSmith

    Hi.

     I'm a recently user of CodeSmith and .netTiers and i have two questions:

     

    1. If i have an Xsd or Xml, how could i create a database using CodeSmith.

    2. There are templates for Dnn Modules in CodeSmith?

     

    Thanks.

    Filed under: , ,
    • Post Points: 35
  • 06-30-2008 6:10 PM In reply to

    • blake05
    • Top 25 Contributor
    • Joined on 04-03-2008
    • Wisconsin
    • Posts 351
    • Points 6,205

    Re: Xsd and Dnn modules with CodeSmith

    Reply |Contact |Answer

    Hello,

    I would start by taking a look at the sample xml templates that ship with CodeSmith. This will give you a rough idea how to work with xml inside of a template. There are various ways one can script a database using xml. The .netTiers set of templates uses xml to generate the stored procedures. Take a look at .netTiers\DataAccessLayer.SqlClient\StoredProceduresXml.cst, The sample should be a good starting point on how you can script a database using an xml file. After you script the database out to a sql file or stream, you can execute the script with .net code.

    Yes, there are templates available for making DotNetNuke modules using CodeSmith. You can find the templates here and a guide here.

    Thanks

    -Blake

    Blake Niemyjski

    CodeSmith Tools, LLC Support Specialist

    Blog: http://windowscoding.com/blogs/blake/

    ----------------------------------------------------------------------
     Member of the .NetTiers team | Visit http://www.nettiers.com
    ----------------------------------------------------------------------

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