随笔分类 -  Entity Framework

GetObjectbyKey in E.F. vs. Querying for a single entity
摘要:Even though I seem to have gotten it right when I wrote about this in my book (I just checked) in my own memory I have had a misconception about GetObjectbyKey. I thought that GetObjectbyKey and TryGe... 阅读全文
posted @ 2010-09-06 12:39 xqiwei 阅读(311) 评论(0) 推荐(0)
Use GetObjectByKey() for better performance
摘要:When I want to fetch an entity, I normally have a method that uses a query. This method will always query the database and you will have an up-to-date entity.But if you need better performance perhaps... 阅读全文
posted @ 2010-09-06 12:37 xqiwei 阅读(525) 评论(0) 推荐(0)