代码改变世界

随笔档案-2012年01月

A PageList: A page control on WPF

2012-01-09 10:57 by barbarossia, 366 阅读, 收藏,
摘要: I create a page control used to data access and display a page which own defined. It used the entityframework4.1 as data access and IQuerable<T> handle the page it's mechism.The code is: public class PagedList<T> : List<T> { public int StartIndex { get; private set; } public in 阅读全文

How to improve the ef4.1 where handle the large data

2012-01-09 10:57 by barbarossia, 194 阅读, 收藏,
摘要: EF4.1 is the framework which can take advantage of the data proccess. But when it handle the large data, it is too slower to reaction.So the sample is how to improve the data proccess who use the ef4.1Insert code snip: using (var context = GetContext()) { context... 阅读全文