Is there an ORM tool for C # that can be a black box database?

I have a POCO group that I created, for which I want to create a constant level. The thing is, I really don't care how the data is stored in SQL Server, I just want it to be saved. In other words, I want to tell the ORM tool: "Here are some POCO classes, save them." and nothing needs to be done outside of this. Is there any ORM tool for C # that can do this? I'm struggling to get Fluent NHibernate to work, and Subsonic isn’t in a relationship, which makes things like “Get all comments for a single post” quite difficult. It should be able to automatically generate a database schema without having to set a set of attributes and much more.

+3
source share
5 answers

I personally use Fluent NHibernate and it does what I need for you. Almost. There is something like having to manually specify ManyToMany, but you cannot avoid it. And if you want good entities to be developed, you have to make some members private, which disables automation for these members. However, I changed my design in LOT and did not even think about how my database changed (the luxury of a new project, but ...).

Have you looked at Castle ActiveRecord? You really need real POCOs, or you can live with and attributes. Save entities? Well, I would avoid this, but it might work for you.

+2
source

DataObjects.Net, , . poco, . -, , , .

, DataObjects? , . ORM .

  • RDBMS .
  • , .Save() , .
  • SQL- - LINQ.
  • SQL, .
+6

Check out the Subsonics SimpleRepository . Create a class, create a database, give a Subsonic connection string and process the rest. Sharpness.

+1
source

If you do not care how it is stored, why SQL Server? How about couchDB http://couchdb.apache.org/docs/intro.html

0
source

Take a look at DevExpress eXpress Persistent Objects

0
source

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


All Articles