开发者

Entity Framework Find By Example?

开发者 https://www.devze.com 2023-03-15 20:25 出处:网络
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

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

精彩评论

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