Transparent activation and activation statements about DB4O

Source: Internet
Author: User

Transparent activation and activation statements about DB4O

There is an introduction to transparent activation, which you can see here: http://www.cnblogs.com/redmoon/archive/2008/02/23/1078619.html

It is pointed out that through the transparent activation feature, db4o can help us automatically deal with the activation level problem, so that the object's properties are non-basic types can also be automatically loaded on demand.

I don't understand how it works, but I use it very frankly until I see a child with a collection property loaded is always empty, no solution to the flex wall ~

It was once suspected that db4o support for class inheritance exists bug~

It was later discovered that all levels of the declaration were activated (Db4ofactory.configure (). ObjectClass (typeof (MyClass1)). Cascadeonactivate (True), the property can be successfully obtained, and the problem is still derived from transparent activation-it's not smart enough

The property that raises the question is a List<> collection property, and the other properties are no problem with the underlying type or the custom type, so the guess might be that transparent activation has not yet been supported for the collection.

There is also a bit to note about the activation statement, such as the following activation level description:

Db4ofactory.configure (). ObjectClass (typeof (MyClass1)). Cascadeonupdate (TRUE);
Db4ofactory.configure (). ObjectClass (typeof (MyClass1)). Cascadeonactivate (TRUE);

It should be noted that the type of the highlighted part should not be an abstract class or interface, it should be a definite absolute type (that is, if you want a class and its parent class to be assigned such a declaration, you need to declare them separately, not just the parent class), otherwise it will not work.

Reprint: http://www.cnblogs.com/SkyD/archive/2010/10/03/1841729.html

Transparent activation and activation statements about DB4O

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.