public int UpdateRecord(
T record,
RecordRestriction? restriction = null,
bool? applyRootQueryRestriction = null
)
Public Function UpdateRecord (
record As T,
Optional restriction As RecordRestriction = Nothing,
Optional applyRootQueryRestriction As Boolean? = Nothing
) As Integer
public:
int UpdateRecord(
T record,
RecordRestriction^ restriction = nullptr,
Nullable<bool> applyRootQueryRestriction = nullptr
)
function UpdateRecord(record, restriction, applyRootQueryRestriction);
Record restriction is only used for custom update expressions or in cases where modeled table has no defined primary keys.
If any of the restriction parameters reference a table field that is modeled with either an EncryptDataAttribute or FieldDataTypeAttribute, then the function GetInterpretedFieldValue(String, Object) will need to be called, replacing the target parameter with the returned value so that the field value will be properly set prior to executing the database function.