CodeSmith Community
Your Code. Your Way. Faster!

Browse Site by Tags

Showing related tags and posts accross the entire site.
  • 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 Community 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 Community Support (Forum) by eric_burcham on 05-01-2007
    Filed under: SchemaExplorer, .netTiers, Codesmith templates cached cleanup, generating templates, need advice
Page 1 of 1 (2 items)
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems