SD.LLBLGen.Pro.ORMSupportClasses.IEntityRelation' has multiple definitions with identical signatures.

Posts   
 
    
Dan1
User
Posts: 41
Joined: 20-Sep-2007
# Posted on: 13-Feb-2008 21:59:54   

I am getting the following error when trying to compile my ORM generated project. This worked last time, and I don't know what has changed with this specific entity but now I am getting the following error. Please let me know what I can do about this ASAP. My project is in the hands of LLBLGen here, and if the generated code can't compile then we've got a big problem.

Error 57 'Public Overridable ReadOnly Property WeldSpec_Proj_AttributesEntityUsingWeldSpec_Proj_AttributeId() As SD.LLBLGen.Pro.ORMSupportClasses.IEntityRelation' has multiple definitions with identical signatures. C:\WindowsProjects\Weld\Weld2\Weld.ORM\RelationClasses\WeldSpec_Proj_AttributesRelations.vb 54 41 Weld.ORM

This is the generated code in the WeldSpec_Proj_AttributesRelations class

''' <summary>Returns a new IEntityRelation Object, between WeldSpec_Proj_AttributesEntity and WeldSpec_Proj_AttributesEntity over the 1:1 relation they have, using the relation between the fields:
    ''' WeldSpec_Proj_Attributes.WeldSpec_Proj_AttributeId - WeldSpec_Proj_Attributes.WeldSpec_Proj_AttributeId
    ''' </summary>
    Public Overridable  ReadOnly Property WeldSpec_Proj_AttributesEntityUsingWeldSpec_Proj_AttributeId() As IEntityRelation
        Get
            Dim relation As IEntityRelation = New EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToOne, "WeldSpec_Proj_Attributes_", True)

            relation.AddEntityFieldPair(WeldSpec_Proj_AttributesFields.WeldSpec_Proj_AttributeId, WeldSpec_Proj_AttributesFields.WeldSpec_Proj_AttributeId)



            relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("WeldSpec_Proj_AttributesEntity", True)
            relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("WeldSpec_Proj_AttributesEntity", False)
            Return relation
        End Get
    End Property
    ''' <summary>Returns a new IEntityRelation Object, between WeldSpec_Proj_AttributesEntity and WeldSpec_Proj_AttributesEntity over the 1:1 relation they have, using the relation between the fields:
    ''' WeldSpec_Proj_Attributes.WeldSpec_Proj_AttributeId - WeldSpec_Proj_Attributes.WeldSpec_Proj_AttributeId
    ''' </summary>
    Public Overridable  ReadOnly Property WeldSpec_Proj_AttributesEntityUsingWeldSpec_Proj_AttributeId() As IEntityRelation
        Get
            Dim relation As IEntityRelation = New EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToOne, "WeldSpec_Proj_Attributes", True)

            relation.AddEntityFieldPair(WeldSpec_Proj_AttributesFields.WeldSpec_Proj_AttributeId, WeldSpec_Proj_AttributesFields.WeldSpec_Proj_AttributeId)



            relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("WeldSpec_Proj_AttributesEntity", True)
            relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("WeldSpec_Proj_AttributesEntity", False)
            Return relation
        End Get
    End Property
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 13-Feb-2008 22:33:44   

PLease post more information as stated in the guidelines: LLBLGen Pro version, build date, runtime library version etc. http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=7717

If you have an inheritance hierarchy, and you have a relation in supertype which has a field mapped on it called Foo and a subtype of it also has a relation with a field mapped on it called 'Foo' you get this error. Rename one.

Frans Bouma | Lead developer LLBLGen Pro
Dan1
User
Posts: 41
Joined: 20-Sep-2007
# Posted on: 14-Feb-2008 03:12:04   

v2.5 Rel: Dec 5, 2007:

I'm not clear as to what you mean exactly as per your response. Could you please make it clearer?

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 14-Feb-2008 04:14:32   

Dan,

Your issue is discussed here: http://llblgen.com/TinyForum/Messages.aspx?ThreadID=11956

Please let us know if we can help you further simple_smile

David Elizondo | LLBLGen Support Team