Exemple #1
0
 /// <summary>
 /// Creates a new context using the session and metadata from the sourceContext
 /// </summary>
 /// <param name="sourceContext">source of the Session and metadata used by this new context.</param>
 public NHContext(NHContext sourceContext)
 {
     this.session   = sourceContext.Session;
     this._metadata = sourceContext.GetMetadata();
 }
Exemple #2
0
 /// <summary>
 /// Creates a new context using the session and metadata from the sourceContext
 /// </summary>
 /// <param name="sourceContext">source of the Session and metadata used by this new context.</param>
 public NHContext(NHContext sourceContext)
 {
     this.session            = sourceContext.Session;
     this.breezeConfigurator = sourceContext.breezeConfigurator;
     this._metadata          = sourceContext.GetMetadata();
 }