-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: update a user like this?
PostPosted: Sat Aug 01, 2009 10:08 am 
Newbie

Joined: Tue Nov 18, 2008 11:16 am
Posts: 19
hi. im coding with asp.net, i got a Customer and Customer got a
IList.. now when i add a new Customer and CustomerUser i do like this.

Code:
var customer = new Customer { Name = txtCustomerName.Text, OrgNumber =
txtOrgNumber.Text };

var customerUser = new CustomerUser { Email =
txtUserMail.Text, Password = password.Sha1() };

customer.CustomerUsers.Add(customerUser);

objectFactory.GetInstance<ICustomerService>().SaveOrUpdate(customer);



Now i want to update the customerUser but how should i do that?

what im after is that could i get the customer and through the customer i
update the customerUser and save the customer. how should i do that?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.