/// <summary>
 /// Constructor
 /// </summary>
 /// <param name="entityInjector">Provide a IEntityInjector implementation to support dependency injection</param>
 public BytecodeProvider(IEntityInjector entityInjector)
 {
     if (entityInjector == null)
     {
         throw new ArgumentNullException("entityInjector");
     }
     EntityInjector = entityInjector;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Plugs the bytecode provider into NHibernate
 /// </summary>
 /// <param name="injector">IEntityInjector implementation for dependency injection with NHibernate</param>
 public static void RegisterBytecodeProvider(IEntityInjector injector)
 {
     Cfg.Environment.BytecodeProvider = new BytecodeProvider(injector);
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="entityInjector">Provide a IEntityInjector implementation to support dependency injection</param>
 public BytecodeProvider(IEntityInjector entityInjector)
 {
     if (entityInjector == null) throw new ArgumentNullException("entityInjector");
     EntityInjector = entityInjector;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 public BytecodeProvider()
 {
     EntityInjector = new DefaultEntityInjector();
 }
 /// <summary>
 /// Constructor
 /// </summary>
 public BytecodeProvider()
 {
     EntityInjector = new DefaultEntityInjector();
 }