Pergunta

Does the micro ORM "massive" have a way of handling inheritance?

robconery / massive

Is it hard to write a provider for Massive?

I've got a need for something very close to SQL Server. As a first step, it'd be good to just intercept the SQL generated by Massive, and then push that into my database of choice.

Possibly doing something like this would have the desired inherited effect:

    class Products:DynamicModel{...}

    class BabyProducts : Products {...}

Is it possible to link "Products" to a dynamic model via an attribute instead of through inheritance?

N.B. this project (inspired by Massive) might be a closer fit: http://www.toptensoftware.com/petapoco/

still not sure about inheritance.


On providers... MicroORMs that only extend IDbConnection such as http://code.google.com/p/dapper-dot-net/ might the best place to start. Not sure what this means in terms of Massive yet.

Foi útil?

Solução

I think I'm going to go with Dapper for now:

http://code.google.com/p/dapper-dot-net/source/browse/Tests/Tests.cs

Dapper is definitely database independent and it handles inheritance

Search for TestInheritance() in the Tests.cs above for an example.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top