/// <summary>
 /// Erstellt ein neues TaggedCommit-Objekt.
 /// </summary>
 /// <param name="tagId">Anfangswert der Eigenschaft TagId.</param>
 /// <param name="commitId">Anfangswert der Eigenschaft CommitId.</param>
 /// <param name="name">Anfangswert der Eigenschaft Name.</param>
 /// <param name="isRelease">Anfangswert der Eigenschaft IsRelease.</param>
 public static TaggedCommit CreateTaggedCommit(global::System.Int32 tagId, global::System.Int32 commitId, global::System.String name, global::System.Boolean isRelease)
 {
     TaggedCommit taggedCommit = new TaggedCommit();
     taggedCommit.TagId = tagId;
     taggedCommit.CommitId = commitId;
     taggedCommit.Name = name;
     taggedCommit.IsRelease = isRelease;
     return taggedCommit;
 }
 /// <summary>
 /// Veraltete Methode zum Hinzufügen eines neuen Objekts zum EntitySet 'TaggedCommits'. Verwenden Sie stattdessen die Methode '.Add' der zugeordneten Eigenschaft 'ObjectSet&lt;T&gt;'.
 /// </summary>
 public void AddToTaggedCommits(TaggedCommit taggedCommit)
 {
     base.AddObject("TaggedCommits", taggedCommit);
 }
 private void ImportTag(string name, LibGit2Sharp.Commit commit, bool isRelease)
 {
     Debug.WriteLine("ImportTag({0}, {1}, {2})", name, commit.Sha, isRelease);
     int? commitId = ImportCommit(commit);
     if (commitId == null)
         return;
     TaggedCommit tag = db.GetTag(name, isRelease);
     if (tag != null) {
         if (tag.CommitId == commitId)
             return;
         Debug.WriteLine("Update " + (isRelease ? "tag" : "branch") + " " + name + " (commit " + commit.Sha + ")");
         tag.CommitId = commitId.Value;
     } else {
         Debug.WriteLine("Import " + (isRelease ? "tag" : "branch") + " " + name + " (commit " + commit.Sha + ")");
         tag = new TaggedCommit();
         tag.CommitId = commitId.Value;
         tag.Name = name;
         tag.IsRelease = isRelease;
         db.Context.TaggedCommits.AddObject(tag);
     }
     db.Context.SaveChanges();
 }