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