Which ORM is the best when using Stored Procedures

前端 未结 8 1677
佛祖请我去吃肉
佛祖请我去吃肉 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:07

    Subsonic has a flexible solution:

        class CustomerOrder {
            private string productName;
    
            public string ProductName {
                get { return productName; }
                set { productName = value; }
            }
            private int total;
    
            public int Total {
                get { return total; }
                set { total = value; }
            }
    
        }
    

    Then:

    List orders = Northwind.SPs.CustOrderHist("ALFKI")
            .ExecuteTypedList();
    

    Subsonic is a solid "Swiss Army knife" style ORM.

提交回复
热议问题