accesability for PropertyInfo

Jul 30, 2010 at 12:19 PM
Edited Jul 30, 2010 at 12:20 PM
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
Developer
Jul 30, 2010 at 1: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, http://forums.lhotka.net/forums/t/9176.aspx).

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