Exemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Support EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSupport(Support support)
 {
     base.AddObject("Support", support);
 }
Exemplo n.º 2
0
 public void Update(Support obj, out OperationResult operationResult)
 {
     lock (Lock)
     {
         if (obj == null)
         {
             operationResult = new OperationResult { Type = OperationResult.ResultType.Warning };
             return;
         }
         Common.Instance.Update
             (obj, objs => objs.SupportId == obj.SupportId && objs.LanguageId == obj.LanguageId, out operationResult);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Create a new Support object.
 /// </summary>
 /// <param name="supportId">Initial value of the SupportId property.</param>
 public static Support CreateSupport(global::System.Guid supportId)
 {
     Support support = new Support();
     support.SupportId = supportId;
     return support;
 }
Exemplo n.º 4
0
 public void Insert(Support obj, out OperationResult operationResult)
 {
     lock (Lock)
     {
         if (obj == null)
         {
             operationResult = new OperationResult { Type = OperationResult.ResultType.Warning };
         }
         else
         {
             Common.Instance.Insert(obj, out operationResult);
         }
     }
 }