Can't reproduce it. Are you sure the files are overwritten?
I generate into a new folder, I get both EntityFieldFactory and EntityFieldsFactory generated. They look like the code below:
//////////////////////////////////////////////////////////////
// <auto-generated>This code was generated by LLBLGen Pro 5.5.</auto-generated>
//////////////////////////////////////////////////////////////
// Code is generated on:
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates vendor: Solutions Design.
//////////////////////////////////////////////////////////////
using System;
using NWLegacy.HelperClasses;
using SD.LLBLGen.Pro.ORMSupportClasses;
namespace NWLegacy.FactoryClasses
{
/// <summary>Generates IEntityFields2 instances for different kind of Entities. For backwards compatibility.</summary>
public static partial class EntityFieldsFactory
{
/// <summary>General factory entrance method which will return an EntityFields2 object with the format generated by the factory specified</summary>
/// <param name="relatedEntityType">The type of entity the fields are for</param>
/// <returns>The IEntityFields instance requested</returns>
public static IEntityFields2 CreateEntityFieldsObject(NWLegacy.EntityType relatedEntityType)
{
return ModelInfoProviderSingleton.GetInstance().GetEntityFields(relatedEntityType.ToString());
}
}
}
//////////////////////////////////////////////////////////////
// <auto-generated>This code was generated by LLBLGen Pro 5.5.</auto-generated>
//////////////////////////////////////////////////////////////
// Code is generated on:
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates vendor: Solutions Design.
//////////////////////////////////////////////////////////////
using System;
using NWLegacy.HelperClasses;
using SD.LLBLGen.Pro.ORMSupportClasses;
namespace NWLegacy.FactoryClasses
{
/// <summary>Factory class for IEntityField2 instances, used in IEntityFields2 instances. For backwards compatibility</summary>
public static partial class EntityFieldFactory
{
/// <summary>Creates a new IEntityField2 instance for usage in the EntityFields object for the entity related to the field index specified.</summary>
/// <param name="fieldIndex">The field which IEntityField2 instance should be created</param>
/// <returns>The IEntityField2 instance for the field specified in fieldIndex</returns>
public static IEntityField2 Create(Enum fieldIndex) { return new EntityField2(ModelInfoProviderSingleton.GetInstance().GetFieldInfo(fieldIndex)); }
/// <summary>Creates a new IEntityField2 instance, which represents the field objectName.fieldName</summary>
/// <param name="objectName">the name of the object the field belongs to, like CustomerEntity or OrdersTypedView</param>
/// <param name="fieldName">the name of the field to create</param>
public static IEntityField2 Create(string objectName, string fieldName) { return new EntityField2(ModelInfoProviderSingleton.GetInstance().GetFieldInfo(objectName, fieldName)); }
}
}
Please make sure the files are overwritten properly.
We also have a test in place which generates a project with these settings enabled and compiles fine. So there's something off somewhere.