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