private DataContextScope(string connectionName) { DataContext = new DataContext(connectionName); }
public DataContextScope Begin() { DataContext.OpenConnection(); return(this); }
public void Dispose() { DataContext.Dispose(); }