コード例 #1
0
        public HomeController(MysqlContext context, INormalCommentService normalCommentService)
        {
            //var options = new DbContextOptions<MysqlContext>();

            //this._context = new MysqlContext(options);
            this._context              = context;
            this._customerRepository   = new EfRepository <Customer>(this._context);
            this._normalCommentService = normalCommentService;
        }
コード例 #2
0
 public CommentListViewComponent(INormalCommentService normalCommentService)
 {
     this._normalCommentService = normalCommentService;
 }
コード例 #3
0
 public CommentController(INormalCommentService normalCommentService, IPostTokenManagerService postTokenManagerService)
 {
     this._normalCommentService    = normalCommentService;
     this._postTokenManagerService = postTokenManagerService;
 }