开发者

Generate Complex SQL with any ORM

Following on from another question I have just asked...

As much as I love LINQ and other ORM's for speed of development, I am finding that it is actually quiet difficult/impossible/slower (in terms of development speed) to generate complex SQL.

By complex, I mean m开发者_运维问答ore advanced SQL such as CTE's, Merge statements, query hints etc...

Can this be done by any existing ORM product? (I have exclusively used MS-L2S)

I am finding more and more than I am resorting to writing the SPROC and calling it through LINQ... Seems to be the best of both worlds at the moment... :/


NHibernate allows you to write native SQL code. I'm sure that this feature should only be used when you really want some complex stuff that the ORM isn't able to handle properly.

Doesn't EF have a similar feature ?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜