Which ORM is the best when using Stored Procedures

前端 未结 8 1675
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-05 12:33

I have Business objects (DEVELOPERS WRITE) and some SPROCS (DBA WRITE)

Can anyone recommend a good object mapper to deal with this kind of setup.

I tried co

相关标签:
8条回答
  • 2020-12-05 13:09

    Depending on the database Entity Framework, or NHibernate are likely your best options (examples in links).

    0 讨论(0)
  • 2020-12-05 13:10

    SubSonic has excellent support for sprocs. It will wrap each one in a helper method and you can retrieve strongly-typed collections or entities from the results if you want. I show a way to do that in this blog post. As long as your sproc returns the same schema as SELECT * FROM TableName would, it will work with your SubSonic entities.

    As far as generating classes based on your db, SubSonic generates partial classes so you can extend them as needed. You could also do mappings from the SubSonic generated classes to your actual model.

    0 讨论(0)
提交回复
热议问题