/// <summary> /// Create a new BrienzTag object. /// </summary> /// <param name="tagID">Initial value of the TagID property.</param> public static BrienzTag CreateBrienzTag(global::System.Guid tagID) { BrienzTag brienzTag = new BrienzTag(); brienzTag.TagID = tagID; return(brienzTag); }
public int SaveTag(BrienzTag tag) { using (BrienzDBEntities BrienzEnt = new BrienzDBEntities()) { BrienzTag ba = new BrienzTag(); ba.TagContent = tag.TagContent; ba.TagFrom = tag.TagFrom; ba.TagID = Guid.NewGuid(); ba.FileGuid = tag.FileGuid; BrienzEnt.AddToBrienzTags(ba); return(BrienzEnt.SaveChanges()); } }
/// <summary> /// Deprecated Method for adding a new object to the BrienzTags EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToBrienzTags(BrienzTag brienzTag) { base.AddObject("BrienzTags", brienzTag); }