示例#1
0
        public override void PersistUpdate(IAggregateRoot obj)
        {
            if (obj.IsEmpty())
            {
                return;
            }
            TRoot root = obj as TRoot;

            if (root != null)
            {
                if (this.OnPrePersist(obj, RepositoryAction.Update))
                {
                    PersistUpdateRoot(root);
                }
                this.OnPersisted(obj, RepositoryAction.Update);
            }
        }