Example #1
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="EntityContext" /> class.
 /// </summary>
 /// <param name="factoryContext">
 ///     The factory context.
 /// </param>
 /// <param name="bindingContext">
 ///     The binding context.
 /// </param>
 internal EntityContext(FactoryContext factoryContext, BindingContext bindingContext)
     : base(bindingContext)
 {
     this.factoryContext = factoryContext;
     this.configuration  = new PersistenceConfiguration(factoryContext.Configuration, this);
 }
Example #2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="EntityBindingContext" /> class.
 /// </summary>
 /// <param name="bindingContext">
 ///     The binding context.
 /// </param>
 internal EntityBindingContext(BindingContext bindingContext)
     : base(bindingContext)
 {
 }
Example #3
0
 /// <summary>
 ///     Create a new entity manager using the binding context specified.
 /// </summary>
 /// <param name="bindingContext">
 ///     The binding context.
 /// </param>
 /// <returns>
 ///     The newly created entity manager.
 /// </returns>
 public EntityManager CreateEntityManager(BindingContext bindingContext)
 {
     this.ThrowIfDisposed();
     return(new EntityManager(this.factoryContext, bindingContext));
 }