nHibernate versus LLBLGen Pro

前端 未结 8 1941
轮回少年
轮回少年 2020-12-29 21:48

I am trying to work out with ORM tool to move over to and have narrowed it down to two candidates.

nHibernate or LLBLGen Pro

<
8条回答
  •  梦谈多话
    2020-12-29 22:44

    The major difference is that LLBLGen is a code generator, while NHibernate is a "true" ORM library.

    LLBLGen advantages:

    • Easy to use model designer. Can import your existing database schema
    • Fully typed object model and query language

    LLBLGen disadvantages:

    • You need the designer application to change your model
    • Not free
    • Can bloat your code because a lot of code is generated

    NHibernate advantages:

    • No designer application needed. Only code
    • Widely used (based on the most popular Java ORM, Hibernate)
    • Very powerful for mapping any data model you can imagine
    • Open source

    NHibernate disadvantages:

    • Hard to learn
    • Not as strongly typed as one would like (especially queries)

    Of course, this is just my personal point of view...

提交回复
热议问题