public CityBAL(ICityDAL CityDalHelper) { if (this._dbCityDalHelper == null) { this._dbCityDalHelper = CityDalHelper; } }
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; }
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; }
/// <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"); } }
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; }
public CityBLL() : base(_Type) { this._Dal = base.CurrentDAL as ICityDAL; }
public CityService(ICityDAL cityDal) { _cityDal = cityDal; }
public CityManager(ICityDAL context) { _context = context; }
public CityService(ICityDAL cityDal) { this.CityDal = cityDal; }
public CityController(ICityDAL dal) { this.dal = dal; }
public CityManager(ICityDAL cityDal) { _cityDal = cityDal; }