protected QueryBase() { SortBy = new SortParameter <TSortPropertyEnum>(); Filter = new TQueryFilter(); Pagination = new Pagination(); }
// The copy constructor. protected QueryBase(QueryBase <TSortPropertyEnum, TQueryFilter> other) { Pagination = new Pagination(other.Pagination); SortBy = new SortParameter <TSortPropertyEnum>(other.SortBy); Filter = (TQueryFilter)other.Filter.Clone(); }
// copy constructor public SortParameter(SortParameter <T> other) { PropertyName = other.PropertyName; SortType = other.SortType; }