Example #1
0
 /// <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;
 }
Example #2
0
 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);
     }
 }
Example #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the NewsComment EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToNewsComment(NewsComment newsComment)
 {
     base.AddObject("NewsComment", newsComment);
 }
Example #4
0
 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);
         }
     }
 }