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