What are the disadvantages of Typed DataSets

前端 未结 7 767
一个人的身影
一个人的身影 2021-02-02 14:08

I come from a world that favors building your own rather than rely on libraries and frameworks built by others. After escaping this world I have found the joy, and ease, of usin

7条回答
  •  旧巷少年郎
    2021-02-02 14:54

    I only gave Typed Datasets a very short try. I stopped when I found my code breaking about 2/3 of the way down a 1,000+ line file of generated code.

    The other thing I didn't like was I thought I'd get to write code like Customer.Name, but by default I seemed to get code like CustomerDataSet.Customers[0].Name, where Customers[0] was of type CustomersRow. Still nicer to read than untyped datasets, but not really the semantics I was looking for.

    Personally I headed off down the route of ActiveRecord/NHibernate, and haven't looked back since.

提交回复
热议问题