/// <summary> /// Create a new NewsComment object. /// </summary> /// <param name="newsCommentId">Initial value of the NewsCommentId property.</param> public static NewsComment CreateNewsComment(global::System.Guid newsCommentId) { NewsComment newsComment = new NewsComment(); newsComment.NewsCommentId = newsCommentId; return newsComment; }
public void Update(NewsComment obj, out OperationResult operationResult) { lock (Lock) { if (obj == null) { operationResult = new OperationResult { Type = OperationResult.ResultType.Warning }; return; } Common.Instance.Update (obj, objs => objs.NewsCommentId == obj.NewsCommentId && objs.LanguageId == obj.LanguageId, out operationResult); } }
/// <summary> /// Deprecated Method for adding a new object to the NewsComment EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToNewsComment(NewsComment newsComment) { base.AddObject("NewsComment", newsComment); }
public void Insert(NewsComment obj, out OperationResult operationResult) { lock (Lock) { if (obj == null) { operationResult = new OperationResult { Type = OperationResult.ResultType.Warning }; } else { Common.Instance.Insert(obj, out operationResult); } } }