Beispiel #1
0
 public void Dispose()
 {
     if (DataContext != null)
     {
         DataContext.Dispose();
         DataContext = null;
     }
 }
Beispiel #2
0
        private static DashboardDbContext CreateDataContext()
        {
            var dbc = new DashboardDbContext();

            return(dbc);
        }
Beispiel #3
0
 /// <summary>
 /// RyanDing.
 ///
 /// Pass an existing datacontext and reuse it.
 /// </summary>
 protected DBBase(DashboardDbContext dbc)
 {
     this._dbc = dbc;
 }