/// <summary> /// Constructs an instance of <see cref="GraphNode"/>. /// </summary> public GraphNode(EntityInfo entityInfo) { EntityInfo = entityInfo; }
Task ISaveChangesOptions.BeforeSaveEntityChangesAsync(EntityInfo entityInfo, SaveChangesContext context, CancellationToken cancellationToken) { throw new NotSupportedException(); }
void ISaveChangesOptions.BeforeSaveEntityChanges(EntityInfo entityInfo, SaveChangesContext context) { BeforeSaveEntityChangesAction?.Invoke(entityInfo, context); }
/// <summary> /// The method that is called before an entity is saved using NHibernate Save, Update or Delete methods from ISession. /// </summary> /// <param name="entityInfo">The entity info that is being saved.</param> /// <param name="context">The save changes context.</param> /// <returns>Whether the entity should be saved using the Save, Update or Delete methods from ISession.</returns> protected internal virtual void BeforeSaveEntityChanges(EntityInfo entityInfo, SaveChangesContext context) { }
/// <summary> /// The method that is called after an <see cref="EntityInfo"/> is created from the <see cref="SaveBundle"/>. /// </summary> /// <param name="entityInfo">The created entity info.</param> /// <param name="saveOptions">The save options from the client.</param> /// <returns>Whether the <see cref="EntityInfo"/> should be included in the save map.</returns> protected internal virtual bool AfterCreateEntityInfo(EntityInfo entityInfo, SaveOptions saveOptions) { return(true); }
/// <summary> /// Adds an <see cref="EntityInfo"/> to the graph. /// </summary> /// <param name="entityInfo"></param> public void AddToGraph(EntityInfo entityInfo) { TryAddToGraph(entityInfo, null, null); }