create interface with method that return generic object with where clausule
public interface IGenericObject { // add properties to object void Add(string name, object value); //return object with property name object Get(string name); // return object object Get(); // return collection of property names IEnumerable<string> GetProperties(); // return where sql clausule with property name = value string Where(); } // return generic object with where clausule public interface IWhere { // return object that implement IGenericObject IGenericObject Where(string name, object value); }