示例#1
0
文件: DataSaver.cs 项目: sealong/Rafy
        /// <summary>
        /// 尝试更新冗余属性值。
        /// </summary>
        internal void UpdateRedundanciesIf(Entity entity)
        {
            if (entity.UpdateRedundancies)
            {
                if (_redundanciesUpdater == null)
                {
                    _redundanciesUpdater = this.CreateRedundanciesUpdater();
                }

                _redundanciesUpdater.UpdateRedundancies(entity);
            }
        }
示例#2
0
        /// <summary>
        /// 尝试更新冗余属性值。
        /// </summary>
        internal void UpdateRedundanciesIf(Entity entity)
        {
            if (entity.UpdateRedundancies)
            {
                if (_redundanciesUpdater == null)
                {
                    _redundanciesUpdater = this.CreateRedundanciesUpdater();
                }

                _redundanciesUpdater.UpdateRedundancies(entity);
            }
        }