コード例 #1
0
 //Search Entities
 public async Task <IEnumerable <SubItems> > SearchSubItems(List <string> lst, List <string> includeLst = null)
 {
     using (var ctx = new SubItemsService())
     {
         return(await ctx.GetSubItemsByExpressionLst(lst, includeLst).ConfigureAwait(false));
     }
 }
コード例 #2
0
ファイル: Allocation.cs プロジェクト: Alphaquest2005/WaterNut
 private static async Task SaveSubItem(SubItems subitm)
 {
     if (subitm == null)
     {
         return;
     }
     using (var ctx = new SubItemsService())
     {
         await ctx.UpdateSubItems(subitm).ConfigureAwait(false);
     }
 }
コード例 #3
0
 public async Task SaveSubItems(SubItems i)
 {
     if (i == null)
     {
         return;
     }
     using (var ctx = new SubItemsService())
     {
         await ctx.UpdateSubItems(i).ConfigureAwait(false);
     }
 }
コード例 #4
0
ファイル: Allocation.cs プロジェクト: Alphaquest2005/WaterNut
 private static void GetSubItems(List <xcuda_Item> alst, EntryDataDetails salesDetails)
 {
     using (var ctx = new SubItemsService())
     {
         alst.AddRange(
             ctx.GetSubItemsByExpressionLst(
                 new List <string>()
         {
             string.Format("ItemNumber == \"{0}\"", salesDetails.ItemNumber)
         }
                 , new List <string>()
         {
             "xcuda_Item", "xcuda_Item.EX", "xcuda_Item.AsycudaDocument"
         }).Result
             //.Where(y => y.ItemNumber == salesDetails.ItemNumber)
             .Select(x => x.xcuda_Item).ToList());
     }
 }