@@ -29,11 +29,12 @@ public class PersistenceModel
29
29
{
30
30
new ComponentMapComponentReferenceResolver ( )
31
31
} ;
32
- private readonly IList < IMappingModelVisitor > visitors = new List < IMappingModelVisitor > ( ) ;
32
+
33
+ readonly IList < IMappingModelVisitor > visitors = new List < IMappingModelVisitor > ( ) ;
33
34
public IConventionFinder Conventions { get ; }
34
35
public bool MergeMappings { get ; set ; }
35
- private IEnumerable < HibernateMapping > compiledMappings ;
36
- private ValidationVisitor validationVisitor ;
36
+ IEnumerable < HibernateMapping > compiledMappings ;
37
+ ValidationVisitor validationVisitor ;
37
38
public PairBiDirectionalManyToManySidesDelegate BiDirectionalManyToManyPairer { get ; set ; }
38
39
39
40
IDiagnosticMessageDispatcher diagnosticDispatcher = new DefaultDiagnosticMessageDispatcher ( ) ;
@@ -86,7 +87,7 @@ public void AddMappingsFromSource(ITypeSource source)
86
87
log . LoadedFluentMappingsFromSource ( source ) ;
87
88
}
88
89
89
- private static Assembly FindTheCallingAssembly ( )
90
+ static Assembly FindTheCallingAssembly ( )
90
91
{
91
92
StackTrace trace = new StackTrace ( false ) ;
92
93
@@ -150,7 +151,7 @@ public void Add(Type type)
150
151
throw new InvalidOperationException ( "Unsupported mapping type '" + type . FullName + "'" ) ;
151
152
}
152
153
153
- private bool IsMappingOf < T > ( Type type )
154
+ bool IsMappingOf < T > ( Type type )
154
155
{
155
156
return ! type . IsGenericType && typeof ( T ) . IsAssignableFrom ( type ) ;
156
157
}
@@ -171,7 +172,7 @@ public virtual IEnumerable<HibernateMapping> BuildMappings()
171
172
return hbms ;
172
173
}
173
174
174
- private void BuildSeparateMappings ( Action < HibernateMapping > add )
175
+ void BuildSeparateMappings ( Action < HibernateMapping > add )
175
176
{
176
177
foreach ( var classMap in classProviders )
177
178
{
@@ -190,7 +191,7 @@ private void BuildSeparateMappings(Action<HibernateMapping> add)
190
191
}
191
192
}
192
193
193
- private void BuildSingleMapping ( Action < HibernateMapping > add )
194
+ void BuildSingleMapping ( Action < HibernateMapping > add )
194
195
{
195
196
var hbm = new HibernateMapping ( ) ;
196
197
@@ -207,13 +208,13 @@ private void BuildSingleMapping(Action<HibernateMapping> add)
207
208
add ( hbm ) ;
208
209
}
209
210
210
- private void ApplyVisitors ( IEnumerable < HibernateMapping > mappings )
211
+ void ApplyVisitors ( IEnumerable < HibernateMapping > mappings )
211
212
{
212
213
foreach ( var visitor in visitors )
213
214
visitor . Visit ( mappings ) ;
214
215
}
215
216
216
- private void EnsureMappingsBuilt ( )
217
+ void EnsureMappingsBuilt ( )
217
218
{
218
219
if ( compiledMappings is not null ) return ;
219
220
@@ -225,7 +226,7 @@ protected virtual string GetMappingFileName()
225
226
return "FluentMappings.hbm.xml" ;
226
227
}
227
228
228
- private string DetermineMappingFileName ( HibernateMapping mapping )
229
+ string DetermineMappingFileName ( HibernateMapping mapping )
229
230
{
230
231
if ( MergeMappings )
231
232
return GetMappingFileName ( ) ;
@@ -246,7 +247,7 @@ public void WriteMappingsTo(TextWriter writer)
246
247
WriteMappingsTo ( _ => new XmlTextWriter ( writer ) , false ) ;
247
248
}
248
249
249
- private void WriteMappingsTo ( Func < HibernateMapping , XmlTextWriter > writerBuilder , bool shouldDispose )
250
+ void WriteMappingsTo ( Func < HibernateMapping , XmlTextWriter > writerBuilder , bool shouldDispose )
250
251
{
251
252
EnsureMappingsBuilt ( ) ;
252
253
0 commit comments