public DatabaseItemSQLite(LogManagerBase logManager, string filename) { _LogManager = logManager; _ConnectionString = @"Data Source=" + filename + ";Version=3;UseUTF16Encoding=True;"; _LogManager.Info(_ConnectionString); }
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; }
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"; }