(P pkValue)
@@ -79,7 +79,22 @@ namespace LoggingClient.Repository
public void Update(Customer entity)
{
- throw new NotImplementedException();
+ using (var context = new inventarisierungsloesungEntities())
+ {
+ var x = (from c in context.Customer
+ where (c.customer_id == entity.customer_id)
+ select c).SingleOrDefault();
+
+ x.firstname = entity.firstname;
+ x.lastname = entity.lastname;
+ x.customernumber = entity.customernumber;
+ x.kundenkonto_fk = entity.kundenkonto_fk;
+ x.tel = entity.tel;
+ x.email = entity.email;
+ x.url = entity.url;
+ x.password = entity.password;
+ context.SaveChanges();
+ }
}
List