Castle Project Active Record or Free NHibernate

We looked at using ORM at work.

We are currently trying to move forward and maintain free access to the active record of the castle.

We are not sure of the flexibility of each of them, since our database is not very conditional. It does not have foreign keys and identifiers on primary keys (a bit confusing, but the next value is stored in a separate table). There are also several situations where we have suffix'd table names by year. Then we select one of them depending on the year. It might be a little trickier.

I managed to sort the mapping of a foreign key using a lock, and also generate a primary key by creating a custom class.

Does anyone have any opponents in any of these frameworks and ideas on how to solve these problems.

Ps. please do not ask us to reorganize the database. This is not an option at the moment.

Thank.

+3
source share
3 answers

FluentNHibernate and ActiveRecord are completely different. The first is just a codified, legend-based mapping generator for NHibernate. The latter is an abstraction layer on top of NHibernate along with the implementation of an active recording template.

Active Record NHibernate, . , , .

FluentNHibernate , NHibernate .

, , , , , , NHibernate ( FluentNHibernate hbms, ) IBatis.NET .

ActiveRecord , , DB.

+9

, Castle ActiveRecord, EntityFramework CodeFirst. . http://salardbcodegenerator.codeplex.com/

0

. - Active Record.

ActiveRecord . , NHibernate >= 3.3.

0

Source: https://habr.com/ru/post/1732822/


All Articles