Esempio n. 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the NewsStatus EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToNewsStatus(NewsStatus newsStatus)
 {
     base.AddObject("NewsStatus", newsStatus);
 }
Esempio n. 2
0
 public void Update(NewsStatus obj, out OperationResult operationResult)
 {
     lock (Lock)
     {
         if (obj == null)
         {
             operationResult = new OperationResult { Type = OperationResult.ResultType.Warning };
             return;
         }
         Common.Instance.Update
             (obj, objs => objs.NewsStatusId == obj.NewsStatusId, out operationResult);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Create a new NewsStatus object.
 /// </summary>
 /// <param name="newsStatusId">Initial value of the NewsStatusId property.</param>
 public static NewsStatus CreateNewsStatus(global::System.Guid newsStatusId)
 {
     NewsStatus newsStatus = new NewsStatus();
     newsStatus.NewsStatusId = newsStatusId;
     return newsStatus;
 }
Esempio n. 4
0
 public void Insert(NewsStatus obj, out OperationResult operationResult)
 {
     lock (Lock)
     {
         if (obj == null)
         {
             operationResult = new OperationResult { Type = OperationResult.ResultType.Warning };
         }
         else
         {
             Common.Instance.Insert(obj, out operationResult);
         }
     }
 }