Format:
Recent snippets matching tags of Linq to Entities
public static class A { private static Func<MyContextEntities, int, Orders> compiledGetById; static A() { compiledGetById = CompiledQuery.Compile<MyContextEntities, int, Orders>(((ctxt, orderId) => (from o in ctxt.Orders where o.Id == orderId select o).FirstOrDefault())); } public static Orders GetOrderById(int orderId)
458 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
