MetaDataCollection<TItem>.SaveItem

Does the actual work of saving the item.

public virtual void SaveItem(TItem item,
	IDbConnection conn)

Parameters

item
The item to save.

conn
An open connection to the database.

Remarks

When saving an item, set Updated to now (in UTC so there are no issues with timezones). Note that we have to strip out the milliseconds to avoid a "Datetime field overflow. Fractional second precision exceeds the scale specified in the parameter binding" error when using SQL Server with the ODBC rather than SQL client.

Overloads:


See also:

Class MetaDataCollection