CodeSmith Community
Your Code. Your Way. Faster!

Browse Site by Tags

Showing related tags and posts accross the entire site.
  • 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
  • DateTime constructor compile error when using default value

    Hello, we have a database with the DateTime field set to 2 minutes. When NetTiers runs, it generates the following code: public System.DateTime? PurgeMessageTimeout = new DateTime("1/1/1900 12:02:00 AM"); This causes a compiler error since there is no such constructor for DateTime that accepts the string...
    Posted to .netTiers - Bug Reports (Forum) by ltur on 01-03-2007
    Filed under: .netTiers, DateTime, Nettiers, compile
  • Re: YAVQ (Yet another validation question)

    Mark, You will need to use delegates to define your own validation rules. Have you taken a look at the documentation on the wiki? http://wiki.nettiers.com/entitylayer It includes information on using the validation rules engine. You can use custom delegates to make your validation as complex as necessary...
    Posted to .netTiers - General Support (Forum) by bgjohnso on 10-31-2006
    Filed under: .netTiers, DateTime, Validation
  • YAVQ (Yet another validation question)

    We are having two pretty specific problems with validation rules that hopefully someone can provide quick advice on. I browsed several of the other validation topics, but didn't see an answer (or what I thought was an answer). The first problem has to do with DateTimes. When I use a snippet like this...
    Posted to .netTiers - General Support (Forum) by markstafford on 10-31-2006
    Filed under: .netTiers, DateTime, Rules, Validation
  • Re: DateTime value/ref type

    You can't use the as keyword with a value type. It can only be used with Reference types. So you can either cast it, (DateTime) e.InputParameters["TheField"]; or if the value could be nullable, you can use the DateTime.TryParse() method.
    Posted to .netTiers - General Support (Forum) by Robert Hinojosa on 10-09-2006
    Filed under: DateTime, ValueType
Page 1 of 1 (5 items)
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems