protected override void OnPrepare() { base.OnPrepare(); this.Application = this.GetRootElement <IApplicationFrame>(); this.ClientLayer = this.Application.ClientLayer; this.RepositoryLayer = this.Application.RepositoryLayer; }
/// <summary> /// Constructor /// </summary> public ServiceLayer(string databasePath, IRepositoryLayer rLayerParam = null) { // Open the connection connection = new SQLiteConnection(DBUtils.GenConnectionString(databasePath)); connection.Open(); // Create the repo layer repoLayer = (rLayerParam == null ? new RepositoryLayer() : rLayerParam); }
public void Setup() { repoLayer = new RepositoryLayer(); serviceLayer = new ServiceLayer("Listeners.s3db", repoLayer); // Insert some data. repoLayer.ClearAllData(serviceLayer.GetConnection()); InsertListeners(); InsertCollectors(); InsertWeeklyStats(); InsertYearStats(); }
public BusinessLogicLayer(Object details, DataAccesLayer dal) { DAL = dal; DAL.Save(details); }
public BusinessLogicLayer(IRepositoryLayer repositoryLayer) { DAL = repositoryLayer; }
public BusinessLogicLayerDIP(IRepositoryLayer layer) { repositoryLayer = layer; }
public SupplierController(IRepositoryLayer _repositoryLayer) { repositoryLayer = _repositoryLayer; }
public ServiceLayer(IRepositoryLayer repositoryLayer) { DAL = repositoryLayer; }
// private readonly DataAccessLayer DAL; public BusinessLogicLayer(IRepositoryLayer repositoryLayer) { DAL = repositoryLayer; // DAL = new DataAccessLayer(); }
public CustomerController(IRepositoryLayer _repositoryLayer) { repositoryLayer = _repositoryLayer; }
public ProductController(IRepositoryLayer _repositoryLayer) { repositoryLayer = _repositoryLayer; }
public DepartmentController(IRepositoryLayer _repositoryLayer) { repositoryLayer = _repositoryLayer; }
public BusinessLogicLayer(IRepositoryLayer dal) { _dal = dal; }
public RssController(IRepositoryLayer repositoryLayer) { _repositoryLayer = repositoryLayer; }
public BusinessLayer(IRepositoryLayer repositoryLayer) { this.repositoryLayer = repositoryLayer; }