google-code-export / dataobjectsdotnet

Automatically exported from code.google.com/p/dataobjectsdotnet
0 stars 0 forks source link

Validation context in inconsistent state: more detailed exception text is needed #842

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This exception may appear in two cases:

1. IDisposable returned from Validation.Disable() method wasn't disposed by 
developer before transaction commit. This must be described.

2. Developer violated .ctor declaration \ invocation rules in one of Entity 
descendants:
- Private constructors can be invoked _only_ from other consturctors. You can't 
invoke them from any other methods.
- Public, protected and internal constructors cannot invoke other public, 
protected and internal constructors declared _in the same type_. I.e. you can 
use ": this" (in C#) to invoke private constructors only. 
- ": base" can be freely used.

Original issue reported on code.google.com by alex.yakunin on 22 Oct 2010 at 10:29