Just tested it with the newest maintenance release (with the last MyGeneration release) and for me it does not work as expected.
I have a table (T_Validator) in Oracle 10g
ID Number 15,0 primary key
IsValid Number 1,0 non-nullable
The generated proxy stub looks like
Code:
public System.Decimal Id
{
get
{
if (this.Entity.es.IsDeleted)
return (System.Decimal)this.Entity.
GetOriginalColumnValue(TValidatorMetadata.ColumnNames.Id);
else
return this.Entity.Id;
}
set { this.Entity.Id = value; }
}
public System.Decimal IsValid
{
get
{
if (this.IncludeColumn(TValidatorMetadata.ColumnNames.IsValid))
return this.Entity.IsValid;
else
return null;
}
set { this.Entity.IsValid= value; }
}
So the type System.Decimal was generated correctly, but the code tries to assign a null value to a non-nullable field.
Any ideas?
Greetings from Cologne
Robert
http://blog.robertsoft.de/