示例#1
0
 protected override void OnPrepare()
 {
     base.OnPrepare();
     this.Application     = this.GetRootElement <IApplicationFrame>();
     this.ClientLayer     = this.Application.ClientLayer;
     this.RepositoryLayer = this.Application.RepositoryLayer;
 }
示例#2
0
        /// <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);
        }
示例#3
0
        public void Setup()
        {
            repoLayer    = new RepositoryLayer();
            serviceLayer = new ServiceLayer("Listeners.s3db", repoLayer);

            // Insert some data.
            repoLayer.ClearAllData(serviceLayer.GetConnection());
            InsertListeners();
            InsertCollectors();
            InsertWeeklyStats();
            InsertYearStats();
        }
示例#4
0
 public BusinessLogicLayer(Object details, DataAccesLayer dal)
 {
     DAL = dal;
     DAL.Save(details);
 }
示例#5
0
 public BusinessLogicLayer(IRepositoryLayer repositoryLayer)
 {
     DAL = repositoryLayer;
 }
 public BusinessLogicLayerDIP(IRepositoryLayer layer)
 {
     repositoryLayer = layer;
 }
示例#7
0
 public SupplierController(IRepositoryLayer _repositoryLayer)
 {
     repositoryLayer = _repositoryLayer;
 }
示例#8
0
 public ServiceLayer(IRepositoryLayer repositoryLayer)
 {
     DAL = repositoryLayer;
 }
示例#9
0
 // private readonly DataAccessLayer DAL;
 public BusinessLogicLayer(IRepositoryLayer repositoryLayer)
 {
     DAL = repositoryLayer;
     // DAL = new DataAccessLayer();
 }
 public CustomerController(IRepositoryLayer _repositoryLayer)
 {
     repositoryLayer = _repositoryLayer;
 }
示例#11
0
 public ProductController(IRepositoryLayer _repositoryLayer)
 {
     repositoryLayer = _repositoryLayer;
 }
示例#12
0
 public DepartmentController(IRepositoryLayer _repositoryLayer)
 {
     repositoryLayer = _repositoryLayer;
 }
示例#13
0
 public BusinessLogicLayer(IRepositoryLayer dal)
 {
     _dal = dal;
 }
示例#14
0
 public RssController(IRepositoryLayer repositoryLayer)
 {
     _repositoryLayer = repositoryLayer;
 }
示例#15
0
 public BusinessLayer(IRepositoryLayer repositoryLayer)
 {
     this.repositoryLayer = repositoryLayer;
 }