SubSonic Forums
All Your Database Are Belong To Us

Switch off Default Using Statements in Template

Latest post 08-18-2008 7:18 PM by fromano2802. 2 replies.
  • 08-18-2008 4:01 PM

    Switch off Default Using Statements in Template

     Hello all,

    I wonder if there is a way to turn off the generation of the "default using statements"  when using a custom made template.

    I Know I can add more namespaces in the conifg file, but I would also like to exclude the default ones.

    Thanks,

    fromano2802

  • 08-18-2008 4:14 PM In reply to

    Re: Switch off Default Using Statements in Template

    There is no option for this in the config but here is the location in the source

    SubSonic\CodeLanguage\CSharpCodeLanguage.cs - > DefaultUsingStatements()

    If I am I because I am I, and You are You because You are You, then I am I, and you are you. But If I am I because You are You, and You are You because I am I, then I am not I and You are not You. -Rabbi of Kotzk

  • 08-18-2008 7:18 PM In reply to

    Re: Switch off Default Using Statements in Template

     Hello,

    I am aware of that, in fact I commented that part of the code to disable the using statements.

    I don't like this solution though, it would be nice if there was a way to switch on or off the default usings.

    Thank you for your reply anyway. It was worth a try.

Page 1 of 1 (3 items) | RSS