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