Sign in
Stuart Leeks
Stuart Leeks - Application Development Consultant
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Tags
ADO.Net Data Services
ASP.NET MVC
Batch file
CSharp
Debugging
Entity Framework
Extension methods
Javascript
jQuery
LINQ
Outlook
Pages
PowerShell
Testing
Unity
Utilities
Visual Studio
Browse by Tags
MSDN Blogs
>
Stuart Leeks
>
All Tags
>
extension methods
Tagged Content List
Blog Post:
Entity Framework 5: Controlling automatic query compilation
stuartle
When working with LINQ to Entities, Entity Framework has to parse the expression tree from the LINQ query and convert it to SQL. It is possible to save the output of this using CompiledQuery , but this is something that you have to manually code. One of the new features coming in Entity Framework 5 ...
on
12 Jun 2012
Blog Post:
ASP.NET MVC & jQuery UI autocomplete
stuartle
UPDATE: I've written a follow-up post that shows how to achieve this using Html.EditorFor here . If you get me started talking about ASP.NET MVC then it is quite possible that I’ll end up talking about Progressive Enhancement or Unobtrusive JavaScript . Aside from the usability and performance...
on
23 Apr 2012
Blog Post:
ASP.NET MVC 3: Integrating with the jQuery UI date picker and adding a jQuery validate date range validator
stuartle
UPDATE: I've blogged about an more flexible way to wire up the editor template here . This is post looks at working with dates in ASP.NET MVC 3. We will see how to integrate the jQuery UI date picker control automatically for model properties that are dates and then see an example of a custom validator...
on
25 Jan 2011
Blog Post:
ASP.NET MVC - Creating a DropDownList helper for enums
stuartle
Do the types you work with in your ASP.NET MVC models ever have enums? Mine do from time to time and I’ve found myself needing to render a dropdown list to allow the user to select the enum value. For the purposes of this post, I will be working with a Person class and a Color enum (I’ll direct you to...
on
21 May 2010
Blog Post:
Improving ObjectQuery<T>.Include – Updated
stuartle
Having spent some time using the sample from my previous post on ObjectQuery.Include, I’ve encountered a bug! It turns out that the code generates the wrong include string for context.Customers.Include(c => c.Order.SubInclude(o=>o.OrderDetail)) The fix for this is a small change to the BuildString...
on
24 Apr 2009
Blog Post:
DataServiceQuery<T>.Expand
stuartle
ADO.Net Data Services allows you to expose your LINQ To Entities model (or LINQ To SQL model, or even your custom IQueryable model) via a REST ful API with minimal coding. For example, if you’re working with the Northwind database you can use the URL http://server/Service.svc/Customers(‘ALFKI’...
on
15 Sep 2008
Blog Post:
Improving ObjectQuery<T>.Include
stuartle
** UPDATE: There’s a bug in the code below – see this post for the update! One of the great features of LINQ To SQL and LINQ To Entities is that the queries you write are checked by the compiler, which eliminates typing errors in your query. Unfortunately, the ObjectQuery<T>.Include function...
on
27 Aug 2008
Page 1 of 1 (7 items)