@@ -29,11 +29,12 @@ public class PersistenceModel
2929 {
3030 new ComponentMapComponentReferenceResolver ( )
3131 } ;
32- private readonly IList < IMappingModelVisitor > visitors = new List < IMappingModelVisitor > ( ) ;
32+
33+ readonly IList < IMappingModelVisitor > visitors = new List < IMappingModelVisitor > ( ) ;
3334 public IConventionFinder Conventions { get ; }
3435 public bool MergeMappings { get ; set ; }
35- private IEnumerable < HibernateMapping > compiledMappings ;
36- private ValidationVisitor validationVisitor ;
36+ IEnumerable < HibernateMapping > compiledMappings ;
37+ ValidationVisitor validationVisitor ;
3738 public PairBiDirectionalManyToManySidesDelegate BiDirectionalManyToManyPairer { get ; set ; }
3839
3940 IDiagnosticMessageDispatcher diagnosticDispatcher = new DefaultDiagnosticMessageDispatcher ( ) ;
@@ -86,7 +87,7 @@ public void AddMappingsFromSource(ITypeSource source)
8687 log . LoadedFluentMappingsFromSource ( source ) ;
8788 }
8889
89- private static Assembly FindTheCallingAssembly ( )
90+ static Assembly FindTheCallingAssembly ( )
9091 {
9192 StackTrace trace = new StackTrace ( false ) ;
9293
@@ -150,7 +151,7 @@ public void Add(Type type)
150151 throw new InvalidOperationException ( "Unsupported mapping type '" + type . FullName + "'" ) ;
151152 }
152153
153- private bool IsMappingOf < T > ( Type type )
154+ bool IsMappingOf < T > ( Type type )
154155 {
155156 return ! type . IsGenericType && typeof ( T ) . IsAssignableFrom ( type ) ;
156157 }
@@ -171,7 +172,7 @@ public virtual IEnumerable<HibernateMapping> BuildMappings()
171172 return hbms ;
172173 }
173174
174- private void BuildSeparateMappings ( Action < HibernateMapping > add )
175+ void BuildSeparateMappings ( Action < HibernateMapping > add )
175176 {
176177 foreach ( var classMap in classProviders )
177178 {
@@ -190,7 +191,7 @@ private void BuildSeparateMappings(Action<HibernateMapping> add)
190191 }
191192 }
192193
193- private void BuildSingleMapping ( Action < HibernateMapping > add )
194+ void BuildSingleMapping ( Action < HibernateMapping > add )
194195 {
195196 var hbm = new HibernateMapping ( ) ;
196197
@@ -207,13 +208,13 @@ private void BuildSingleMapping(Action<HibernateMapping> add)
207208 add ( hbm ) ;
208209 }
209210
210- private void ApplyVisitors ( IEnumerable < HibernateMapping > mappings )
211+ void ApplyVisitors ( IEnumerable < HibernateMapping > mappings )
211212 {
212213 foreach ( var visitor in visitors )
213214 visitor . Visit ( mappings ) ;
214215 }
215216
216- private void EnsureMappingsBuilt ( )
217+ void EnsureMappingsBuilt ( )
217218 {
218219 if ( compiledMappings is not null ) return ;
219220
@@ -225,7 +226,7 @@ protected virtual string GetMappingFileName()
225226 return "FluentMappings.hbm.xml" ;
226227 }
227228
228- private string DetermineMappingFileName ( HibernateMapping mapping )
229+ string DetermineMappingFileName ( HibernateMapping mapping )
229230 {
230231 if ( MergeMappings )
231232 return GetMappingFileName ( ) ;
@@ -246,7 +247,7 @@ public void WriteMappingsTo(TextWriter writer)
246247 WriteMappingsTo ( _ => new XmlTextWriter ( writer ) , false ) ;
247248 }
248249
249- private void WriteMappingsTo ( Func < HibernateMapping , XmlTextWriter > writerBuilder , bool shouldDispose )
250+ void WriteMappingsTo ( Func < HibernateMapping , XmlTextWriter > writerBuilder , bool shouldDispose )
250251 {
251252 EnsureMappingsBuilt ( ) ;
252253
0 commit comments