示例#1
0
 public CityBAL(ICityDAL CityDalHelper)
 {
     if (this._dbCityDalHelper == null)
     {
         this._dbCityDalHelper = CityDalHelper;
     }
 }
示例#2
0
 public UserAddressManager(IUnitOfWork uow, IHttpContextAccessor httpContextAccessor, ICityDAL cityDAL, IDistrictDAL districtDAL, INeighborhoodsDAL neighborhoodsDAL, IUserAddressDAL userAddressDAL)
 {
     _uow                 = uow;
     _cityDAL             = cityDAL;
     _districtDAL         = districtDAL;
     _neighborhoodsDAL    = neighborhoodsDAL;
     _userAddressDAL      = userAddressDAL;
     _httpContextAccessor = httpContextAccessor;
 }
 public UserDetailController(IUserDAL _userDAL, IUserCardDAL _userCardDAL, IUserAddressDAL _userAddressDAL, ICityDAL _cityDAL, IDistrictDAL _districtDAL, IOrderDAL _orderDAL)
 {
     orderDAL       = _orderDAL;
     districtDAL    = _districtDAL;
     cityDAL        = _cityDAL;
     userDAL        = _userDAL;
     userCardDAL    = _userCardDAL;
     userAddressDAL = _userAddressDAL;
     currentUser    = System.Web.HttpContext.Current.Session["user"] as ETicaret.Model.Models.Entity.User;
 }
示例#4
0
 public OrderController(ICityDAL _cityDAL, IDistrictDAL _districtDAL, IOrderDAL _orderDAL, IUserDAL _userDAL, IUserTypeDAL _userTypeDAL, IProductDAL _productDAL, IUserAddressDAL _userAddressDAL, IUserCardDAL _userCardDAL, IUserDetailDAL _userDetailDAL, IBasketProductDAL _basketProductDAL)
 {
     basketProductDAL = _basketProductDAL;
     userDetailDAL    = _userDetailDAL;
     userCardDAL      = _userCardDAL;
     userAddressDAL   = _userAddressDAL;
     productDAL       = _productDAL;
     userTypeDAL      = _userTypeDAL;
     orderDAL         = _orderDAL;
     cityDAL          = _cityDAL;
     districtDAL      = _districtDAL;
     userDAL          = _userDAL;
     currentUser      = System.Web.HttpContext.Current.Session["user"] as ETicaret.Model.Models.Entity.User;
 }
示例#5
0
 /// <summary>
 /// Khởi tạo tính năng tác nghiệp (Hàm này phải được gọi nếu muốn sử dụng các tính năng của lớp)
 /// </summary>
 /// <param name="dbType"></param>
 /// <param name="connectionString"></param>
 public static void Init(DatabaseTypes dbType, string connectionString)
 {
     switch (dbType)
     {
         case DatabaseTypes.SQLServer:
             CountryDB = new DataLayers.SQLServer.CountryDAL(connectionString);
             CityDB = new DataLayers.SQLServer.CityDAL(connectionString);
             SupplierDB = new DataLayers.SQLServer.SupplierDAL(connectionString);
             CategoryDB = new DataLayers.SQLServer.CategoryDAL(connectionString);
             CustomerDB = new DataLayers.SQLServer.CustomerDAL(connectionString);
             EmployeeDB = new DataLayers.SQLServer.EmployeeDAL(connectionString);
             ShipperDB = new DataLayers.SQLServer.ShipperDAL(connectionString);
             break;
         default:
             throw new Exception("Database Type is not Supported");
     }
 }
示例#6
0
 public CityService(ICityDAL cityDAL)
 {
     _cityDAL = cityDAL;
 }
 public CountryService(ICountryDAL countryDAL, ICityDAL cityDAL, IDistrictDAL districtDAL)
 {
     _countryDAL  = countryDAL;
     _cityDAL     = cityDAL;
     _districtDAL = districtDAL;
 }
 public HomeController(ICityDAL cityDAL)
 {
     this.cityDAL = cityDAL;
 }
示例#9
0
 public CityBLL()
     : base(_Type)
 {
     this._Dal = base.CurrentDAL as ICityDAL;
 }
示例#10
0
 public CityService(ICityDAL cityDal)
 {
     _cityDal = cityDal;
 }
示例#11
0
 public CityManager(ICityDAL context)
 {
     _context = context;
 }
示例#12
0
 public CityService(ICityDAL cityDal)
 {
     this.CityDal = cityDal;
 }
 public CityController(ICityDAL dal)
 {
     this.dal = dal;
 }
 public CityManager(ICityDAL cityDal)
 {
     _cityDal = cityDal;
 }