The template is found here:
LLBLGen Pro v3.5\Frameworks\Entity Framework\Templates\V4\C#\pocoHelperClasses.lpt
If it is included in the SD.EntityFramework.v5 template binding it does not produce a set of POCO helper classes as I expected it to.
//------------------------------------------------------------------------------
// <auto-generated>This code was generated by LLBLGen Pro v<%=ApplicationConstants.LLBLGenProVersion%>. Code is largely based on the POCO templates shipped by Microsoft. </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
namespace <%=_executingGenerator.RootNamespaceToUse%>
{
/// <summary>An System.Collections.ObjectModel.ObservableCollection that raises individual item removal notifications on clear and prevents adding duplicates.</summary>
/// <typeparam name="T"></typeparam>
public class FixupCollection<T> : ObservableCollection<T>
{
/// <summary>clears the items.</summary>
protected override void ClearItems()
{
new List<T>(this).ForEach(t => Remove(t));
}
/// <summary>Inserts the item.</summary>
/// <param name="index">The index.</param>
/// <param name="item">The item.</param>
protected override void InsertItem(int index, T item)
{
if (!this.Contains(item))
{
base.InsertItem(index, item);
}
}
}
}
The pocoTypedViewClass.lpt and pocoValueTypeClass.lpt templates in the same location have code which looks like it would produce the correct classes for typed views and value types.
I've attached a screenshot of the configured preset - I created a copy of the existing SD.EntityFramework.v5 preset and added the template and folder tasks. Code generation works fine, except for the HelperClasses which just produces a single output file called:
[elementName].cs.
Please could someone confirm if the template is correct or not. Thank you.