コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the SupportType EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSupportType(SupportType supportType)
 {
     base.AddObject("SupportType", supportType);
 }
コード例 #2
0
ファイル: SupportTypeService.cs プロジェクト: Artnman/Cloud
 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);
     }
 }
コード例 #3
0
 /// <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;
 }
コード例 #4
0
ファイル: SupportTypeService.cs プロジェクト: Artnman/Cloud
 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);
         }
     }
 }