iqueryable
Using LINQ-to-NHibernate Sort an IQueryable of T based on a property value within T's Children
Though the project in which I\'m having this issue addresses a different domain, I\'ve found a metaphor that may help to present my question clearly:[详细]
2023-01-16 21:41 分类:问答Adding new items dynamically to IQueryable hard-coded fake repository
Building an application, before using a real database, just to get things work I can first use a hard-coded list as a fake, in-memory repository:[详细]
2023-01-16 12:14 分类:问答How do I keep an IQueryable<> within a transaction using the repository pattern?
According to NHProf, the use of implicit transactions is discouraged: http://nhprof.com/Learn/Alerts/DoNotUseImplicitTransactions[详细]
2023-01-16 02:55 分类:问答IQueryable OfType<T> where T is a runtime Type
I need to be able to get some开发者_如何学Gothing similar to the following to work: Type type = ??? // something decided at runtime with .GetType or typeof;[详细]
2023-01-15 13:32 分类:问答IQueryable Repository with StructureMap (IoC) - How do i Implement IDisposable?
If i have the following Repository: public IQueryable<User> Users() { var db = new SqlDataContext();[详细]
2023-01-15 01:02 分类:问答How can I refactor this IQueryable<T> Repository Method?
I\'m working on a .NET 4 application, C#, Entity Framework 4, SQL Server 2008. I have a 7 tables in my database, each representing a specific level of location (Country, State, City, Neighborhood, et[详细]
2023-01-14 06:36 分类:问答Sorting collection and sub-collection at the same time
I have an IQueryable<Product> that needs to be sorted by Name. Each Product has an IQueryable<Category> that also needs to be sorted by Name. I\'m having a hard time expressing this in Lin[详细]
2023-01-13 17:37 分类:问答Is it possible to add two IQueryable's together?
I\'ve been using Union on IQueryable<> (with the same type) to try to get one collection produced from two collections, but it is not working. I believe my understanding is at fault with regards to[详细]
2023-01-12 05:27 分类:问答Problem creating empty IQueryable<T> object
Basically i want to merge two Iqueryable to one Iqueryable and then return the complete record set after my loop ends. It runs perfectly but in the end my objret have nothing but when i debug the loop[详细]
2023-01-11 17:06 分类:问答IQueryable member methods not behaving?
This is my code: IQueryable<Car> list = new List<Car>().AsQueryable<Car>(); foreach (TreeNode node in DataHierarchyTree.CheckedNodes)[详细]
2023-01-11 14:02 分类:问答