Beispiel #1
0
        public DatabaseItemSQLite(LogManagerBase logManager, string filename)
        {
            _LogManager = logManager;

            _ConnectionString = @"Data Source=" + filename + ";Version=3;UseUTF16Encoding=True;";
            _LogManager.Info(_ConnectionString);
        }
Beispiel #2
0
        public DatabaseItemMsSql(LogManagerBase logManager)
        {
            _LogManager       = logManager;
            _ConnectionString = @"Data Source=(LocalDB)\v11.0;AttachDbFilename=" + System.IO.Path.Combine(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), "DatabaseItem.mdf") + ";Integrated Security=True";


            // Server=.\SQLExpress;AttachDbFilename=C:\MyFolder\MyDataFile.mdf;Database=dbname;Trusted_Connection=Yes;
            //Server=.\SQLExpress;AttachDbFilename=|DataDirectory|mydbfile.mdf;Database=dbname;Trusted_Connection = Yes;
        }
Beispiel #3
0
 public DatabaseCargoMsSql(LogManagerBase logManager)
 {
     _LogManager       = logManager;
     _ConnectionString = @"Data Source=(LocalDB)\v11.0;AttachDbFilename=" + System.IO.Path.Combine(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), "DatabaseCargo.mdf") + ";Integrated Security=True";
 }