This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi Guys,
here is the idea: right now to update the data in database we need to perform select first var object = Entities.FindByID<TYPE>(id); ojbect.field = x; uow.SaveChanges(); question. If I need to update the specific record, and I know it's id, how can I achieve it? example var object = new Entity(); object.id = 1; object.field = x; uow.SaveChanges(); which will update the record with id=1 or is there a service method, that will allow me to do something like that? That will reduce amount of round trips to DB significantly
please let me know. |
|
|
http://www.mindscape.co.nz/products/lightspeed/Help/html/M_Mindscape_LightSpeed_IUnitOfWork_Update.htm (the example code is badly formatted in the Web help -- it's clearer in the API Reference on the Start menu) |
|
|
|
|