with the cast it is the same...
error message :
Left operand and right operand aren't of the same type. Left operand is of type 'System.Int32', right operand is of type 'SD.LLBLGen.Pro.ORMSupportClasses.ExpressionElement`1[System.Object]'
call stack :
à SD.LLBLGen.Pro.ORMSupportClasses.Expression.PerformGetValue(IEntityCore entity) dans E:\Projets\Projets DotNet\Frameworks\LLBLGen2\RuntimeLibraries\SourceCode\Net2.x\ORMSupportClasses\Expression.cs:ligne 381
à SD.LLBLGen.Pro.ORMSupportClasses.Expression.SD.LLBLGen.Pro.ORMSupportClasses. IExpressionInterpret.GetValue(IEntityCore entity) dans E:\Projets\Projets DotNet\Frameworks\LLBLGen2\RuntimeLibraries\SourceCode\Net2.x\ORMSupportClasses\Expression.cs:ligne 1325
à SD.LLBLGen.Pro.ORMSupportClasses.FieldCompareExpressionPredicate.InterpretPredicate(IEntityCore entity) dans E:\Projets\Projets DotNet\Frameworks\LLBLGen2\RuntimeLibraries\SourceCode\Net2.x\ORMSupportClasses \FieldCompareExpressionPredicate.cs:ligne 287
à SD.LLBLGen.Pro.ORMSupportClasses.Predicate.SD.LLBLGen.Pro.ORMSupportClasses. IPredicateInterpret.Interpret(IEntityCore entity) dans E:\Projets\Projets DotNet\Frameworks\LLBLGen2\RuntimeLibraries\SourceCode\Net2.x\ORMSupportClasses\Predicate.cs:ligne 152
à SD.LLBLGen.Pro.ORMSupportClasses.PredicateExpression.InterpretPredicate(IEntityCore entity) dans E:\Projets\Projets DotNet\Frameworks\LLBLGen2\RuntimeLibraries\SourceCode\Net2.x\ORMSupportClasses\ PredicateExpression.cs:ligne 330
à SD.LLBLGen.Pro.ORMSupportClasses.Predicate.SD.LLBLGen.Pro.ORMSupportClasses. IPredicateInterpret.Interpret(IEntityCore entity) dans E:\Projets\Projets DotNet\Frameworks\LLBLGen2\RuntimeLibraries\SourceCode\Net2.x\ORMSupportClasses\Predicate.cs:ligne 152
à SD.LLBLGen.Pro.ORMSupportClasses.CollectionCore1.FindMatches(IPredicate filter) dans E:\Projets\Projets DotNet\Frameworks\LLBLGen2\RuntimeLibraries\SourceCode\Net2.x\ ORMSupportClasses\CollectionCore.cs:ligne 504
à Cogetise.Business.PlanDeCalcul.PlanDeCalculController.GeneratePlanDeCalcul(ORG_OrgaEntity orga, CSP repere, CPT_CompteEntity compteOrga, PSD_PeriodeSyndicaleEntity periode, TextWriter outStream, TextWriter errorStream) dans E:\Projets\Projets DotNet\Projets Web\cogetiseTFS\Cogetise.Business\PlanDeCalcul\PlanDeCalculController.vb:ligne 341
à Cogetise.Business.PlanDeCalcul.PlanDeCalculController.GeneratePlansDeCalcul(ORG_OrgaEntity orga, CPT_CompteEntity compteOrga, TextWriter outStream, TextWriter errorStream) dans E:\Projets\Projets DotNet\Projets Web\cogetiseTFS\Cogetise.Business\PlanDeCalcul\PlanDeCalculController.vb:ligne 285
à Cogetise.Business.PlanDeCalcul.PlanDeCalculController.GeneratePlansFromRepartition(EntityCollection
1 orgas, TextWriter outStream, TextWriter errorStream) dans E:\Projets\Projets DotNet\Projets Web\cogetiseTFS\Cogetise.Business\PlanDeCalcul\PlanDeCalculController.vb:ligne 221
**update **:
i debug into LLBL sourcecode and it seems the error is with this line :
pe.Add(New FieldCompareExpressionPredicate(LDR_LigneDetailRepartitionFields.RSI_IdRepereSituation, Nothing, ComparisonOperator.Equal, expRSI))
the left operand value (integer) is the value of LDR_LigneDetailRepartitionFields.RSI_IdRepereSituation, and right operand is expRSI.
but I don't understand why it crash...