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
  • Help: Entity Update Problem ?

    Hi I have the following code running AfterInsert of a DataSource control. What I'm trying to achieve is set the value MasterShow_Pk equal to a value. The code runs fine but the Data Store is not being updated with the value. protected void _x_ShowsDataSource_AfterInserted( object sender, x.Web.Data....
    Posted to .netTiers - General Support (Forum) by matt@kiwilamb.com on 05-27-2007
    Filed under: .netTiers, EntityDataSource, DataSource, Entities, Database
  • My first codesmith project

    I have a lot of tables in my database that i am converting to a codesmith asp.net app. every table has a CreatedBy and ModifiedBy column that link back to a users table however there is no relationship in the database (vb6 app that assumed that the links were there). Is there a best practice for this...
    Posted to General Support (Forum) by not the first codemonkey on 05-09-2007
    Filed under: ForeignKeys, Entities
  • Entity not saving when using AJAX toolkit tab control

    I''ve generated against a database and one of the entities has a large number of fields. I wanted to display the fields in a tab control, using the AJAX toolkit tab container and tabpanels. I had turned on the option to generate the admin site, and then took the usercontrol and placed the fields on the...
    Posted to .netTiers - General Support (Forum) by millerwa on 05-03-2007
    Filed under: EntityDataSource, .netTiers, Entities, need advice, AJAX Toolkit
  • null date issue

    All, I have a field called SynchDate in my Accounts table, which orignally was declared as not nullable. Once we started working the saves for this table, we realized that the field needed to be nullable. I tried changing the field to nullable, but the regen did not pick it up, so the declartion in the...
    Posted to .netTiers - General Support (Forum) by basolutions on 04-10-2007
    Filed under: .netTiers, nullable, datetime, Entities
  • Bind to First T<List> Entity

    Hi, This is a duplicate post but since I'm still searching for an answer I'm posting again. I apologise but I really need to find a solution to this problem. I have a list of Installations, related to an Installation is a list of Images. When listing Installations I want to select the 1st Image of the...
    Posted to .netTiers - General Support (Forum) by bevan on 03-26-2007
    Filed under: .netTiers, Custom Stored Procedure, ObjectDataSource, Cutom Stored Procedures, Entities, .net 2.0
  • Validation Code - Where does it go?

    I am seeing a lot of messages about overloading the "AddValidationRules()" method but I don't know where it goes? protected override void AddValidationRules() { base .AddValidationRules(); //Add custom validation rules } I have created a custom class based on an auto generated Entity class ( public class...
    Posted to .netTiers - General Support (Forum) by Playground on 02-21-2007
    Filed under: Entities, Entity Validation Rule Engine CommonRules, Validation, Validation ServiceLayer
  • Compile Error on Generated Code!

    I just downloaded the Trial version of Codesmith 4.0 and installed it. I opened up Codesmith and selected the .netTiers templates. I selected a good number of my tables, and set properties for Codesmith to generate a web-site, web-services, etc. Opened the solution generated in Visual Studio 2005, and...
    Posted to .netTiers - General Support (Forum) by silverfox1948 on 02-02-2007
    Filed under: .netTiers, compile, Entities
  • Default Value for Nullable<DateTime> and Nullable<Boolean>

    Hi there, Question about the default value for System. DateTime ? | System. Boolean ? variables in entities: View Entity => DateTime.MinValue | false Table entity => null | null Is this by design (if so, could you shed some light as why)? Thenx! Regards, Michael Tautz P.S.: Many, many, many kudos...
    Posted to .netTiers - General Support (Forum) by Actarus on 01-26-2007
    Filed under: DefaultValue, Entities, NullableTypes
  • Question about Validation Rules

    Hi! Suppose you have a web interface (ASP.NET) to enter information about new clients, and that one of the rules you want to implement is that two clients cannot have the same name. Where would you put the validation for this or for similar scenarios? At first, I thought I would simply write a new Validation...
    Posted to .netTiers - General Support (Forum) by velum on 01-17-2007
    Filed under: Entities, ServiceLayer, Validation
Page 1 of 2 (18 items) 1 2 Next >
Copyright © 2007 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems