iqueryable
IQueryable for Subsonic Stored Procedure
I need to use stored procedure to get data from DB, but I would also like to use IQueryable to add some filtering to results. I\'m using subsonic and for now can\'t see a way to use subsonic sp and IQ[详细]
2023-03-20 09:32 分类:问答Use of custom expression in LINQ leads to a query for each use
I have the following p开发者_运维百科roblem: In our database we record helpdesk tickets and we book hours under tickets. Between those is a visit report. So it is: ticket => visitreport => hours.[详细]
2023-03-19 22:15 分类:问答Unit Test IQueryable
I am trying to write a unit test for a method which take开发者_如何学Pythons an IQueryable collection.[详细]
2023-03-17 13:48 分类:问答How do i convert the fields of type DateTime to just Date at runtime of an IQueryable of records?
I am in a situation where i need to convert fields with DateTime to a Date (DateTime (2011-01-01 00:00:00 ) to Date ( 2011-01-01 just a string with no time )) before i assign the source to the DataGri[详细]
2023-03-14 01:26 分类:问答Returning Enumerable.Empty<T>().AsQueryable() a bad idea?
This is probably best explained with some code: 开发者_运维百科public IQueryable<DatabaseRecord> GetQueryableLinkedRecords()[详细]
2023-03-10 06:04 分类:问答Linq to SQL using IQueryable API for 1 to many relationship
Assume A is a parent table with many B records.Essentially I need LINQ to S开发者_运维问答QL to generate this query:[详细]
2023-03-09 01:37 分类:问答How get propery value of an dynamic type?
[update] I\'m sorry, i should tag this question as MVC-2, I pass result of query into view\'s model, so i must specify type[详细]
2023-03-08 17:10 分类:问答cast iqueryable
how do i cast to cartItem? var newItem = from i in dc.CartItems where i.productID == item.productID select new {productID = i.productID,[详细]
2023-03-08 15:27 分类:问答Reflection with IQueryable
I\'m playing around and trying to make an extension method for IQueryable that sorts it by an arbitrary property of a object.[详细]
2023-03-07 19:14 分类:问答Dynamic LINQ OrderBy on IEnumerable<T> / IQueryable<T>
I found an example in the VS2008 Examples for Dynamic LINQ that allows you t开发者_运维百科o use a SQL-like string (e.g. OrderBy("Name, Age DESC")) for ordering. Unfortunately, the method in[详细]
2023-03-07 15:53 分类:问答