开发者

dotConnect mobile and fluent nhibernate in compact framework 3.5

We are using dotConnect mobile for connecting to Oracle DB.

I know that dotConnect can be used with NHibernate a开发者_高级运维nd Fluent Nhibernate ORM on the desktop but can the combination also be used with the Compact Framework (version 3.5)?


NHibernate cannot be used under the Compact Framework because the Compact Framework does not provide support for some of the fundamental classes (specifically Reflection.Emit) that NHibernate uses.

  1. NHibernate uses Reflection.Emit, which does not exist in the Compact Framework.
  2. Because of #1, NHibernate can't be compiled for the Compact Framework.
  3. Becasue of #2, we know that there are no Compact Framework compatible NHibernate assemblies.
  4. You cannot use desktop assemblies with the Compact Framework. Only assemblies compiled for the CF can be used.

So following this logic we know that anything that uses NHibernate will not work under the Compact Framework.


Seems like NHibernate doesn't support .NET Compact Framework due to usage of some Reflection classes.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜