From 2.0 to 2.6 woes

Posts   
 
    
Groupecho
User
Posts: 4
Joined: 28-Nov-2008
# Posted on: 28-Nov-2008 17:57:43   

Hi All,

I've been pulling my hair for two days upgrading a 20 projects solutions to 2.6 from 2.0. Almost everything is working but 2 issues.

Before:


/// <summary> The ReferenceNumber property of the Entity Psimtransaction<br/><br/>
        /// </summary>
        /// <remarks>Mapped on  table field: "PSIMTransaction"."ReferenceNumber"<br/>
        /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0<br/>
        /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, true</remarks>
        public virtual System.Int32 ReferenceNumber
        {
            get
            {
                object valueToReturn = base.GetCurrentFieldValue((int)PsimtransactionFieldIndex.ReferenceNumber);
                if(valueToReturn == null)
                {
                    valueToReturn = TypeDefaultValue.GetDefaultValue(typeof(System.Int32));
                }
                return (System.Int32)valueToReturn;
            }
            set { SetNewFieldValue((int)PsimtransactionFieldIndex.ReferenceNumber, value); }
        }

Now:

        /// <summary> The ReferenceNumber property of the Entity Psimtransaction<br/><br/>
        /// </summary>
        /// <remarks>Mapped on  table field: "PSIMTransaction"."ReferenceNumber"<br/>
        /// Table field type characteristics (type, precision, scale, length): Int, 10, 0, 0<br/>
        /// Table field behavior characteristics (is nullable, is PK, is identity): false, false, true</remarks>
        public virtual System.Int32 ReferenceNumber
        {
            get { return (System.Int32)GetValue((int)PsimtransactionFieldIndex.ReferenceNumber, true); }

        }

The setter disapear but my code use this setter and it now breaks on this. How can I fix that? To allow code to compile I manually added the setter where I needed it but now I have to test all the application.

Any idea someone ?

Thanx.

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 28-Nov-2008 22:36:40   

Could you check if the _IsReadOnly _option is checked for the _ReferenceNumber _field at LLBLGen Pro Designer?

David Elizondo | LLBLGen Support Team
Groupecho
User
Posts: 4
Joined: 28-Nov-2008
# Posted on: 03-Dec-2008 22:39:35   

confused After investigation it appears that someone before me made change to the table structure and did not regenerate the d.a.l. classes.

Thanx anywayz.