public DataContextScope Begin(IsolationLevel isolationLevel) { DataContext.OpenConnection(); DataContext.BeginTransaction(isolationLevel); return(this); }
public DataContextScope Begin(bool useTran) { DataContext.OpenConnection(); if (useTran) { DataContext.BeginTransaction(); } return(this); }