LINQ in Action roller

New methods or properties in partial class

Hello, Let say that i have in datacontext a class called Product It's possible to add new methods or properties at Product class and than used them in a linq statement. something like this Code Snippet public partial class Product { public int NewProperty { get {return this.ID*2;} } //or public int Property() { return this.ID*2; } } .............. var q=from item in context.Products where item.NewProperty==2 select item ; I tried with expression functions delegate but i didn't succeed. Read More...
Published Tuesday, July 29, 2008 1:31 AM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication