开发者

How to represent 1-to-many relationship in as3.0 data model

I'm building an AS3.0 model for reading from an sqlite database. I've successfully got it working with a simple table. Basically I have a databasemodel class with some shared fu开发者_开发知识库nctions and from it I extend classes, theoretically for each table on the database, but also for 'views' ie combinations of data on different tables when I need to mix things up. Some of the events have tags stored in a separate table, and I'm wondering about the best way to handle those.. should I include an array in the event class and work with it that way, or separate each tag/cluster of tags into their own class? The tags are predefined and will be edited basically in the same places as if just another property of the event. However many events are imported and can only be edited by changing the tags.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜