Exemplo n.º 1
0
        public UnitOfWork(NewsDBEntities newsDB)
        {
            context = newsDB;

            ArticleR = new ArticleRepo(newsDB);
            PostR    = new PostRepo(newsDB);
            CommentR = new CommentRepo(newsDB);
            SourceR  = new SourceRepo(newsDB);
            UserR    = new UserRepo(newsDB);
            //UserTypeR = new UserTypeRepo(newsDB);
        }
 public PostRepo(NewsDBEntities context) : base(context)
 {
 }
 public UserRepo(NewsDBEntities context) : base(context)
 {
 }
 public CommentRepo(NewsDBEntities context) : base(context)
 {
 }
 public ArticleRepo(NewsDBEntities context) : base(context)
 {
 }
Exemplo n.º 6
0
 public SourceRepo(NewsDBEntities context) : base(context)
 {
 }