How to get access to NOT NULL/Maxlength generated properties
Posted: Mon 11 Oct 2010 10:06
Hello,
(Devart dotConnect for Oracle 6.0.10.0; Devart EntityDeveloper 3.0.10.0)
I want to validate my objects and create error-messages.
For every generated class I write my own partial methods like this:
public partial class classXX: IDataErrorInfo
{
...
partial void OnINFOChanging(string value)
{
if (string.IsNullOrEmpty(value)) ...
if (value.Length > ....)
}
This is a lot of typing, becaue most the fields have these same checks (NOT NULL and stringlength).
When entityDeveloper creates the entities he sees these values. How can I get access to these values/attributes/properties ?
[/code]
(Devart dotConnect for Oracle 6.0.10.0; Devart EntityDeveloper 3.0.10.0)
I want to validate my objects and create error-messages.
For every generated class I write my own partial methods like this:
public partial class classXX: IDataErrorInfo
{
...
partial void OnINFOChanging(string value)
{
if (string.IsNullOrEmpty(value)) ...
if (value.Length > ....)
}
This is a lot of typing, becaue most the fields have these same checks (NOT NULL and stringlength).
When entityDeveloper creates the entities he sees these values. How can I get access to these values/attributes/properties ?
[/code]