Пример #1
0
 public SmRoleProvider()
 {
     this._dbContext       = new SmDbContext();
     this._userService     = new SmUserService <SmUser>(this._dbContext);
     this._roleService     = new SmRoleService <SmRole>(this._dbContext);
     this._userRoleService = new SmUserRoleService <SmUserRole>(this._dbContext);
 }
Пример #2
0
 public SmRoleProvider()
 {
     this._dbContext = new MyDBContext();
     this._userService = new SmUserService<SmUser>(this._dbContext);
     this._roleService = new SmRoleService<SmRole>(this._dbContext);
     this._userRoleService = new SmUserRoleService<SmUserRole>(this._dbContext);
 }