Saves an enity into the database using insert or update as required. Requires a keyfield that exists on both the entity and the database.
public virtual bool SaveEntity(object entity, string table, string keyField, string fieldsToSkip)
Parameters
entity
entity to save
table
table to save to
keyField
keyfield to update
fieldsToSkip
optional fields to skip when updating (keys related items etc)
See also:
Class DataAccessBase© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic