public void AddRelation(object sourceEntity, object targetEntity, object tag, bool delayed = true) { if (workspace != null) { Exec(() => workspace.AddRelation(sourceEntity, targetEntity, tag), delayed); } }