Ok..
Let's clear it
first of all, When I create new entity and switch its IsNew property to false,What is behaver for save(Update)
i think.. it's update the record in DataBase where primary = primary value.
it's right..?!
Correct.
Second
If this entity contain more than one field that considered as primary key (composite primary key)
But in this case i change the value of one from composite primary key,false,What is behaver for save(Update)
I think you want to change the currentValue of the PK field, not the DBValue, so you should be using ForceCurrentValueWrite(), please look it up in the reference manual.
Side notes:
1- Are you sure that when you change a value of the PK fields, the resultant composite PK values will always match a record in the database?
2- Just in the case of an Update, you may use adapter.UpdateEntitiesDirectly(), to pass a filter based on which the entity should be updated, instead of using adapter.SaveEntity().