Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > Bugs & Issues> SD.LLBLGen.Pro.ORMSupportClasses.IEntityRelation' has multiple definitions with identical signatures.
 

Pages: 1
Bugs & Issues
SD.LLBLGen.Pro.ORMSupportClasses.IEntityRelation' has multiple definitions with identical signatures.
Page:1/1 

  Print all messages in this thread  
Poster Message
Dan1
User



Location:

Joined on:
20-Sep-2007 16:09:06
Posted:
41 posts
# 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
  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
38047 posts
# 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
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
Dan1
User



Location:

Joined on:
20-Sep-2007 16:09:06
Posted:
41 posts
# 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?
  Top
daelmo
Support Team



Location:
Guatemala City
Joined on:
28-Nov-2005 23:35:24
Posted:
8138 posts
# 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 Regular Smiley


David Elizondo
LLBLGen'ing (articles and code snippets) | linkedin | twitter
 
Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.