예제 #1
0
 protected override void Versioned(VersionContentContext context, TPart existing, TPart building)
 {
     if (OnVersioned != null)
     {
         OnVersioned(context, existing, building);
     }
 }
예제 #2
0
 void IContentHandler.Versioned(VersionContentContext context)
 {
     foreach (var filter in Filters.OfType <IContentStorageFilter>())
     {
         filter.Versioned(context);
     }
     Versioned(context);
 }
예제 #3
0
        protected override void Versioning(VersionContentContext context, ContentPart <TRecord> existing, ContentPart <TRecord> building)
        {
            // move known ORM values over
            _repository.Copy(existing.Record, building.Record);

            // only the up-reference to the particular version differs at this point
            building.Record.ContentItemVersionRecord = context.BuildingItemVersionRecord;

            // push the new instance into the transaction and session
            _repository.Create(building.Record);
        }
예제 #4
0
 protected virtual void Versioned(VersionContentContext context)
 {
 }