Hi!
First of all, congratulations for your application it's amazing, and second, excuse me for my english, it's not good.
I'm using LLBLGen Pro version 1.2004.2 final, with SQL Server database (SelfServicing) , and I have a little problem:
I'm trying to create a generic function that creates a filter (predicate) for any TypedView, depending on a table that contains a list for the identity column of de TypedView. I did it using a Collection, here is the code:
private PredicateExpression ObtenirPredicateForCollection(SD.LLBLGen.Pro.ORMSupportClasses.IEntityCollection _collection, DataTable tblIdents)
{
PredicateExpression p = new PredicateExpression();
//Get the array of identifiers of the column o the datatable
List<object> codis = new List<object>();
foreach (DataRow rw in tblIdents.Rows)
{
codis.Add(rw[0]);
}
//Create Range predicate by idents in the list and the column's name of the datatabe
IEntity ent = _collection.EntityFactoryToUse.Create();
FieldCompareRangePredicate fp = new FieldCompareRangePredicate(ent.Fields[tblIdents.Columns[0].ColumnName], codis.ToArray());
p.Add(fp);
return p;
}
Now I would like to do the same but using ITypedView interface, but I can't find any method or property for generate de EntityFields needed for create the predicate. In this project, I have no reference to generated code project of specific database, I only have a reference to SD.LLBLGen.Pro.ORMSupportClasses. Whereas in IEntityCollection interface there is a property EntityFactoryToUse that allows acces to collection fields for create the Predicate Expression, in TypedViews I haven't found one.
Thanks for all
Xavi