Showing related tags and posts accross the entire site.
-
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...
-
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...
-
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...
-
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...
-
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.