accesability for PropertyInfo

Jul 30, 2010 at 11:19 AM
Edited Jul 30, 2010 at 11:20 AM
Hi! I wonder, why you, guys, did public accesability for "PropertyInfo" by default. I think, only in generated class you need access to that field and not else where. May be i miss something. Now: public static PropertyInfo<string> CompanyNameProperty = RegisterProperty<string>(c => c.CompanyName); I think it should be: private static readonly PropertyInfo<string> CompanyNameProperty = RegisterProperty<string>(c => c.CompanyName); Thank you. Good job! Igor
Jul 30, 2010 at 12:32 PM

Hi Igor!

We did it because that "is a recommended best practice for CSLA 4, and is basically required for any SL4 work" (Lhotka,

However you can still change this per property in EF designer as you want (see "Csla PropertyInfo" property).