/// <summary>
 /// Deprecated Method for adding a new object to the StaticContent EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToStaticContent(StaticContent staticContent)
 {
     base.AddObject("StaticContent", staticContent);
 }
Beispiel #2
0
 public void Update(StaticContent obj, out OperationResult operationResult)
 {
     lock (Lock)
     {
         if (obj == null)
         {
             operationResult = new OperationResult { Type = OperationResult.ResultType.Warning };
             return;
         }
         Common.Instance.Update
             (obj, objs => objs.StaticContentId == obj.StaticContentId && objs.LanguageId == obj.LanguageId, out operationResult);
     }
 }
 /// <summary>
 /// Create a new StaticContent object.
 /// </summary>
 /// <param name="staticContentId">Initial value of the StaticContentId property.</param>
 /// <param name="languageId">Initial value of the LanguageId property.</param>
 public static StaticContent CreateStaticContent(global::System.Guid staticContentId, global::System.String languageId)
 {
     StaticContent staticContent = new StaticContent();
     staticContent.StaticContentId = staticContentId;
     staticContent.LanguageId = languageId;
     return staticContent;
 }
Beispiel #4
0
 public void Insert(StaticContent obj, out OperationResult operationResult)
 {
     lock (Lock)
     {
         if (obj == null)
         {
             operationResult = new OperationResult { Type = OperationResult.ResultType.Warning };
         }
         else
         {
             Common.Instance.Insert(obj, out operationResult);
         }
     }
 }