public FxDbConnection(string name, DbFactoryList factories) { this.m_name = name; this.m_factoryList = factories; Task.Run(this.Run).ContinueWith(t => { Debug.WriteLine("^1Database error: ^7\n" + t.Exception.InnerExceptions.FirstOrDefault()?.Message ?? "NULL"); }, TaskContinuationOptions.OnlyOnFaulted); }
public DbContext(DbFactoryList factoryList) { this.m_factoryList = factoryList; }