亚音速和 DB4O

发布于 2024-08-23 17:38:37 字数 344 浏览 5 评论 0原文

我最近阅读了 Rob Conery 关于 DB4O 的文章非常有趣。我的问题实际上与 Subsonic 和 DB4O 的类生成和未来使用有关。

当 Subsonic 查看数据库然后生成类时,这对于 DB4O 来说如何工作。是否必须手动编写类,然后 DB4O 将存储类定义的对象,或者是否存在像 Subsonic 这样的类生成器可以使用的某种数据库设计过程?

Subsonic 是否会将 DB4O 作为其在未来版本中使用的数据库之一?

I was recently reading Rob Conery's post about DB4O and it was very interesting. My question is really concerned with class generation and future use of Subsonic and DB4O.

As Subsonic looks at the database and then generates classes how would this work for DB4O. Would the classes have to be written by hand and then DB4O would store the objects as defined by the class or would there be some database design procedure that a class generator like Subsonic could use?

Will Subsonic include DB4O as one of the databases it works against in future builds?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

洒一地阳光 2024-08-30 17:38:37

是否必须编写类
手动然后 DB4O 将存储
类定义的对象或
会有一些数据库设计吗
类生成器类似的过程
亚音速可以用吗?

使用 SubSonic 或 DB4O,您可以手动编写类。事实上,这是一种很正常的做事方式。一旦您手动创建了类,SubSonic 就可以生成关系数据库表。 DB4O 不需要关系数据库表,因此此时 SubSonic 没有任何价值。

Subsonic 是否会将 DB4O 纳入其中之一
它所针对的数据库
未来的构建?

这没有道理。 DB4O 是一个面向对象的数据库。不需要关系映射。 SubSonic 是一个对象关系映射工具,因此它仅与关系数据库相关。

SubSonic 在 DB4O 世界中没有用处。

Would the classes have to be written
by hand and then DB4O would store the
objects as defined by the class or
would there be some database design
procedure that a class generator like
Subsonic could use?

With either SubSonic or DB4O, you can write your classes by hand. In fact, this is a pretty normal way to do things. Once you've created your classes by hand, SubSonic can generate relational database tables. DB4O doesn't need relational database tables, so there is no value add to SubSonic at that point.

Will Subsonic include DB4O as one of
the databases it works against in
future builds?

That doesn't make sense. DB4O is an object-oriented database. There is no relational mapping needed. SubSonic is an object-relational mapping tool and therefore it's only relevant for relational databases.

SubSonic has no use in the DB4O world.

枫以 2024-08-30 17:38:37

在这个技术堆栈中,我能看到 Subsonic 的唯一地方是使用 Subsonic 来复制(而不是/除了 NHibernate)一个 db4o 数据库到一些 RDBMS。

请参阅:http://www.db4o.com/about/productinformation/drs/

使用 db4o 锁定 Subsonic 来进行 RDBMS 持久性比 Subonic 使用 db4o 更有意义code> 生成/重用类。 db4o 文件不包含完全限定的域架构。因此,db4o 域可能具有一些非持久类型,这些类型永远无法被 Subsonic 等工具发现,因为从未将该类型的对象写入到该域中。数据库。

The only place i can see for Subsonic in this technology stack would be to use Subsonic to replicate (instead of/in addition to NHibernate) a db4o database to some RDBMS.

See: http://www.db4o.com/about/productinformation/drs/

It makes more sense for db4o to latch on to Subsonic to do RDBMS persistance then it is for Subonic to use db4o to generate/re-use classes. A db4o file does not contain a fully qualified domain schema. It could thus be possible that a db4o domain has some unpersisted types that can never be discovered by a tool such as Subsonic because no object of that type has ever been written to the database.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文