in

CodeSmith Community

Your Code. Your Way. Faster!

Browse by Tags

  • HasPrimaryKey: System.Data.SqlTypes.SqlNullValueException

    Hi there, I've got a strange problem with codemith, I'm trying to generate code from a database and when I try, I receive the following error message. System.Data.SqlTypes.SqlNullValueException: Data is Null. This method or property cannot be called on Null values. apparentently the generation fails...
    Posted to General Support (Forum) by Joel Rewers on 05-31-2007
    Filed under: SchemaExplorer, Visual Studio, SchemaProvider, primary key, Entities, generating templates
  • Differentiate between Varchar and Text

    Does anyone know of a way to differentiate between a VarChar column and a Text column? The only way to determine column type seems to be comparing [columnObject].SystemType with TypeOf(System.[TypeName]), like this... if (column.SystemType == TypeOf(System.String)) { // Do something here } This finds...
    Posted to General Support (Forum) by eric_burcham on 05-01-2007
    Filed under: SchemaExplorer, .netTiers, Codesmith templates cached cleanup, generating templates, need advice
  • Is anyone else programmatically creating then compiling templates?

    I'm going to try generating merge-strategy enabled subtemplate hierarchies based on metadata (xsd). Has anyone else attempted this? Pitfalls? Tips? I've only been using codesmith for 20 days now; so, please stop me if this is absolutely crazy. So far I'm generating and compiling a single subtemplate...
    Posted to General Support (Forum) by ript on 04-25-2007
    Filed under: mergestrategy subtemplate, generating templates, need advice, metadata
  • Generate Typed DataTable from Stored Procedure

    I am a brand new CodeSmith user. I have a stored procedure that selects rows for custom business entity. I would like to create a CodeSmith template that has the stored procedure as a parameter and generates a typed DataTable class for the entity. Is there a way that I can analyze the stored procedure...
    Posted to General Support (Forum) by rferrill on 01-02-2008
    Filed under: generating templates
  • Re: Compiler errors

    Yes - compiler.Errors {c:\Users\pas\AppData\Local\Temp\f2mkscrm.0.cs(717,2) : error CS1525: Invalid expression term '='} System.CodeDom.Compiler.CompilerError Column 2 int ErrorNumber "CS1525" string ErrorText "Invalid expression term '='" string FileName "c:...
    Posted to Community Support (Forum) by Pauls1927 on 02-04-2008
    Filed under: generating templates
Page 1 of 1 (5 items)
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems