/// <summary>
 /// Initializes a new instance of the <see cref="MappingEngine"/> class
 /// </summary>
 /// <param name="rootConfig">The root configuration</param>
 /// <param name="nhConfig">The current NH configuration</param>
 /// <param name="modelMapper">The model mapper</param>
 public MappingEngine(FirehawkConfig rootConfig, Configuration nhConfig, ConventionModelMapper modelMapper)
 {
     this.rootConfig = rootConfig;
     this.nhConfig = nhConfig;
     this.modelMapper = modelMapper;
     this.namingEngine = new NamingEngine(rootConfig.NamingConventionsConfig);
 }
Exemple #2
0
 /// <summary>
 /// Initializes the extension instance with the provided values
 /// </summary>
 /// <param name="nhConfig">The current Nhibernate configuration</param>
 /// <param name="modelMapper">An instance of the current model mapper</param>
 /// <param name="namingConventions">The naming conventions settings</param>
 /// <param name="namingEngine">The naming engine</param>
 internal void Init(Configuration nhConfig, ModelMapper modelMapper, NamingConventionsSettings namingConventions, INamingEngine namingEngine)
 {
     this.NhConfiguration   = nhConfig;
     this.ModelMapper       = modelMapper;
     this.NamingConventions = namingConventions;
     this.NamingEngine      = namingEngine;
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MappingEngine"/> class
 /// </summary>
 /// <param name="rootConfig">The root configuration</param>
 /// <param name="nhConfig">The current NH configuration</param>
 /// <param name="modelMapper">The model mapper</param>
 public MappingEngine(ConventionMapConfig rootConfig, Configuration nhConfig, ConventionModelMapper modelMapper)
 {
     this.rootConfig   = rootConfig;
     this.nhConfig     = nhConfig;
     this.modelMapper  = modelMapper;
     this.namingEngine = new NamingEngine(rootConfig.NamingConventionsConfig);
 }
 /// <summary>
 /// Initializes the extension instance with the provided values
 /// </summary>
 /// <param name="nhConfig">The current Nhibernate configuration</param>
 /// <param name="modelMapper">An instance of the current model mapper</param>
 /// <param name="namingConventions">The naming conventions settings</param>
 /// <param name="namingEngine">The naming engine</param>
 internal void Init(Configuration nhConfig, ModelMapper modelMapper, NamingConventionsSettings namingConventions, INamingEngine namingEngine)
 {
     this.NhConfiguration = nhConfig;
     this.ModelMapper = modelMapper;
     this.NamingConventions = namingConventions;
     this.NamingEngine = namingEngine;
 }