Property override problem

Posts   
 
    
tprohas
User
Posts: 257
Joined: 23-Mar-2004
# Posted on: 11-Nov-2005 21:07:08   

I apprarently have named a field in my database the same name as a property in one of the LLBLGen classes. Can anyone tell me what the best solution to this build warning is?

D:\Projects\WrenchScience\WrenchScienceSln\LLBLGenSln\DatabaseGeneric\EntityClasses\PartSetEntity.cs(981): The keyword new is required on 'WrenchScience.LLBLGen.EntityClasses.PartSetEntity.SetName' because it hides inherited member 'SD.LLBLGen.Pro.ORMSupportClasses.EntityBase2.SetName(string)'

bclubb
User
Posts: 934
Joined: 12-Feb-2004
# Posted on: 12-Nov-2005 03:55:31   

Can you change SetName to PartSetName?

tprohas
User
Posts: 257
Joined: 23-Mar-2004
# Posted on: 21-Nov-2005 21:18:18   

bclubb wrote:

Can you change SetName to PartSetName?

I don't have any problem changing the name, is this most likely the best solution?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 21-Nov-2005 23:53:13   

tprohas wrote:

bclubb wrote:

Can you change SetName to PartSetName?

I don't have any problem changing the name, is this most likely the best solution?

Yes, because the SetName method is not going to be changed. SetName is a protected member, (required protected unfortunately) so it cant be altered now, nor can it be hidden from derived classes.

Frans Bouma | Lead developer LLBLGen Pro