CodeSmith Community
Your Code. Your Way. Faster!

TList not exist in the class or namespace

Latest post 04-10-2007 1:03 PM by adnankhan. 15 replies.
  • 11-02-2006 4:02 AM

    • dongshan
    • Not Ranked
    • Joined on 11-02-2006
    • Posts 8
    • Points 245

    TList not exist in the class or namespace

    When i debug ,there are error msg like this:
    name "TList" does not exist in the class or namespace

    there is my code:
    -----------------------------------------------------------
    TList<Employees> employees = DataRepository.EmployeesProvider.GetAll();
    employees.Sort(EmployeeColumns.LastName, ListSortDirection.Ascending);
    foreach(Employees employee in employees)
    {
        Console.WriteLine("{1} {0}", employee.FirstName, employee.LastName);
    }
    -----------------------------------------------------------
     i have no idea,anybody can tell me where i wrong? 

    Filed under:
    • Post Points: 65
  • 11-02-2006 4:26 AM In reply to

    • swin
    • Top 10 Contributor
    • Joined on 06-14-2006
    • London, UK
    • Posts 924
    • Points 34,750

    Re: TList not exist in the class or namespace

    Seems a strange runtime message to me - surely a compile time error would have occured if it couldn't find it - maybe you have corrupt dll references?. 

    TList should be in the same entities (or what ever you called it) namespace as your Employees so it should be able to find it.

    I think your code looks ok, have you tried re-doing your whole gen process again i.e close VS, regen code, restart VS, build and run.

    HTH

    swin

    ------------------------------------------------- Member of the .NetTiers team -------------------------------------------------
    • Post Points: 35
  • 11-03-2006 1:55 AM In reply to

    • dongshan
    • Not Ranked
    • Joined on 11-02-2006
    • Posts 8
    • Points 245

    Re: TList not exist in the class or namespace

     

    The pic from this article
    http://wiki.nettiers.com/gettingstarted2

    But i havn't find the attributes of GenericListFormat and GenericViewFormat in the NetTiers.cst

    My tools :
    NetTiers beta 2.msi
    CodeSmith 3.1.6
    VS 2003
    .NET Framework 1.1
     

    • Post Points: 35
  • 11-03-2006 2:17 AM In reply to

    • swin
    • Top 10 Contributor
    • Joined on 06-14-2006
    • London, UK
    • Posts 924
    • Points 34,750

    Re: TList not exist in the class or namespace

    I see your problem.  TList and the like are .NET 2 features and you're only using 1.1.

    If you can only use .NET 1.1 you need to make sure you have the correct templates - see the nightly download page - its the 2nd download option.  Otherwise you need to install .NET 2.0 and VS 2005.

    HTH

    swin

    dongshan:

     

    The pic from this article
    http://wiki.nettiers.com/gettingstarted2

    But i havn't find the attributes of GenericListFormat and GenericViewFormat in the NetTiers.cst

    My tools :
    NetTiers beta 2.msi
    CodeSmith 3.1.6
    VS 2003
    .NET Framework 1.1
     

    ------------------------------------------------- Member of the .NetTiers team -------------------------------------------------
    • Post Points: 35
  • 11-03-2006 3:15 AM In reply to

    • dongshan
    • Not Ranked
    • Joined on 11-02-2006
    • Posts 8
    • Points 245

    Re: TList not exist in the class or namespace

    I just download nettiers-fx1.1-20061102.zip in the nightly download page

    When i use the template (nettiers.cst) by CodeSmith explorer,a compile error are throw :

    D:\nettiers-fx1.1-20061102\Source\Source\NetTiers.cst(13,0): error CODESMITH0010: File specified "D:\nettiers-fx1.1-20061102\Source\Source\CommonSqlCode.cs" for Src attribute does not exist.

     and no attribute show in the left.

     

    • Post Points: 35
  • 11-03-2006 3:24 AM In reply to

    • swin
    • Top 10 Contributor
    • Joined on 06-14-2006
    • London, UK
    • Posts 924
    • Points 34,750

    Re: TList not exist in the class or namespace

    Sorry I don't thnik I can help any further as I haven't used 1.1 with NT.

    Did you start again with a new proeprty set?

    swin

    ------------------------------------------------- Member of the .NetTiers team -------------------------------------------------
    • Post Points: 35
  • 11-03-2006 3:51 AM In reply to

    • dongshan
    • Not Ranked
    • Joined on 11-02-2006
    • Posts 8
    • Points 245

    Re: TList not exist in the class or namespace

    yes,and whether or no,thanks,swin :-)

    • Post Points: 35
  • 11-03-2006 8:44 AM In reply to

    Re: TList not exist in the class or namespace

    Did you download the entire folder into a new directory?  It should resolve that path.  In 1.1, CommonSqlCode and NetTIers.cst are in the same folder.

    On 11/3/06, dongshan <bounce-dongshan@codesmithsupport.com> wrote:

    yes,and whether or no,thanks,swin :-)






    Robert Hinojosa
    -------------------------------------
    Member of the Codesmith Tools, .netTiers, teams
    http://www.nettiers.com
    -------------------------------------
    • Post Points: 35
  • 11-05-2006 8:29 PM In reply to

    • dongshan
    • Not Ranked
    • Joined on 11-02-2006
    • Posts 8
    • Points 245

    Re: TList not exist in the class or namespace

    robert,i don't know what your means that "download the entire folder into a new directory",i just use codesmith and nettiers ,so if you can explain to me,it's so good Big Smile
    • Post Points: 35
  • 11-06-2006 11:17 AM In reply to

    Re: TList not exist in the class or namespace

    Meaning, did you try to overwrite the orignal templates 2.0 templates that you had with the 1.1 version.  Or did you unzip the 1.1 templates into a completely seperate directory?  What version of CodeSmith are you using so I can try and re-create the problem.

    You should not see this error.
    D:\nettiers-fx1.1-20061102\Source\Source

    \NetTiers.cst(13,0): error CODESMITH0010: File specified "D:\nettiers-fx1.1-20061102\Source\Source\CommonSqlCode.cs" for Src attribute does not exist.


    On 11/5/06, dongshan <bounce-dongshan@codesmithsupport.com> wrote:
    robert,i don't know what your means that "download the entire folder into a new directory",i just use codesmith and nettiers ,so if you can explain to me,it's so good Big Smile





    Robert Hinojosa
    -------------------------------------
    Member of the Codesmith Tools, .netTiers, teams
    http://www.nettiers.com
    -------------------------------------
    • Post Points: 35
  • 11-08-2006 3:54 AM In reply to

    • dongshan
    • Not Ranked
    • Joined on 11-02-2006
    • Posts 8
    • Points 245

    Re: TList not exist in the class or namespace

    The 1.1 templates is unziped into seperate directory,and i did not find CommonSqlCode.cs in nettiers-fx1.1-20061102.

    and today,i download nettiers-fx1.1-20061107.zip,  but build failed ,and my CodeSmith is v3.1.6

    please help

    the codesmith compiler ouput :

    ---------------- Compile started -----------------

    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs(329,4): warning CS0618: “CodeSmith.Engine.CodeTemplatePropertyAttribute”is

    obsolete:“The CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(123,3): warning CS0618: “CodeSmith.Engine.CodeTemplatePropertyAttribute”is obsolete:“The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(172,3): warning CS0618: “CodeSmith.Engine.CodeTemplatePropertyAttribute”is obsolete:“The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(224,3): warning CS0618: “CodeSmith.Engine.CodeTemplatePropertyAttribute”is obsolete:“The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(242,3): warning CS0618: “CodeSmith.Engine.CodeTemplatePropertyAttribute”is obsolete:“The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(260,3): warning CS0618: “CodeSmith.Engine.CodeTemplatePropertyAttribute”is obsolete:“The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(279,3): warning CS0618: “CodeSmith.Engine.CodeTemplatePropertyAttribute”is obsolete:“The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(297,3): warning CS0618: “CodeSmith.Engine.CodeTemplatePropertyAttribute”is obsolete:“The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(314,3): warning CS0618: “CodeSmith.Engine.CodeTemplatePropertyAttribute”is obsolete:“The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(335,3): warning CS0618: “CodeSmith.Engine.CodeTemplatePropertyAttribute”is obsolete:“The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(502,21): warning CS0618: “_CodeSmith.NetTiers_cst.VSNetIntegration”is obsolete:“Separated project

    is automatically used.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(503,17): warning CS0618: “_CodeSmith.NetTiers_cst.VSNetVersion”is obsolete:“Visual studio 2005 is

    the only solution type for .net2 framework.”
    c:\Documents and Settings\All Users\Application Data\CodeSmith\v3.0\Template Cache\NetTiers_cst.cs(4978,44): warning CS0108: The keyword new is

    required on '_CodeSmith.NetTiers_cst.CustomNonMatchingReturnType' because it hides inherited member

    'MoM.Templates.CommonSqlCode.CustomNonMatchingReturnType'
    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs(977,20): warning CS1572: XML comment on

    'MoM.Templates.CommonSqlCode.GetKeyIfNullable(SchemaExplorer.ColumnSchema, string)' has a param tag for 'indent', but there is no parameter by that

    name
    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs(979,20): warning CS1572: XML comment on

    'MoM.Templates.CommonSqlCode.GetDataObjectFieldCallParams(SchemaExplorer.ColumnSchema)' has cref attribute

    'System.ComponentModel.DataObjectField' that could not be found
    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs(2235,27): warning CS1574: XML comment on

    'MoM.Templates.CommonSqlCode.GetDataObjectFieldCallParams(SchemaExplorer.ColumnSchema)' has cref attribute

    'System.ComponentModel.DataObjectField' that could not be found
    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs(2244,51): warning CS1574: XML comment on

    'MoM.Templates.CommonSqlCode.GetDataObjectFieldCallParams(SchemaExplorer.ColumnSchema)' has cref attribute

    'System.ComponentModel.DataObjectField' that could not be found
    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs(2381,17): warning CS1573: Parameter 'forceReturnDefault' has no matching

    param tag in XML comment (but other parameters do)
    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs(2535,10): error CS0117: 'string' does not contain a definition for 'Contains'
    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs(2607,36): error CS0019: Operator '!=' cannot be applied to operands of type

    'System.Guid' and '<null>'
    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs(2611,12): error CS0117: 'System.Data.DbType' does not contain a definition for

    'Xml'
    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs(3322,4): warning CS0168: The variable 'exc' is declared but never used
    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs(3365,4): warning CS0168: The variable 'exc' is declared but never used
    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs(3632,5): warning CS0168: The variable 'exc' is declared but never used
    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs(3656,4): warning CS0168: The variable 'exc' is declared but never used
    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs(3678,4): warning CS0168: The variable 'exc' is declared but never used
    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs(4302,9): warning CS0219: The variable 'isCovered' is assigned but its value is

    never used
    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs(329,4): warning CS0618: “CodeSmith.Engine.CodeTemplatePropertyAttribute”is

    obsolete:“The CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead.”
    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs(329,25): warning CS0618: “CodeSmith.Engine.CodeTemplatePropertyOption”is

    obsolete:“The CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(889,3): warning CS0618: “_CodeSmith.NetTiers_cst.UsePartialClass”is obsolete:“Partial class are now

    automatically where targetting .net2 framework.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(2830,74): warning CS0618: “_CodeSmith.NetTiers_cst.UsePartialClass”is obsolete:“Partial class are

    now automatically where targetting .net2 framework.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(2850,77): warning CS0618: “_CodeSmith.NetTiers_cst.UsePartialClass”is obsolete:“Partial class are

    now automatically where targetting .net2 framework.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(2877,81): warning CS0618: “_CodeSmith.NetTiers_cst.UsePartialClass”is obsolete:“Partial class are

    now automatically where targetting .net2 framework.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(2896,84): warning CS0618: “_CodeSmith.NetTiers_cst.UsePartialClass”is obsolete:“Partial class are

    now automatically where targetting .net2 framework.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(3512,3): warning CS0618: “System.Xml.Xsl.XslTransform.Transform

    (System.Xml.XPath.IXPathNavigable, System.Xml.Xsl.XsltArgumentList, System.Xml.XmlWriter)”is obsolete:“You should pass XmlResolver to Transform()

    method”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(3938,5): warning CS0162: Unreachable code detected
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(123,3): warning CS0618: “CodeSmith.Engine.CodeTemplatePropertyAttribute”is obsolete:“The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(123,24): warning CS0618: “CodeSmith.Engine.CodeTemplatePropertyOption”is obsolete:“The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(172,3): warning CS0618: “CodeSmith.Engine.CodeTemplatePropertyAttribute”is obsolete:“The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(172,24): warning CS0618: “CodeSmith.Engine.CodeTemplatePropertyOption”is obsolete:“The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(224,3): warning CS0618: “CodeSmith.Engine.CodeTemplatePropertyAttribute”is obsolete:“The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(224,24): warning CS0618: “CodeSmith.Engine.CodeTemplatePropertyOption”is obsolete:“The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(242,3): warning CS0618: “CodeSmith.Engine.CodeTemplatePropertyAttribute”is obsolete:“The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(242,24): warning CS0618: “CodeSmith.Engine.CodeTemplatePropertyOption”is obsolete:“The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(260,3): warning CS0618: “CodeSmith.Engine.CodeTemplatePropertyAttribute”is obsolete:“The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(260,24): warning CS0618: “CodeSmith.Engine.CodeTemplatePropertyOption”is obsolete:“The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(279,3): warning CS0618: “CodeSmith.Engine.CodeTemplatePropertyAttribute”is obsolete:“The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(279,24): warning CS0618: “CodeSmith.Engine.CodeTemplatePropertyOption”is obsolete:“The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(297,3): warning CS0618: “CodeSmith.Engine.CodeTemplatePropertyAttribute”is obsolete:“The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(297,24): warning CS0618: “CodeSmith.Engine.CodeTemplatePropertyOption”is obsolete:“The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(314,3): warning CS0618: “CodeSmith.Engine.CodeTemplatePropertyAttribute”is obsolete:“The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(314,24): warning CS0618: “CodeSmith.Engine.CodeTemplatePropertyOption”is obsolete:“The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(335,3): warning CS0618: “CodeSmith.Engine.CodeTemplatePropertyAttribute”is obsolete:“The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead.”
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(335,24): warning CS0618: “CodeSmith.Engine.CodeTemplatePropertyOption”is obsolete:“The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead.”

    Build complete -- 3 errors, 51 warnings

    ---------------------- Done ----------------------

    Build failed

    • Post Points: 35
  • 11-21-2006 1:01 AM In reply to

    • dongshan
    • Not Ranked
    • Joined on 11-02-2006
    • Posts 8
    • Points 245

    Re: TList not exist in the class or namespace

     Sad
    • Post Points: 5
  • 11-21-2006 8:59 AM In reply to

    Re: TList not exist in the class or namespace

    From this error message, this is still using the .netTiers 2.0 templates.  The error, that it can't find the XML DbType is a .Net 2.0 new DbType, which is only found in the 2.0 templates.  I downloaded the latest copy of the 1.1 templates and verified that it is indeed the 1.1 templates and there is no /TemplateLib directory.

    'System.Guid' and '<null>'
    d:\nettiers-fx1.1-20061107\Source\Source

    \TemplateLib\CommonSqlCode.cs(2611,12): error CS0117: 'System.Data.DbType' does not contain a definition for


    www.nettiers.com/nightly.aspx

    Go to the second box:
    NIGHTLY BUILDS :: .netTiers for .net 1.1 framework

    Download into a fresh directory, and that should compile just fine.  I verified all of these steps along the way.



    On 11/8/06, dongshan <bounce-dongshan@codesmithsupport.com> wrote:

    The 1.1 templates is unziped into seperate directory,and i did not find CommonSqlCode.cs in nettiers-fx1.1-20061102.

    and today,i download nettiers-fx1.1-20061107.zip,  but build failed ,and my CodeSmith is v3.1.6

    please help

    the codesmith compiler ouput :

    ---------------- Compile started -----------------

    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs(329,4): warning CS0618: "CodeSmith.Engine.CodeTemplatePropertyAttribute"is

    obsolete:"The CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(123,3): warning CS0618: "CodeSmith.Engine.CodeTemplatePropertyAttribute"is obsolete:"The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(172,3): warning CS0618: "CodeSmith.Engine.CodeTemplatePropertyAttribute"is obsolete:"The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(224,3): warning CS0618: "CodeSmith.Engine.CodeTemplatePropertyAttribute"is obsolete:"The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(242,3): warning CS0618: "CodeSmith.Engine.CodeTemplatePropertyAttribute"is obsolete:"The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(260,3): warning CS0618: "CodeSmith.Engine.CodeTemplatePropertyAttribute"is obsolete:"The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(279,3): warning CS0618: "CodeSmith.Engine.CodeTemplatePropertyAttribute"is obsolete:"The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(297,3): warning CS0618: "CodeSmith.Engine.CodeTemplatePropertyAttribute"is obsolete:"The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(314,3): warning CS0618: "CodeSmith.Engine.CodeTemplatePropertyAttribute"is obsolete:"The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(335,3): warning CS0618: "CodeSmith.Engine.CodeTemplatePropertyAttribute"is obsolete:"The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(502,21): warning CS0618: "_CodeSmith.NetTiers_cst.VSNetIntegration"is obsolete:"Separated project

    is automatically used."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(503,17): warning CS0618: "_CodeSmith.NetTiers_cst.VSNetVersion"is obsolete:"Visual studio 2005 is

    the only solution type for .net2 framework."
    c:\Documents and Settings\All Users\Application Data\CodeSmith\v3.0\Template Cache\NetTiers_cst.cs(4978,44): warning CS0108: The keyword new is

    required on '_CodeSmith.NetTiers_cst.CustomNonMatchingReturnType' because it hides inherited member

    'MoM.Templates.CommonSqlCode.CustomNonMatchingReturnType'
    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs(977,20): warning CS1572: XML comment on

    'MoM.Templates.CommonSqlCode.GetKeyIfNullable (SchemaExplorer.ColumnSchema, string)' has a param tag for 'indent', but there is no parameter by that

    name
    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs(979,20): warning CS1572: XML comment on

    'MoM.Templates.CommonSqlCode.GetDataObjectFieldCallParams(SchemaExplorer.ColumnSchema)' has cref attribute

    'System.ComponentModel.DataObjectField' that could not be found
    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs (2235,27): warning CS1574: XML comment on

    'MoM.Templates.CommonSqlCode.GetDataObjectFieldCallParams(SchemaExplorer.ColumnSchema)' has cref attribute

    'System.ComponentModel.DataObjectField' that could not be found
    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs(2244,51): warning CS1574: XML comment on

    'MoM.Templates.CommonSqlCode.GetDataObjectFieldCallParams(SchemaExplorer.ColumnSchema)' has cref attribute

    'System.ComponentModel.DataObjectField' that could not be found
    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs(2381,17): warning CS1573: Parameter 'forceReturnDefault' has no matching

    param tag in XML comment (but other parameters do)
    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs(2535,10): error CS0117: 'string' does not contain a definition for 'Contains'
    d:\nettiers- fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs(2607,36): error CS0019: Operator '!=' cannot be applied to operands of type

    'System.Guid' and '<null>'
    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs (2611,12): error CS0117: 'System.Data.DbType' does not contain a definition for

    'Xml'
    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs(3322,4): warning CS0168: The variable 'exc' is declared but never used
    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs(3365,4): warning CS0168: The variable 'exc' is declared but never used
    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs(3632,5): warning CS0168: The variable 'exc' is declared but never used
    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs(3656,4): warning CS0168: The variable 'exc' is declared but never used
    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs(3678,4): warning CS0168: The variable 'exc' is declared but never used
    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs(4302,9): warning CS0219: The variable 'isCovered' is assigned but its value is

    never used
    d:\nettiers-fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs (329,4): warning CS0618: "CodeSmith.Engine.CodeTemplatePropertyAttribute"is

    obsolete:"The CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead."
    d:\nettiers- fx1.1-20061107\Source\Source\TemplateLib\CommonSqlCode.cs(329,25): warning CS0618: "CodeSmith.Engine.CodeTemplatePropertyOption"is

    obsolete:"The CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(889,3): warning CS0618: "_CodeSmith.NetTiers_cst.UsePartialClass"is obsolete:"Partial class are now

    automatically where targetting .net2 framework."
    D:\nettiers- fx1.1-20061107\Source\Source\NetTiers.cst(2830,74): warning CS0618: "_CodeSmith.NetTiers_cst.UsePartialClass"is obsolete:"Partial class are

    now automatically where targetting .net2 framework."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst (2850,77): warning CS0618: "_CodeSmith.NetTiers_cst.UsePartialClass"is obsolete:"Partial class are

    now automatically where targetting .net2 framework."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(2877,81): warning CS0618: "_CodeSmith.NetTiers_cst.UsePartialClass"is obsolete:"Partial class are

    now automatically where targetting .net2 framework."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(2896,84): warning CS0618: "_CodeSmith.NetTiers_cst.UsePartialClass"is obsolete:"Partial class are

    now automatically where targetting .net2 framework."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(3512,3): warning CS0618: "System.Xml.Xsl.XslTransform.Transform

    (System.Xml.XPath.IXPathNavigable, System.Xml.Xsl.XsltArgumentList , System.Xml.XmlWriter)"is obsolete:"You should pass XmlResolver to Transform()

    method"
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(3938,5): warning CS0162: Unreachable code detected
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst (123,3): warning CS0618: "CodeSmith.Engine.CodeTemplatePropertyAttribute"is obsolete:"The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead."
    D:\nettiers- fx1.1-20061107\Source\Source\NetTiers.cst(123,24): warning CS0618: "CodeSmith.Engine.CodeTemplatePropertyOption"is obsolete:"The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(172,3): warning CS0618: "CodeSmith.Engine.CodeTemplatePropertyAttribute"is obsolete:"The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(172,24): warning CS0618: "CodeSmith.Engine.CodeTemplatePropertyOption"is obsolete:"The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(224,3): warning CS0618: "CodeSmith.Engine.CodeTemplatePropertyAttribute"is obsolete:"The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(224,24): warning CS0618: "CodeSmith.Engine.CodeTemplatePropertyOption"is obsolete:"The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(242,3): warning CS0618: "CodeSmith.Engine.CodeTemplatePropertyAttribute"is obsolete:"The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(242,24): warning CS0618: "CodeSmith.Engine.CodeTemplatePropertyOption"is obsolete:"The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(260,3): warning CS0618: "CodeSmith.Engine.CodeTemplatePropertyAttribute"is obsolete:"The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(260,24): warning CS0618: "CodeSmith.Engine.CodeTemplatePropertyOption"is obsolete:"The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(279,3): warning CS0618: "CodeSmith.Engine.CodeTemplatePropertyAttribute"is obsolete:"The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(279,24): warning CS0618: "CodeSmith.Engine.CodeTemplatePropertyOption"is obsolete:"The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(297,3): warning CS0618: "CodeSmith.Engine.CodeTemplatePropertyAttribute"is obsolete:"The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(297,24): warning CS0618: "CodeSmith.Engine.CodeTemplatePropertyOption"is obsolete:"The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(314,3): warning CS0618: "CodeSmith.Engine.CodeTemplatePropertyAttribute"is obsolete:"The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(314,24): warning CS0618: "CodeSmith.Engine.CodeTemplatePropertyOption"is obsolete:"The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(335,3): warning CS0618: "CodeSmith.Engine.CodeTemplatePropertyAttribute"is obsolete:"The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead."
    D:\nettiers-fx1.1-20061107\Source\Source\NetTiers.cst(335,24): warning CS0618: "CodeSmith.Engine.CodeTemplatePropertyOption"is obsolete:"The

    CodeTemplatePropertyAttribute has been deprecated, use the OptionalAttribute and the NotCheckedAttribute instead."

    Build complete -- 3 errors, 51 warnings

    ---------------------- Done ----------------------

    Build failed






    Robert Hinojosa
    -------------------------------------
    Member of the Codesmith Tools, .netTiers, teams
    http://www.nettiers.com
    -------------------------------------
    • Post Points: 5
  • 04-09-2007 5:05 PM In reply to

    • adnankhan
    • Not Ranked
    • Joined on 04-09-2007
    • Posts 7
    • Points 125

    Re: TList not exist in the class or namespace

    Can anyone give me vb version of this. Thanks,

    TList<Employees> employees = DataRepository.EmployeesProvider.GetAll();
    employees.Sort(EmployeeColumns.LastName, ListSortDirection.Ascending);
    foreach(Employees employee in employees)
    {
        Console.WriteLine("{1} {0}", employee.FirstName, employee.LastName);
    }

     ak

    • Post Points: 35
  • 04-10-2007 2:47 AM In reply to

    Re: TList not exist in the class or namespace

    Hi

    Something like:

    Dim employees As TList(Of Employees) = DataRepository.EmployeesProvider.GetAll()

    employees.Sort(EmployeeColumns.LastName, ListSortDirection.Ascending)

    For Each employee As Employees in employees

    Console.WriteLine("{1} {0}", employee.FirstName, employee.LastName)

    Next

     

    Hope that helps

    Martin

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