Кто-либо еще сожалеющий об использовании Платформы Объекта?

Существует прецедент для расширения интерпретации ArgumentNullException до значения «строковый аргумент нулевой или пустой»: System.Windows.Clipboard.SetText в этом случае будет вызывать ArgumentNullException.

Так что я не вижу ничего плохого в использовании этого, а не в более общем ArgumentException в вашем установщике свойств, при условии, что вы это задокументируете.

20
задан grimus 21 May 2009 в 22:18
поделиться

6 ответов

Что ж, доступна бета-версия VS2010 ; вы могли бы развернуть виртуальную машину и посмотреть, подходит ли вам EF в 4.0 больше?

Лично я пока придерживался LINQ-to-SQL, но, вероятно, потому, что мне еще не понадобились никакие другие функции .

7
ответ дан 30 November 2019 в 00:40
поделиться

Я действительно с нетерпением жду возможности использовать Entity Framework в его версии v4, надеюсь, уже скоро. Конечно, в нашем случае это сопровождается избавлением от ужасного внутреннего ORM, который больше не поддерживается, что хуже чумы - так что EF v4 выглядит для меня божественной посылкой! : -)

Марк

3
ответ дан 30 November 2019 в 00:40
поделиться

I for one have been sourly disappointed with EF v1.0. It promised a lot, but in reality it was extremely restrictive, performed horridly, and did not support existing applications and infrastructures.

That said, EF v2.0 looks very promising. Microsoft has opened the design process to the masses, allowing those of us who wish to see EF succeed and see if fit into the wide variety of usage scenarios that it really should offer our suggestions, advice, and opinions.

If you are interested in seeing the results of this effort, or want to provide your own input, you should check out the EF Design Blog, here: http://blogs.msdn.com/efdesign/

In the end, if Microsoft is still not capable of producing a flexible ORM that fits into a wide variety of scenarios, there is always NHibernate. I've been using LINQ to SQL, Entity Framework, and NHibernate for a while, and of the three, NHibernate is the most friendly, flexible, and mature framework. It does not have much in the way of visual designers, but if your frustrated by the limitations, quirks, odd behavior and bad performance of EF, NHibernate is a great alternative.

3
ответ дан 30 November 2019 в 00:40
поделиться

For a follow up:

I've given up for the time being on Entity Framework. The code rewrite has been tramatizing and I'm not at all happy with the result... largly due to the lack of lazy loading support.

I've decided to go back to Linq to SQL and try out the single table inheritance for now. We don't have very many child types, so for the time being, it should be an ugly but acceptable solution. When the new version of VS and Entity Framework are released I'll consider switching again at that point because the changes for the new version look promising.

2
ответ дан 30 November 2019 в 00:40
поделиться

I absolutely agree. Lazy loading is what killed the entity framework for me. It just opens a can of worms with attaching and detaching entities to the context instance. I really don't want to worry about these things. But then who hasn't worked with a half-assed product from Microsoft before :) I'm glad they're going to be patching things up in a new release. Until then L2S seems like your best bet.

3
ответ дан 30 November 2019 в 00:40
поделиться
Другие вопросы по тегам:

Похожие вопросы: