Implementation of IModelContextProvider that initializes a thread or web-request scoped ModelContext subclass, and allows subclasses to perform additional initialization work when new contexts are created.
Inheritance: IModelContextProvider
Esempio n. 1
0
 /// <summary>
 /// Creates a new <see cref="CreateContextEventArgs"/> which allows
 /// event subscribers to create a new <see cref="ModelContext"/>.
 /// </summary>
 /// <param name="provider"></param>
 public CreateContextEventArgs(ModelContextProvider provider)
 {
     this.provider = provider;
 }
Esempio n. 2
0
 /// <summary>
 /// Creates a new <see cref="CreateContextEventArgs"/> which allows
 /// event subscribers to create a new <see cref="ModelContext"/>.
 /// </summary>
 /// <param name="provider"></param>
 public CreateContextEventArgs(ModelContextProvider provider)
 {
     this.provider = provider;
 }