Beispiel #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_context != null)
         {
             _context.Dispose();
             _context = null;
         }
     }
 }
Beispiel #2
0
        private DatabaseLists()
        {
            _investorContext = new InvestorContext();

            try
            {
                Deals       = new ObservableCollection <Deal>(_investorContext.Deals.ToList());
                Clients     = new ObservableCollection <Client>(_investorContext.Clients.ToList());
                DealClients = new ObservableCollection <DealClient>(_investorContext.DealClients.ToList());
            }
            catch
            {
                //todo: logger
                Deals       = new ObservableCollection <Deal>();
                Clients     = new ObservableCollection <Client>();
                DealClients = new ObservableCollection <DealClient>();
            }
        }
Beispiel #3
0
 public PostsController(InvestorContext context)
 {
     _context = context;
 }
Beispiel #4
0
 public LoginController(InvestorContext context)
 {
     _context = context;
 }
 public ProfileController(InvestorContext context)
 {
     _context = context;
 }
Beispiel #6
0
 public AuthenticationRepository()
 {
     _repository = new InvestorContext();
 }
Beispiel #7
0
 public InvestorLinkServices(InvestorContext context)
 {
     _context = context;
 }
Beispiel #8
0
 public DealClientImpl(InvestorContext context)
 {
     _context = context;
 }
 public InvestmentRepository()
 {
     _db = new InvestorContext();
 }
Beispiel #10
0
 public CompanyRepository()
 {
     _db = new InvestorContext();
 }
Beispiel #11
0
 public DealImpl(InvestorContext context)
 {
     _context = context;
 }
Beispiel #12
0
 public CountriesController(InvestorContext context)
 {
     _context = context;
 }
 public InvestorLinkController(InvestorContext context, IInvestorLink investorLinkInject)
 {
     _context      = context;
     _investorLink = investorLinkInject;
 }