EntityFieldCore.CaseSensitiveStringHashCodes

Posts   
 
    
psandler
User
Posts: 540
Joined: 22-Feb-2005
# Posted on: 07-Aug-2008 22:55:50   

Assuming we want to use this globally in our application, and only make the setting once (even though we may have many different processes, web, winforms, wcf, etc.), and that we don't want to do it through .config files, is there a recommended place to apply this setting?

There doesn't seem to be a good place in the user regions of the DataAccessAdapter where we can set it, which is the first thing I tried.

Thanks,

Phil

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 08-Aug-2008 06:56:25   

I think this would be a good place (whichever CODE_REGION or partial class):

// __LLBLGENPRO_USER_CODE_REGION_START CustomDataAccessAdapterCode      
public override void OpenConnection()
{
    EntityFieldCore.CaseSensitiveStringHashCodes = false;
    base.OpenConnection();
}
// __LLBLGENPRO_USER_CODE_REGION_END
#endregion
David Elizondo | LLBLGen Support Team
psandler
User
Posts: 540
Joined: 22-Feb-2005
# Posted on: 08-Aug-2008 15:11:29   

Thanks, David, that works!