GetAll()
+ {
+ return _dataContext.Customer.AsQueryable();
+ }
+
+ public Customer GetSingle(P pkValue)
{
throw new NotImplementedException();
}
- public override List GetAll(string whereCondition, Dictionary parameterValues)
- {
- throw new NotImplementedException();
- }
-
- public override List GetAll()
- {
- throw new NotImplementedException();
- }
-
- public override Customer GetSingle(P pkValue)
- {
- throw new NotImplementedException();
- }
-
- public override void Update(Customer entity)
+ public void Update(Customer entity)
{
throw new NotImplementedException();
}
diff --git a/LoggingClient/LoggingClient/Repository/IRepositoryBase.cs b/LoggingClient/LoggingClient/Repository/IRepositoryBase.cs
old mode 100755
new mode 100644
diff --git a/LoggingClient/LoggingClient/Repository/LocationRepository.cs b/LoggingClient/LoggingClient/Repository/LocationRepository.cs
old mode 100755
new mode 100644
diff --git a/LoggingClient/LoggingClient/Repository/LoggingRepository.cs b/LoggingClient/LoggingClient/Repository/LoggingRepository.cs
old mode 100755
new mode 100644
diff --git a/LoggingClient/LoggingClient/Repository/RepositoryBase.cs b/LoggingClient/LoggingClient/Repository/RepositoryBase.cs
old mode 100755
new mode 100644
diff --git a/LoggingClient/LoggingClient/Validators/IntRangeValidationRule.cs b/LoggingClient/LoggingClient/Validators/IntRangeValidationRule.cs
old mode 100755
new mode 100644
diff --git a/LoggingClient/LoggingClient/Validators/StringRangeValidationRule.cs b/LoggingClient/LoggingClient/Validators/StringRangeValidationRule.cs
old mode 100755
new mode 100644
diff --git a/LoggingClient/LoggingClient/ViewModel/Commands/BaseCommand.cs b/LoggingClient/LoggingClient/ViewModel/Commands/BaseCommand.cs
old mode 100755
new mode 100644
diff --git a/LoggingClient/LoggingClient/ViewModel/Commands/RelayCommand.cs b/LoggingClient/LoggingClient/ViewModel/Commands/RelayCommand.cs
old mode 100755
new mode 100644
diff --git a/LoggingClient/LoggingClient/ViewModel/CustomerViewModel.cs b/LoggingClient/LoggingClient/ViewModel/CustomerViewModel.cs
old mode 100755
new mode 100644
index ab6255e..faf4ba0
--- a/LoggingClient/LoggingClient/ViewModel/CustomerViewModel.cs
+++ b/LoggingClient/LoggingClient/ViewModel/CustomerViewModel.cs
@@ -33,7 +33,7 @@ namespace LoggingClient.ViewModel
}
}
- public Customer NewCustomerEntry { get; set; }
+ public Customer SelectedItem { get; set; }
private long _customerId;
public long customer_id
@@ -67,14 +67,14 @@ namespace LoggingClient.ViewModel
OnPropertyChanged(nameof(LinqIsChecked));
}
}
- public Customer SelectedItem { get; set; }
+
public CustomerViewModel()
{
TxtConnectionString = "Server=localhost;Database=inventarisierungsloesung;Uid=root;Pwd=MySQLPassword1234!;";
Customers = new List();
- NewCustomerEntry = new Customer();
+
_dupChecker = new DuplicateChecker();
}
public Customer MySelectedItem { get; set; }
@@ -171,8 +171,8 @@ namespace LoggingClient.ViewModel
{
try
{
- var customerModelRepositoryLinq = new CustomerRepositoryLinq(TxtConnectionString);
- Customers = customerModelRepositoryLinq.GetAll();
+ var customerModelRepositoryLinq = new CustomerRepositoryLinq();
+ Customers = customerModelRepositoryLinq.GetAll().ToList();
}
catch (Exception ex)
{
@@ -199,7 +199,7 @@ namespace LoggingClient.ViewModel
try
{
var customerModelRepositoryEF = new CustomerRepositoryEF();
- customerModelRepositoryEF.Add(NewCustomerEntry);
+ customerModelRepositoryEF.Add(SelectedItem);
Customers = customerModelRepositoryEF.GetAll();
}
catch (Exception ex)
@@ -211,9 +211,9 @@ namespace LoggingClient.ViewModel
{
try
{
- var customerModelRepositoryLinq = new CustomerRepositoryLinq(TxtConnectionString);
- customerModelRepositoryLinq.Add(NewCustomerEntry);
- Customers = customerModelRepositoryLinq.GetAll();
+ //var customerModelRepositoryLinq = new CustomerRepositoryLinq(TxtConnectionString);
+ //customerModelRepositoryLinq.Add(NewCustomerEntry);
+ //Customers = customerModelRepositoryLinq.GetAll();
}
catch (Exception ex)
{
@@ -225,7 +225,7 @@ namespace LoggingClient.ViewModel
try
{
var customerModelRepository = new CustomerRepository(TxtConnectionString);
- customerModelRepository.Add(this.NewCustomerEntry);
+ customerModelRepository.Add(this.SelectedItem);
this.Customers = customerModelRepository.GetAll().ToList();
}
catch (Exception ex)
@@ -253,9 +253,9 @@ namespace LoggingClient.ViewModel
{
try
{
- var customerModelRepositoryLinq = new CustomerRepositoryLinq(TxtConnectionString);
+ var customerModelRepositoryLinq = new CustomerRepositoryLinq();
customerModelRepositoryLinq.Delete(MySelectedItem);
- Customers = customerModelRepositoryLinq.GetAll();
+ Customers = customerModelRepositoryLinq.GetAll().ToList();
}
catch (Exception ex)
{
@@ -267,7 +267,7 @@ namespace LoggingClient.ViewModel
try
{
var customerModelRepository = new CustomerRepository(TxtConnectionString);
- customerModelRepository.Delete(this.NewCustomerEntry);
+ customerModelRepository.Delete(this.SelectedItem);
this.Customers = customerModelRepository.GetAll().ToList();
}
catch (Exception ex)
@@ -306,7 +306,7 @@ namespace LoggingClient.ViewModel
try
{
var customerModelRepository = new CustomerRepository(TxtConnectionString);
- customerModelRepository.Update(this.NewCustomerEntry);
+ customerModelRepository.Update(this.SelectedItem);
this.Customers = customerModelRepository.GetAll().ToList();
}
catch (Exception ex)
diff --git a/LoggingClient/LoggingClient/ViewModel/LocationTreeBuilder.cs b/LoggingClient/LoggingClient/ViewModel/LocationTreeBuilder.cs
old mode 100755
new mode 100644
diff --git a/LoggingClient/LoggingClient/ViewModel/LocationViewModel.cs b/LoggingClient/LoggingClient/ViewModel/LocationViewModel.cs
old mode 100755
new mode 100644
index d542656..870f35a
--- a/LoggingClient/LoggingClient/ViewModel/LocationViewModel.cs
+++ b/LoggingClient/LoggingClient/ViewModel/LocationViewModel.cs
@@ -29,15 +29,13 @@ namespace LoggingClient.ViewModel
}
}
private List _locations;
- public Location NewLocationModelEntry { get; set; }
+ public Location SelectedItem { get; set; }
public List> LocationTree { get; set; }
public LocationViewModel()
{
TxtConnectionString = "Server=localhost;Database=inventarisierungsloesung;Uid=root;Pwd=MySQLPassword1234!;";
Locations = new List();
- NewLocationModelEntry = new Location();
-
}
public Location MySelectedItem { get; set; }
public event PropertyChangedEventHandler PropertyChanged;
@@ -126,7 +124,7 @@ namespace LoggingClient.ViewModel
try
{
var locationModelRepository = new LocationRepository(TxtConnectionString);
- locationModelRepository.Add(this.NewLocationModelEntry);
+ locationModelRepository.Add(SelectedItem);
this.Locations = locationModelRepository.GetAll();
}
catch (Exception ex)
@@ -139,7 +137,7 @@ namespace LoggingClient.ViewModel
try
{
var locationModelRepository = new LocationRepository(TxtConnectionString);
- locationModelRepository.Delete(this.NewLocationModelEntry);
+ locationModelRepository.Delete(SelectedItem);
this.Locations = locationModelRepository.GetAll();
}
catch (Exception ex)
@@ -152,7 +150,7 @@ namespace LoggingClient.ViewModel
try
{
var locationModelRepository = new LocationRepository(TxtConnectionString);
- locationModelRepository.Update(this.NewLocationModelEntry);
+ locationModelRepository.Update(SelectedItem);
this.Locations = locationModelRepository.GetAll();
}
catch (Exception ex)
diff --git a/LoggingClient/LoggingClient/ViewModel/LogViewModel.cs b/LoggingClient/LoggingClient/ViewModel/LogViewModel.cs
old mode 100755
new mode 100644
diff --git a/LoggingClient/LoggingClient/ViewModel/NavigationViewModel.cs b/LoggingClient/LoggingClient/ViewModel/NavigationViewModel.cs
old mode 100755
new mode 100644
diff --git a/LoggingClient/LoggingClient/Views/CustomerView.xaml b/LoggingClient/LoggingClient/Views/CustomerView.xaml
old mode 100755
new mode 100644
index dfc9405..1fc9687
--- a/LoggingClient/LoggingClient/Views/CustomerView.xaml
+++ b/LoggingClient/LoggingClient/Views/CustomerView.xaml
@@ -15,7 +15,7 @@
-
+
@@ -35,7 +35,7 @@
-
+
-
+
-
+
-
+
-
+
@@ -97,7 +97,7 @@
-
+
-
+
-
+
-
+
@@ -34,7 +34,7 @@
-
+
-
+
-
+
-
+
-
+
\ No newline at end of file
diff --git a/LoggingClient/LoggingClient/Views/LocationView.xaml.cs b/LoggingClient/LoggingClient/Views/LocationView.xaml.cs
old mode 100755
new mode 100644
diff --git a/LoggingClient/LoggingClient/Views/LogView.xaml b/LoggingClient/LoggingClient/Views/LogView.xaml
old mode 100755
new mode 100644
diff --git a/LoggingClient/LoggingClient/Views/LogView.xaml.cs b/LoggingClient/LoggingClient/Views/LogView.xaml.cs
old mode 100755
new mode 100644
diff --git a/LoggingClient/LoggingClient/packages.config b/LoggingClient/LoggingClient/packages.config
old mode 100755
new mode 100644