コード例 #1
0
 //Search Entities
 public async Task <IEnumerable <OverShortDetailAllocation> > SearchOverShortDetailAllocation(List <string> lst, List <string> includeLst = null)
 {
     using (var ctx = new OverShortDetailAllocationService())
     {
         return(await ctx.GetOverShortDetailAllocationsByExpressionLst(lst, includeLst).ConfigureAwait(false));
     }
 }
コード例 #2
0
 private async Task DeleteOverShortAllocation(OverShortDetailAllocation osa)
 {
     using (var ctx = new OverShortDetailAllocationService())
     {
         await ctx.DeleteOverShortDetailAllocation(osa.OverShortAllocationId.ToString()).ConfigureAwait(false);
     }
 }
コード例 #3
0
 private async Task CreateOverShortDetailAllocation(OverShortDetailAllocation osa)
 {
     using (var ctx = new OverShortDetailAllocationService())
     {
         await ctx.CreateOverShortDetailAllocation(osa).ConfigureAwait(false);
     }
 }
コード例 #4
0
 public async Task SaveOverShortDetailAllocation(OverShortDetailAllocation i)
 {
     if (i == null)
     {
         return;
     }
     using (var ctx = new OverShortDetailAllocationService())
     {
         await ctx.UpdateOverShortDetailAllocation(i).ConfigureAwait(false);
     }
 }