I'm receiving the following error when trying to execute a FetchAll on my defined entity 'ApplicationSettingEntity'. The entity definitely exists in the EntityClasses folder so I'm unsure where to go at this point.
The FetchAll code is as follows:
public virtual EntityCollection<TEntityType> FetchAll(IRelationPredicateBucket aPredicate, int maxNumberOfItemsToReturn, SortExpression aSortExpression, IPrefetchPath2 aPrefetchPath, ExcludeIncludeFieldsList excludedFields)
{
EntityCollection<TEntityType> result = null;
try
{
aPredicate = AddLogicalDeletionPredicate(aPredicate);
result = new EntityCollection<TEntityType>();
this.Adapter.FetchEntityCollection(result, aPredicate, maxNumberOfItemsToReturn, aSortExpression, aPrefetchPath, excludedFields);
}
catch (Exception ex)
{
throw TranslateException(ex);
}
return result;
}
The application is producing this error when it hits the result = new EntityCollection<TEntityType>(); line of code.
Could anybody assist me with this issue?
Regards,