/// <summary> /// Get the List of views from within your Parature license /// </summary> /// <typeparam name="TParentEntity"></typeparam> /// <typeparam name="TEntity"></typeparam> /// <param name="query"></param> /// <returns></returns> public ParaEntityList <TEntity> GetList <TParentEntity, TEntity>(ParaQuery query) where TEntity : ParaEntityBaseProperties, new() where TParentEntity : ParaEntity { if (!(query.QueryTargetType == typeof(TEntity))) { throw new ArgumentException("Inavlid query type for the requested entity result type", "query"); } return(ApiUtils.ApiGetEntityList <TParentEntity, TEntity>(Credentials, query)); }
public ParaEntityList <TEntity> GetList <TEntity>(ParaEntityQuery query) where TEntity : ParaEntity, new() { if (!(query.QueryTargetType == typeof(TEntity))) { throw new ArgumentException("Invalid query type for the requested entity result type", "query"); } if (query.IncludeAllCustomFields) { var objschem = Create <TEntity>(); query.IncludeCustomField(objschem.CustomFields); } return(ApiUtils.ApiGetEntityList <TEntity>(Credentials, query)); }