diff --git a/LoggingClient/LoggingClient/Repository/LocationRepository.cs b/LoggingClient/LoggingClient/Repository/LocationRepository.cs index 55f1635..7d153d1 100755 --- a/LoggingClient/LoggingClient/Repository/LocationRepository.cs +++ b/LoggingClient/LoggingClient/Repository/LocationRepository.cs @@ -23,6 +23,7 @@ namespace LoggingClient.Repository { try { + location.AddressId = 2; using (var conn = new MySqlConnection(ConnectionString)) { conn.Open(); diff --git a/LoggingClient/LoggingClient/ViewModel/LocationViewModel.cs b/LoggingClient/LoggingClient/ViewModel/LocationViewModel.cs index 651e990..d542656 100755 --- a/LoggingClient/LoggingClient/ViewModel/LocationViewModel.cs +++ b/LoggingClient/LoggingClient/ViewModel/LocationViewModel.cs @@ -34,7 +34,7 @@ namespace LoggingClient.ViewModel public LocationViewModel() { - TxtConnectionString = "Server=localhost;Database=;Uid=root;Pwd=;"; + TxtConnectionString = "Server=localhost;Database=inventarisierungsloesung;Uid=root;Pwd=MySQLPassword1234!;"; Locations = new List(); NewLocationModelEntry = new Location(); diff --git a/LoggingClient/LoggingClient/ViewModel/LogViewModel.cs b/LoggingClient/LoggingClient/ViewModel/LogViewModel.cs index a65945c..baf41f4 100755 --- a/LoggingClient/LoggingClient/ViewModel/LogViewModel.cs +++ b/LoggingClient/LoggingClient/ViewModel/LogViewModel.cs @@ -39,7 +39,7 @@ namespace LoggingClient.ViewModel public LogViewModel() { - TxtConnectionString = "Server=localhost;Database=;Uid=root;Pwd=;"; + TxtConnectionString = "Server=localhost;Database=inventarisierungsloesung;Uid=root;Pwd=MySQLPassword1234!;"; Logs = new List(); NewLogModelEntry = new Logging(); diff --git a/LoggingClient/LoggingClient/Views/LocationView.xaml b/LoggingClient/LoggingClient/Views/LocationView.xaml index daa3f8b..8004178 100755 --- a/LoggingClient/LoggingClient/Views/LocationView.xaml +++ b/LoggingClient/LoggingClient/Views/LocationView.xaml @@ -34,8 +34,7 @@ - - -