Info class from a stored proc

Last post 10-22-2005 12:00 AM by codegalaxy. 6 replies.

Sort Posts:

  • Info class from a stored proc

    10-20-2005, 11:43 PM
    • Contributor
      6,910 point Contributor
    • codegalaxy
    • Member since 06-29-2004, 1:00 PM
    • Topeka (Alma), Kansas
    • Posts 1,475
    I am using a stored proc as the inof source and wondered if anyone had a CodeSmith template to create an info class from a stored proc or a view - all the ones i have only do tables

    TIA
    Dylan Barber
    read my stupid blog http://codemypantsoff.com
    Pants Optional!
  • Re: Info class from a stored proc

    10-21-2005, 5:32 AM
    • Contributor
      5,389 point Contributor
    • IndianGuru
    • Member since 02-22-2004, 3:25 AM
    • India
    • Posts 1,091
     codegalaxy wrote:
    I am using a stored proc as the inof source and wondered if anyone had a CodeSmith template to create an info class from a stored proc or a view - all the ones i have only do tables

    TIA
    I guess, it is as such pretty easy to make the info class.

    However check http://dnnjungle.vmasanas.net. May be he has the template Yes [Y]
  • Re: Info class from a stored proc

    10-21-2005, 9:21 AM
    • Contributor
      6,910 point Contributor
    • codegalaxy
    • Member since 06-29-2004, 1:00 PM
    • Topeka (Alma), Kansas
    • Posts 1,475
    Nope his doesnt have a template to make one from a stored proc and I dont think its actually possible the way CodeSmith works - oh well I guess I'll stop being lazy and actually type it all out.
    Dylan Barber
    read my stupid blog http://codemypantsoff.com
    Pants Optional!
  • Re: Info class from a stored proc

    10-21-2005, 9:38 AM
    • Contributor
      5,265 point Contributor
    • RLyda
    • Member since 03-30-2004, 6:21 PM
    • Charleston, SC
    • Posts 1,053

    Does the SP return data from a particular table(s)?  If so, then you might be able to get a jumpstart by pointing your template engine at those...  You may still need to clean up any joins and names, but it may save you a lot of typing for the rest.

  • Re: Info class from a stored proc

    10-21-2005, 9:56 AM
    • Contributor
      6,910 point Contributor
    • codegalaxy
    • Member since 06-29-2004, 1:00 PM
    • Topeka (Alma), Kansas
    • Posts 1,475
    Yeah thats what I ended up doing
    Dylan Barber
    read my stupid blog http://codemypantsoff.com
    Pants Optional!
  • Re: Info class from a stored proc

    10-21-2005, 6:37 PM
    • Contributor
      5,389 point Contributor
    • IndianGuru
    • Member since 02-22-2004, 3:25 AM
    • India
    • Posts 1,091
     codegalaxy wrote:
    Yeah thats what I ended up doing

    Can we have a look at the Template that you have created ? Stick out tongue [:P]
  • Re: Info class from a stored proc

    10-22-2005, 12:00 AM
    • Contributor
      6,910 point Contributor
    • codegalaxy
    • Member since 06-29-2004, 1:00 PM
    • Topeka (Alma), Kansas
    • Posts 1,475
    Nothing new just used existing templates and used bits a pieces after generating the different tables out - I am really just being lazy but its another template that might be nice to make if it could be (info class from stored proc results or view)
    Dylan Barber
    read my stupid blog http://codemypantsoff.com
    Pants Optional!
Page 1 of 1 (7 items)