Esempio n. 1
0
        protected virtual void InvalidateCacheOnCommit()
        {
            var attr = typeof(TRow).GetCustomAttribute <TwoLevelCachedAttribute>(false);

            if (attr != null)
            {
                BatchGenerationUpdater.OnCommit(this.UnitOfWork, Row.GetFields().GenerationKey);
                foreach (var key in attr.GenerationKeys)
                {
                    BatchGenerationUpdater.OnCommit(this.UnitOfWork, key);
                }
            }
        }
 protected virtual void InvalidateCacheOnCommit()
 {
     BatchGenerationUpdater.OnCommit(this.UnitOfWork, Row);
 }