sl部署比开发还麻烦,还好在网上找到这篇帖子,基本解决了遇到的所有问题:
http://www.cnblogs.com/sonce/archive/2011/03/04/1970803.html
|
1
|
I'd like
to make my application as flexible as possible, but not dig myself into a
hole by making my Interface too specific.
What is the best object type for a repository?
IEnumerable, IQueryable, or List?
The
technologies I'm considering using are
|
|
88
|
what is
the difference between returning iqueryable vs ienumerable.
IQueryable<Customer>
custs = from c in
db.Customers
where c.City == "<City>" select c;
IEnumerable<Customer> custs = from c in db.Customers
where c.City == "<City>" select c;
Will
both be deferred execution? When should one be preferred over the other?
|
var query = session.CreateCriteria<Product>();