Ejemplo n.º 1
0
        /// <summary>
        /// 初始化
        /// </summary>
        public SalesService()
        {
            var dapperContext =
                new DapperDbContext(new SqlConnection(WebConfigSetting.Instance.I200DbConnectionString));

            _salesDapperRepository     = new DapperRepository <SalesInfo>(dapperContext);
            _salesListDapperRepository = new DapperRepository <SalesList>(dapperContext);
            _salesLogDapperRepository  = new DapperRepository <SaleLogInfo>(dapperContext);

            _goodsSummaryDapperRepository = new DapperRepository <GoodsInfoSummary>(dapperContext);

            _iUserTimesCardService      = new UserTimesCardService();
            _iUserStoreMoneyCardService = new UserStoreMoneyCardService();
            _iUserService = new UserService();

            _accountDapperRepository  = new DapperRepository <Entity.Model.Account.Account>(dapperContext);
            _userInfoDapperRepository = new DapperRepository <UserInfoDetail>(dapperContext);
            _userLogRepository        = new DapperRepository <UserLogInfo>(dapperContext);
        }
 public UserTimesCardController()
 {
     _userTimesCardService = new UserTimesCardService();
     _goodsService         = new GoodsService();
 }