Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public DbContext(DbFactoryList factoryList)
 {
     this.m_factoryList = factoryList;
 }