Error Bucket sub Add

Posts   
 
    
VRAY
User
Posts: 1
Joined: 07-Jul-2008
# Posted on: 07-Jul-2008 11:46:45   

Hello !!

I have an error on my code when i do this

filtre.Relations.Add(PersonneEntity.Relations.TravailPourEntityUsingPerIdContact, JoinHint.Left)

I have error :

Error 31 Overload resolution failed because no accessible 'Add' can be called without a narrowing conversion: 'Public Function Add(relationToAdd As SD.LLBLGen.Pro.ORMSupportClasses.IEntityRelation, aliasRelationEndEntity As String) As SD.LLBLGen.Pro.ORMSupportClasses.IEntityRelation': Argument matching parameter 'relationToAdd' narrows from 'SD.LLBLGen.Pro.ORMSupportClasses.IEntityRelation' to 'SD.LLBLGen.Pro.ORMSupportClasses.IEntityRelation'. 'Public Function Add(relationToAdd As SD.LLBLGen.Pro.ORMSupportClasses.IEntityRelation, aliasRelationEndEntity As String) As SD.LLBLGen.Pro.ORMSupportClasses.IEntityRelation': Argument matching parameter 'aliasRelationEndEntity' narrows from 'SD.LLBLGen.Pro.ORMSupportClasses.JoinHint' to 'String'. 'Public Function Add(relationToAdd As SD.LLBLGen.Pro.ORMSupportClasses.IEntityRelation, hint As SD.LLBLGen.Pro.ORMSupportClasses.JoinHint) As SD.LLBLGen.Pro.ORMSupportClasses.IEntityRelation': Argument matching parameter 'relationToAdd' narrows from 'SD.LLBLGen.Pro.ORMSupportClasses.IEntityRelation' to 'SD.LLBLGen.Pro.ORMSupportClasses.IEntityRelation'. C:\Developpement\Aricie\DotNetNuke48\AnnuaireBusinessLayer\Employes\FctAricieEmployes.vb 60 9 AnnuaireBusinessLayer

if you already have this error maybe you could help me.

Thanks

Walaa avatar
Walaa
Support Team
Posts: 14994
Joined: 21-Aug-2005
# Posted on: 07-Jul-2008 14:32:19   

filtre.Relations.Add(PersonneEntity.Relations.TravailPourEntityUsingPerIdContact, JoinHint.Left)

Please post a complete code snippet. Also please post the llblgen pro runtime library version used.

You are using Adapter, right?

Is the "JoinHint" enum resolved? (i,e, do you have the correct using statement?)

using SD.LLBLGen.Pro.ORMSupportClasses;