public DALayer() { _pDBContext = new ParkingFeeDB(); }
public App() { AppDomain.CurrentDomain.SetData("DataDirectory", Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)); using (var context = new ParkingFeeDB()) { context.Database.Initialize(true); } }