First to approach the bug.
Prolog: fixing bug #2057.
Added log warning with exception. Replaced copy-pasted code, which fixes #2057, with function. Disabled incorrectly working code to re-establish SQL process on unexpected failure.
Merge branch 'develop' of github.com:Starcounter/Starcounter into PrologBug
Extended weaver metadata DatabaseClass with method FindAttributeInAncestors(Func<DatabaseAttribute, bool> predicate), allowing database attributes to be found in type hierarchies based on a given predicate.
Extended the weaver analysis validation of type references to include guarding against duplicates.
Extended IDbState interface, allowing database state redirecting from the weaver, with methods Read- and WriteTypeReference.
Extended DbStateRedirect, allowing database state redirecting from the weaver, with methods Read- and WriteTypeReference, routing calls to installed target.
Added new methods Read- and WriteTypeReference to DbState, type references to be read and written.
Changed the weaver to weave new DbState-related methods Read- and WriteTypeReference when a type reference attribute accessor is being weaved.
Merge branch 'develop' into issue/2264