public static bool RemoveWithRelationship(this ITreeStorePersistence thisPersistence, Entity entity) { foreach (var affectedRelationship in thisPersistence.Relationships.FindByEntity(entity).ToArray()) { thisPersistence.Relationships.Delete(affectedRelationship); } return(thisPersistence.Entities.Delete(entity)); }
public TreeStoreDriveInfo(PSDriveInfo driveInfo, ITreeStorePersistence persistence) : base(driveInfo) { this.Persistence = persistence; }
public TreeStoreModel(ITreeStorePersistence persistence) { this.persistence = persistence; }