Using two tables with a one to many relationship (such as Make -> Model), how do I return a Make with limited Model children in an IQueryable function?
I want to use LINQ\'s IQueryable th开发者_Go百科at gives me the query that gets only the records needed to the page based on the page size I have given.
I have the following fictional domain classes: public class Pony { public string Name { get; set; } public DateTime FoundDate { get; set; }
I am wondering how I can pass a model back to an action so that I can continue to work on the data but in a different action based on the button\'s pressed
I\'d like to expose a Repository as an \'IQueryable\' type. The repository uses Linq to NHibernate to communicate with the database.
In my ASP.NET MVC 2 C# web app I have a repository that contains method that returns an Iqueryable. My controller calls this, handing over some variables to it so it an run a linq to sql query.
Is it possible to access t开发者_高级运维he DataContext object behind an IQueryable? If so, how?DataContext is specific to LINQ to SQL, so presumably you\'re talking about LINQ to SQL queries? If so
I have: a stored procedure which retrieves zip codes in a radius around another zip code a table with contacts
I have a function called GetUserByOpenId I don\'t want to be using this function at all Public Function GetUserByOpenID(ByVal claimedidentifier As String) As User Implements IUserRepository.GetUserBy
I\'ve got an IQueryable repository (admittedly this is the first time I\'ve tried this) and I can\'t seem to get it to pull the correct data using Skip(1).Take(1)