Beispiel #1
0
 public UnitOfWork(IForumContext context, IQuestionRepository Questions, ICommentRepository Comments)
 {
     id = Guid.NewGuid();
     //_context = new ForumContext();
     this.Questions = Questions;
     this._context  = context.GetForumContext();
     this.Comments  = Comments;
 }
Beispiel #2
0
 public ForumRepo(Context contextType)
 {
     if (contextType == Context.Mssql)
     {
         iContext = new ForumSqlContext();
     }
     else if (contextType == Context.Memory)
     {
         //iContext = MemoryContext;
     }
 }
 public Forumrepository(IForumContext context)
 {
     this.context = context;
 }
 public UsersController(IForumContext database)
 {
     this.database = database;
 }
Beispiel #5
0
 public PostService(IForumContext context) : base(context)
 {
 }
Beispiel #6
0
 public BaseService(IForumContext context)
 {
     Context = context;
 }
 public CommentService(IForumContext context) : base(context)
 {
 }
Beispiel #8
0
 public ForumContainer(IForumContext context)
 {
     this.context = context;
 }
 public BoardController(IForumContext database)
 {
     this.database = database;
 }
Beispiel #10
0
 public ThreadsController(IForumContext database)
 {
     this.database = database;
 }
Beispiel #11
0
 public Repository(IForumContext context)
 {
     _context = context;
 }
Beispiel #12
0
 public TopicService(IForumContext context) : base(context)
 {
 }
Beispiel #13
0
 public QuestionRepository(IForumContext context)
     : base(context)
 {
 }
Beispiel #14
0
 public CommentRepository(IForumContext context) : base(context)
 {
 }
Beispiel #15
0
 public LoginController(IForumContext database)
 {
     this.database = database;
 }
Beispiel #16
0
 public UserService(IForumContext context) : base(context)
 {
 }