/// <summary> /// Deprecated Method for adding a new object to the NewsStatus EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToNewsStatus(NewsStatus newsStatus) { base.AddObject("NewsStatus", newsStatus); }
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); } }
/// <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; }
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); } } }