[This is preliminary documentation and is subject to change.]
Tries to find a row for update and if found, updates it and returns true,
otherwise inserts the row (if schemas match) and returns false. Optionally pass updateWhere condition
that may check whether update needs to be performed
Namespace: NFX.DataAccess.CRUDAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
public bool Upsert(
Row row,
Func<Row, bool> updateWhere = null
)
public bool Upsert(
Row row,
Func<Row, bool> updateWhere = null
)
Public Function Upsert (
row As Row,
Optional updateWhere As Func(Of Row, Boolean) = Nothing
) As Boolean
Public Function Upsert (
row As Row,
Optional updateWhere As Func(Of Row, Boolean) = Nothing
) As Boolean
public:
bool Upsert(
Row^ row,
Func<Row^, bool>^ updateWhere = nullptr
)
public:
bool Upsert(
Row^ row,
Func<Row^, bool>^ updateWhere = nullptr
)
member Upsert :
row : Row *
?updateWhere : Func<Row, bool>
(* Defaults:
let _updateWhere = defaultArg updateWhere null
*)
-> bool
member Upsert :
row : Row *
?updateWhere : Func<Row, bool>
(* Defaults:
let _updateWhere = defaultArg updateWhere null
*)
-> bool
Return Value
Type:
Boolean