This project is read-only.

Suggestion needed for object level changes.

Jan 15, 2010 at 7:59 AM

As with current version, if we need a book object

public class Book

{

public string Name {get;set;}

public string MyBook {get;set;}

 

Here , i dont need the MyBook property to be included in my searh or being considered with Linqextender. Currently, the way is to mark it with [Ignore] attribute. But rather doing that how about making the implemention dependent on interface or "virual" proeprties. In that case if you dont need something then. just dont define it in your interface or dont mark as virual.

So, the Book becomes :

public Book : IBook

{

public string Name {get;set;}

public string MyBook {get;set;}

}

where IBook implements the "Name" property. So, "MyBook" wont be considered anyway. Or mark the property as "vrual" :

public Book : IBook

{

public virtual string Name {get;set;}

public string MyBook {get;set;}

}

Any issue you see ?