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