This question is locked. New answers and comments are not allowed.
If one column is not nullable in DB. I use Open Access ORM wizad to generate entity class. If I set the string.Empty to the column and call save method, it works without any exception. Is there a way to treat string.Empty as null for one column while update/insert?
4 Answers, 1 is accepted
0
john
Top achievements
Rank 1
answered on 19 Sep 2012, 02:21 PM
Any solution?
0
Hello john,
Petar
the Telerik team
A possible solution would be to slightly change the t4 template that is used to generate our code in order to apply a check for string empty in the property setter and not allow it.
Will that work for you?
Petar
the Telerik team
Follow @OpenAccessORM Twitter channel to be the first one to get the latest updates on new releases, tips and tricks and sneak peeks at our product labs!
0
john
Top achievements
Rank 1
answered on 20 Sep 2012, 12:11 PM
I think the feature need to be consider to integrated in OpenAccess ORM framework. It's the basic feature.
0
Hi john,
Petar
the Telerik team
We have added this feature to our backlog system and we will discuss id and possibly schedule it for implementation for one of our next release.
Please find your Telerik points updated for making this feature request.
Petar
the Telerik team
Follow @OpenAccessORM Twitter channel to be the first one to get the latest updates on new releases, tips and tricks and sneak peeks at our product labs!