public UnitOfWork(IForumContext context, IQuestionRepository Questions, ICommentRepository Comments) { id = Guid.NewGuid(); //_context = new ForumContext(); this.Questions = Questions; this._context = context.GetForumContext(); this.Comments = Comments; }
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; }
public PostService(IForumContext context) : base(context) { }
public BaseService(IForumContext context) { Context = context; }
public CommentService(IForumContext context) : base(context) { }
public ForumContainer(IForumContext context) { this.context = context; }
public BoardController(IForumContext database) { this.database = database; }
public ThreadsController(IForumContext database) { this.database = database; }
public Repository(IForumContext context) { _context = context; }
public TopicService(IForumContext context) : base(context) { }
public QuestionRepository(IForumContext context) : base(context) { }
public CommentRepository(IForumContext context) : base(context) { }
public LoginController(IForumContext database) { this.database = database; }
public UserService(IForumContext context) : base(context) { }