コード例 #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);
        }
コード例 #2
0
 public PostRepo(NewsDBEntities context) : base(context)
 {
 }
コード例 #3
0
 public UserRepo(NewsDBEntities context) : base(context)
 {
 }
コード例 #4
0
 public CommentRepo(NewsDBEntities context) : base(context)
 {
 }
コード例 #5
0
 public ArticleRepo(NewsDBEntities context) : base(context)
 {
 }
コード例 #6
0
 public SourceRepo(NewsDBEntities context) : base(context)
 {
 }