示例#1
0
        public Service1()
        {
            mMP = new DBAL.MemoryPersistence(@"C:\__debug.txt");
            mMP.LoadFromFile();

            var daoFactory = new DBAL.DAOFactory(mMP);

            mDAO = daoFactory.GetTransactionDAO();
            iDAO = daoFactory.GetInvestorDAO();
            bDAO = daoFactory.GetBrockerDAO();

            Refresh();
        }
示例#2
0
 public BrockerDAO(MemoryPersistence mp)
 {
     mMP = mp;
 }
示例#3
0
 public DAOFactory(MemoryPersistence mp)
 {
     mMP = mp;
 }
示例#4
0
 public InvestorDAO(MemoryPersistence mp)
 {
     mMP = mp;
 }
示例#5
0
 public TransactionDAO(MemoryPersistence mp)
 {
     mMP = mp;
 }