Self Servicing Build Error

Posts   
 
    
ronnieb
User
Posts: 21
Joined: 23-Sep-2010
# Posted on: 15-Oct-2010 04:19:30   

Hello,

I'm using version 3 and am getting the following error for each of my entities:

Error 1 'RelationCollection' is an ambiguous reference between 'Base.Model.CollectionClasses.RelationCollection' and 'SD.LLBLGen.Pro.ORMSupportClasses.RelationCollection' C:\DotNet\Dev\ormTrunk\Base.Model\DAL\EntityClasses\CombineMethodEntity.cs 116 22 Base.Model

The conflicting code within the entity is:

    /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
    /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
    /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
    protected override RelationCollection GetRelationsForFieldOfType(string fieldName)
    {
        return GetRelationsForField(fieldName);
    }

What needs to happen to get this to compile?

Thanks,

Ronnie

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 15-Oct-2010 05:50:28   

Hi Ronnie,

From the compilation error I assume you have an entity named "Relation" and that will generate classes like RelationEntity, RelationFields, RelationCollection, etc. Then RelationCollection is also a class of LLBLGen runtime library, so that means that "Relation" is a reserved word. Please see if you can change that entity name.

David Elizondo | LLBLGen Support Team
ronnieb
User
Posts: 21
Joined: 23-Sep-2010
# Posted on: 15-Oct-2010 13:48:29   

Thanks, I renamed the entity and the build errors are gone.