/// <summary> /// andmebaasi ühenduse loomine /// </summary> /// <returns>tagastab ühenduse</returns> public static DBA.LINQtoSQLclassesDataContext getDataContext() { if (_dataContext == null) { _dataContext = new DBA.LINQtoSQLclassesDataContext(); } return _dataContext; }
public UserVM(DBA.LINQtoSQLclassesDataContext dataContext) { _dataContext = dataContext; }
//konstruktor, mis kasutab DataContextFactory klassi objekti initsieerimist public UserVM() { _dataContext = DataContextFactory.getDataContext(); }
public DatabaseHelper() { _dataContext = new DBA.LINQtoSQLclassesDataContext(); }
public MoviesVM(DBA.LINQtoSQLclassesDataContext dataContext) { _dataContext = dataContext; }
public RentalsVM() { _dataContext = DataContextFactory.getDataContext(); }
public RentalsVM(DBA.LINQtoSQLclassesDataContext dataContext) { _dataContext = dataContext; }
public MoviesVM() { _dataContext = DataContextFactory.getDataContext(); }