GetAll()
{
- return _dataContext.Customer.AsQueryable();
+ using (var context = new inventarisierungsloesungEntities())
+ {
+ return context.Customer.AsQueryable();
+ }
}
public Customer GetSingle(P pkValue)
@@ -64,5 +81,10 @@ namespace LoggingClient.Repository
{
throw new NotImplementedException();
}
+
+ List IRepositoryBase.GetAll()
+ {
+ throw new NotImplementedException();
+ }
}
}
diff --git a/LoggingClient/LoggingClient/Repository/LocationRepository.cs b/LoggingClient/LoggingClient/Repository/LocationRepository.cs
index 7d153d1..55f1635 100644
--- a/LoggingClient/LoggingClient/Repository/LocationRepository.cs
+++ b/LoggingClient/LoggingClient/Repository/LocationRepository.cs
@@ -23,7 +23,6 @@ namespace LoggingClient.Repository
{
try
{
- location.AddressId = 2;
using (var conn = new MySqlConnection(ConnectionString))
{
conn.Open();
diff --git a/LoggingClient/LoggingClient/ViewModel/CustomerViewModel.cs b/LoggingClient/LoggingClient/ViewModel/CustomerViewModel.cs
index faf4ba0..2f85bb2 100644
--- a/LoggingClient/LoggingClient/ViewModel/CustomerViewModel.cs
+++ b/LoggingClient/LoggingClient/ViewModel/CustomerViewModel.cs
@@ -199,7 +199,7 @@ namespace LoggingClient.ViewModel
try
{
var customerModelRepositoryEF = new CustomerRepositoryEF();
- customerModelRepositoryEF.Add(SelectedItem);
+ customerModelRepositoryEF.Add(MySelectedItem);
Customers = customerModelRepositoryEF.GetAll();
}
catch (Exception ex)
diff --git a/dbTestat/ERM.pdf b/dbTestat/ERM.pdf
old mode 100755
new mode 100644
diff --git a/dbTestat/inventarisierungsloesung.bak b/dbTestat/inventarisierungsloesung.bak
old mode 100755
new mode 100644