Hello DvK,
thank you very much for your suggestion.
Well, using SelfService, after all I got it working so far:
CustomerCollection allCustomers = new CustomerCollection();
allCustomers.GetMulti(null);
EntityView<CustomerEntity> allCustomersView = allCustomers.DefaultView;
List<myCustomer> myCusIDs = new List<Customer>(); DataProjectorToCustomClass<myCustomer> customClassProjector = new DataProjectorToCustomClass<myCustomer>(myCusIDs);
List<IEntityPropertyProjector> propertyProjectors = new List<IEntityPropertyProjector>();
propertyProjectors.Add(new EntityPropertyProjector(CustomerFields.CusID, "cusID"));
allCustomersView.CreateProjection(propertyProjectors, customClassProjector);
with
public class myCustomer
{
private long _cusID;
public myCustomer()
{
_cusID = 0;
}
public long cusID
{
get { return _cusID; }
set { _cusID = value; }
}
}
So, "myCusIDs" contains all the cusID's I was looking for.
Though "myCusIDs" is neither of list<string> nor long[]. And I need these datatypes to go into the AddWithAnd-clause of another PredicateExpression. I guess I'm just one little step away...but I don't see the solution.
Thanks again!
Ingmar