I am working with old code from v2.6, bringing it into LLBLGen Pro 5.3. The main issue I'm running up against is that I have a Field table that maps to the FieldBaseEntity/FieldEntity class. When I generate the code in 5.3 (SelfServicing/TwoClasses), the QueryFactory throws a name conflict error because of the following 2 lines:
///<summary>Creates a new field object with the name specified and of resulttype 'object'. Used for referring to aliased fields in another projection.</summary>
/// <param name="fieldName">Name of the field.</param>
/// <returns>Ready to use field object</returns>
public EntityField Field(string fieldName)
{
return Field<object>(string.Empty, fieldName);
}
...
/// <summary>Creates and returns a new EntityQuery for the Field entity</summary>
public EntityQuery<FieldEntity> Field
{
get { return Create<FieldEntity>(); }
}
The specific error is:
The type 'QueryFactory' already contains a definition for 'Field'
What would be the most elegant way to handle this?