If an user delete an entity, it could be add again if there is another user connected?
sorry i dont understand what you mean, but here is my senario
in master/detail (for ex, invoice/invoiceDetail) in a multi user application, suppose 2 users read the same invoce/invoiceDetail
First user, add/modify/del records from invoiceDetail and save
After that Second user jsut modify one record from InvoiceDetail and save
of couse, i can use concurrency here, but the client request to implement LAST_WRITE_WIN
for Details as whole, so there is only one solution to save the second user data and fully truncate first user data
1- delete all InvoiceDetail from db
2- save my collection
The same question with another view
Dim Person as new PersonEntity(9) ''Fetch Person with ID=9
is there any way to flag this entity as new entity so when i call Person.Save it will insert new record instead of update the current one ?
i try Person.Fields.State = EntityState.[New]
but it doesnt work
the second part of question,
suppose i do it with your way( saving dirty entities only), using SaveMulti,
if other user delete this entity from db, SaveMulti will throw ORMConcurrencyException
and faile
is there any way to tell SaveMulti to ignore delete entities , and continue save the other entities? (== Prevent SaveMulti from thorw ORMConcurrencyException)
Thanks.