コード例 #1
0
        public Database()
        {
            logger = new Log.Logger();
            string mdfPath = Path.Combine(Directory.GetCurrentDirectory(), "Database.mdf");

            con = new SqlConnection(@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=" + mdfPath + ";Integrated Security=True");
        }
コード例 #2
0
 public Server()
 {
     logger  = new Log.Logger();
     ctrl    = new Controller();
     Storage = new Models.Storage(BEGIN_MESSAGE_DELIMITER, END_MESSAGE_DELIMITER);
     SetupServer();
 }