I asked this question yesterday but the reply was unsatisfactory, so I am trying again.
I am attaching the .lgp file where Widget class is abstract.
However, all contructors in the generated code are public. Why?
public WidgetEntity():base()
{
}
/// <summary>
/// CTor
/// </summary>
/// <param name="widgetId">PK value for Widget which data should be fetched into this Widget object</param>
public WidgetEntity(System.Guid widgetId):
base(widgetId)
{
}
/// <summary>
/// CTor
/// </summary>
/// <param name="widgetId">PK value for Widget which data should be fetched into this Widget object</param>
/// <param name="prefetchPathToUse">the PrefetchPath which defines the graph of objects to fetch as well</param>
public WidgetEntity(System.Guid widgetId, IPrefetchPath prefetchPathToUse):
base(widgetId, prefetchPathToUse)
{
}
/// <summary>
/// CTor
/// </summary>
/// <param name="widgetId">PK value for Widget which data should be fetched into this Widget object</param>
/// <param name="validator">The custom validator object for this WidgetEntity</param>
public WidgetEntity(System.Guid widgetId, IValidator validator):
base(widgetId, validator)
{
}
/// <summary>
/// Private CTor for deserialization
/// </summary>
/// <param name="info"></param>
/// <param name="context"></param>
protected WidgetEntity(SerializationInfo info, StreamingContext context) : base(info, context)
{
// __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
// __LLBLGENPRO_USER_CODE_REGION_END
}
Using LLBLGen Pro 2.6 June6th 2008
SD.LLBLGen.Pro.ORMSupportClasses.NET20.dll version 2.6.0.0 File Version 2.6.08.0624
SD.LLBLGen.Pro.DQE.SqlServer.NET20.dll version 2.6.0.0 File Version 2.6.08.0612