From: Michael D. <mik...@us...> - 2004-11-22 03:56:46
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Property In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29295/Property Modified Files: FieldAccessor.cs Log Message: minor fixes for FxCop rules Index: FieldAccessor.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Property/FieldAccessor.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** FieldAccessor.cs 10 Sep 2004 21:23:15 -0000 1.4 --- FieldAccessor.cs 22 Nov 2004 03:56:00 -0000 1.5 *************** *** 15,19 **** public class FieldAccessor : IPropertyAccessor { ! protected IFieldNamingStrategy namingStragety; public FieldAccessor() --- 15,19 ---- public class FieldAccessor : IPropertyAccessor { ! private IFieldNamingStrategy namingStrategy; public FieldAccessor() *************** *** 21,27 **** } ! public FieldAccessor(IFieldNamingStrategy namingStragety) { ! this.namingStragety = namingStragety; } --- 21,37 ---- } ! public FieldAccessor(IFieldNamingStrategy namingStrategy) { ! this.namingStrategy = namingStrategy; ! } ! ! /// <summary> ! /// Gets the <see cref="IFieldNamingStrategy"/> used to convert the name of the ! /// Property in the hbm.xml file to the name of the field in the class. ! /// </summary> ! /// <value>The <see cref="IFieldNamingStrategy"/> or <c>null</c>.</value> ! public IFieldNamingStrategy NamingStrategy ! { ! get { return namingStrategy; } } *************** *** 71,75 **** private string GetFieldName(string propertyName) { ! if(namingStragety==null) { return propertyName; --- 81,85 ---- private string GetFieldName(string propertyName) { ! if( namingStrategy==null ) { return propertyName; *************** *** 77,81 **** else { ! return namingStragety.GetFieldName(propertyName); } } --- 87,91 ---- else { ! return namingStrategy.GetFieldName(propertyName); } } |