The Keyword 'new' is required on 'IsNew' because it hides property 'bool SD.LLBLGen.Pro.ORMSupportClasses.EntityBase2.IsNew'

Posts   
 
    
John Smith
User
Posts: 6
Joined: 24-Oct-2010
# Posted on: 24-Oct-2010 04:31:28   

I am using the October 8, 2010 final release with Visual Studio 9.0.30729.1, C#, SQL Server 2008 Standard, adapter template group, and the target platform is .NET 3.5.

I am a new user and this is my 3rd project. All 3 are adapter projects, and first 2 are working perfectly.

My build settings are all warnings are treated as errors.

I am now getting the following error message on my latest project:

The Keyword 'new' is required on 'IsNew' because it hides property 'bool SD.LLBLGen.Pro.ORMSupportClasses.EntityBase2.IsNew'

Here is the code the compiler is barking about:

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

Can you please help? (First post too, sorry if I'm in the wrong forum, just tell me where I should have gone.)

Thanks - John

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 24-Oct-2010 11:19:41   

The base class has the property 'IsNew'. Please rename your entity field 'IsNew' to something else in the designer (select the field in project explorer, press F2) and re-generate the code.

Frans Bouma | Lead developer LLBLGen Pro
John Smith
User
Posts: 6
Joined: 24-Oct-2010
# Posted on: 24-Oct-2010 14:49:51   

Will do. Thanks for the super fast response!