2010年10月25日 星期一

Schema of CEDB

Except the strange terminology on Windows CE database, I finally got another key point that why I am struggle on study CEDB document. That is:

There is no schema on CEDB database.

What a key point of CEDB feature, but I did not notice that! Cause I already used to other database engines on the world. Without this realization, it’s hard to understand the CEDB APIs.

Each record in CEDB refers to a set of data. Each data has a unique property ID and data type. CEDB allow records in same database has different properties (but I really don’t know who need this).

With this cognition, everything is clear. Why CeCreateDatabaseEx() API does not have parameter for properties, why CEDB using CeWriteRecordPropertiresEX() API to create properties, …, etc.

I think, I really waste a lot of time on study CEDB with wrong assumption… 傷心

沒有留言:

張貼留言