Abstract entity

Posts   
 
    
jbliss1234
User
Posts: 42
Joined: 04-May-2007
# Posted on: 03-Apr-2009 01:36:06   

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

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39859
Joined: 17-Aug-2003
# Posted on: 03-Apr-2009 10:53:49   

I fail to see why you opened a new thread which continues an existing one. Closed.

Continue here: http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=15648

Frans Bouma | Lead developer LLBLGen Pro