public void UpdateMyRecord(MyDataRecord dataRecord) { MyDataRecord cachedRecord = MyCache.Locate(dataRecord); if (cachedRecord != null) { cachedRecord.Field1 = dataRecord.Field1; cachedRecord.Field2 = dataRecord.Field2; MyCache.Update(cachedRecord); } }
public void InsertMyRecord(MyDataRecord dataRecord) { MyCache.Insert(dataRecord); }
public void DeleteMyRecord(MyDataRecord dataRecord) { MyCache.Delete(dataRecord); }In this example, we are deleting a record from the `MyCache` cache by calling its `Delete` method. Package library: Acumatica.Framework.