コード例 #1
0
ファイル: GraphNode.cs プロジェクト: maca88/Breeze.NHibernate
 /// <summary>
 /// Constructs an instance of <see cref="GraphNode"/>.
 /// </summary>
 public GraphNode(EntityInfo entityInfo)
 {
     EntityInfo = entityInfo;
 }
コード例 #2
0
 Task ISaveChangesOptions.BeforeSaveEntityChangesAsync(EntityInfo entityInfo, SaveChangesContext context, CancellationToken cancellationToken)
 {
     throw new NotSupportedException();
 }
コード例 #3
0
 void ISaveChangesOptions.BeforeSaveEntityChanges(EntityInfo entityInfo, SaveChangesContext context)
 {
     BeforeSaveEntityChangesAction?.Invoke(entityInfo, context);
 }
コード例 #4
0
 /// <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)
 {
 }
コード例 #5
0
 /// <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);
 }
コード例 #6
0
 /// <summary>
 /// Adds an <see cref="EntityInfo"/> to the graph.
 /// </summary>
 /// <param name="entityInfo"></param>
 public void AddToGraph(EntityInfo entityInfo)
 {
     TryAddToGraph(entityInfo, null, null);
 }