开发者

Entity Framework Find By Example?

Coming from a Java background with ORM's it seems that all of them always had a FindByExample (KODO, Hibernate, etc). I have been surprised that I haven't been able to find the same in EF. I am using the code first method. Am I just mi开发者_如何学Gossing something?

Thanks

Jeff


You can't do this natively with EF. At best you would have to inspect an existing object and construct a query based on each property.

NHibernate on the other hand does have this capability (just like it's Java cousin).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜