コード例 #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
ファイル: ServiceLayer.cs プロジェクト: N90K/TNBase
        /// <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
ファイル: BusinessLogicLayer.cs プロジェクト: Nohovich/SOLID
 public BusinessLogicLayer(IRepositoryLayer repositoryLayer)
 {
     DAL = repositoryLayer;
 }
コード例 #6
0
 public BusinessLogicLayerDIP(IRepositoryLayer layer)
 {
     repositoryLayer = layer;
 }
コード例 #7
0
 public SupplierController(IRepositoryLayer _repositoryLayer)
 {
     repositoryLayer = _repositoryLayer;
 }
コード例 #8
0
 public ServiceLayer(IRepositoryLayer repositoryLayer)
 {
     DAL = repositoryLayer;
 }
コード例 #9
0
ファイル: Program.cs プロジェクト: rajubabub84/DotNetPractice
 // private readonly DataAccessLayer DAL;
 public BusinessLogicLayer(IRepositoryLayer repositoryLayer)
 {
     DAL = repositoryLayer;
     // DAL = new DataAccessLayer();
 }
コード例 #10
0
 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
ファイル: Solution.cs プロジェクト: thiago-vivas/Articles
 public BusinessLayer(IRepositoryLayer repositoryLayer)
 {
     this.repositoryLayer = repositoryLayer;
 }