I'm starting to work with Genpro V5. (I was working with GenPro V1)
where can I find a simple example, ideally in vb.net to make a request on a table and a view
I can't use the predicateExpression class.
here's what I tried
' Dim filter1 As PredicateExpression = FournisseurFields.FournisseurID.Equals(1)
Dim filter2 As PredicateExpression = (FournisseurFields.FournisseurID = 1)
Dim fournisseur As New FournisseurCollection
fournisseur.GetMulti(filter2)
I use SelfServicing.TowClasses
with this code i have error
Dim qf as New QueryFactory
Dim q = QF.Fournisseur.Where(FournisseurFields.FournisseurID.Equal("ABC"))
Dim fourni as New FournisseurCollection
fourni.GetMulti(q)
error:
System.InvalidCastException: 'Unable to cast object of type 'SD.LLBLGen.Pro.QuerySpec.EntityQuery`1[ExpertisaBusiness.EntityClasses.FournisseurEntity]' to type 'SD.LLBLGen.Pro.ORMSupportClasses.IPredicate'.'