public override sealed void Update(Persist <TModel> persist) { if (persist.Models.Length == 0) { return; } ICollection <TModel> compressedModels = CompressModels(persist.Models, persist.Graph, true); NextProvider.Persist(new Update <TModel>(persist.Event, compressedModels, persist.Graph)); }
public override sealed void Create(Persist <TModel> persist) { if (persist.Models.Length == 0) { return; } TModel[] compressedModels = CompressModels(persist.Models, persist.Graph, true); NextProvider.Persist(new Create <TModel>(persist.Event, compressedModels, persist.Graph)); for (var i = 0; i < persist.Models.Length; i++) { object identity = ModelAnalyzer.GetIdentity(compressedModels[i]); ModelAnalyzer.SetIdentity(persist.Models[i], identity); } }
public void Persist(Persist <TModel> persist) { ThisProvider.Persist(persist); NextProvider.Persist(persist); }
public override sealed void Delete(Persist <TModel> persist) { NextProvider.Persist(persist); }