示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LocalFileContext"/> class.
 /// </summary>
 /// <param name="provider">The provider.</param>
 /// <param name="p">The p.</param>
 private LocalFileContext(IDalObjectProvider provider, SqlLiteFactoryProvider p)
     : base(provider, new ManagersFactory(p))
 {
     _currentUser = new User {
         Login = "******"
     };
 }
示例#2
0
文件: KbContext.cs 项目: minskowl/MY
        /// <summary>
        /// Initializes the <see cref="KbContext"/> class.
        /// </summary>
        /// <param name="provider">The provider.</param>
        /// <param name="factory">The factory.</param>
        public KbContext(IDalObjectProvider provider, IManagersFactory factory)
            : base(provider)
        {
            if (provider == null)
            {
                throw new ArgumentNullException("provider");
            }
            if (factory == null)
            {
                throw new ArgumentNullException("factory");
            }

            _factory = factory;
        }
示例#3
0
 public GoogleContext(IDalObjectProvider provider)
     : base(provider, new ManagersFactory())
 {
 }
示例#4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DalContext"/> class.
 /// </summary>
 /// <param name="provider">The provider.</param>
 public DalContext(IDalObjectProvider provider)
     : base(provider)
 {
     _provider = provider;
 }