I am currently using the following code:
IPredicateExpression Pred;
ISortExpression Sort;
IRetrievalQuery selectQuery;
IEntityFields fieldsInResultset;
TypedViewType ViewType;
EntityType EntType;
string sSQL;
// get resulting field list from view/table
if (UseView)
{
ViewType = (TypedViewType)Enum.Parse(typeof(TypedViewType), ViewName + "TypedView");
fieldsInResultset = EntityFieldsFactory.CreateTypedViewEntityFieldsObject(ViewType);
}
else
{
EntType = (EntityType)Enum.Parse(typeof(EntityType), TableName + "Entity");
fieldsInResultset = EntityFieldsFactory.CreateEntityFieldsObject(EntType);
}
// create sql statement with filter and sort
DynamicQueryEngine DQE = new DynamicQueryEngine();
Pred = BuildGenericFilterExpression(Filter, null, ShowDeleted, ShowInvalid);
Sort = BuildGenericSortExpression(SortKeys);
selectQuery =
DQE.CreateSelectDQ(fieldsInResultset,
DbUtils.DetermineConnectionToUse(null),
Pred, ConfigurationManager.MaxRows, Sort,
null);
But VS tells me that this Override (IEntityFields) is obsolete.
VS announces this as an Error (not as a Warning) and now the whole project cannot be built.
Is there a function that converts IEntityFields to IEntityFieldCore[]?
many thanks in advance.