Ruby data access approach available on IronRuby

Coming from the Ruby community and picking IronRuby for developing desktop applications, I have little interest in using .NET-based ORMs, such as Linq. I want to use the ruby ​​data access path that I love from products such as ActiveRecord, DataMapper, and Sequel.

After a long search, I ran into a brick wall, trying to get ActiveRecord to work on IronRuby for any database other than MS SQL. I would really like to use an embedded database such as SQLite, HSQLDB, H2, etc.

Has anyone gotten a Ruby-based ORM running on IronRuby with a built-in database? What was the ORM database? Can you share some tips? Should I learn ORM on Linq or .NET?

+3
source share
2 answers

I'm going to put a cover around the OR / M speed lights. I think that all this is about 3-400 lines of ruby, and this will allow you to use active styling style writers, but in the context of .NET OR / M

http://www.mindscape.co.nz/products/lightspeed/

The idea of ​​the speed of light is very close to the idea underlying the datamapper. You can use any of the System.Data namespace in IronRuby, but this will entail introducing your own mapping into your objects and translating the update / delete requests into DbCommands and managing the connections yourself.

dbi SQL-. sqlite, . , dbi- sqlite, .NET, , /IM , .

IronRuby , , - , .

+2

" " , MySQL IronRuby.

, , MySQL.Net IronRuby. . Rough Cuts, .

IronRuby Unleashed Safari Books, Rough Cuts.

0

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


All Articles