コード例 #1
0
 public async Task SaveAsync(Store store)
 {
     if (store == null)
     {
         return;
     }
     await Wrapper.SaveAsync(CollectinoName, store, x => x.StoreId == store.StoreId);
 }
コード例 #2
0
 public async Task SaveAsync(Coupon coupon)
 {
     if (coupon == null)
     {
         return;
     }
     await Wrapper.SaveAsync(CollectinoName, coupon, x => x.CouponId == coupon.CouponId);
 }
コード例 #3
0
 public async Task SaveAsync(Category category)
 {
     if (category == null)
     {
         return;
     }
     await Wrapper.SaveAsync(CollectinoName, category, x => x.CategoryId == category.CategoryId);
 }
コード例 #4
0
 public async Task SaveAsync(FailedEvent @event)
 {
     if (@event == null)
     {
         return;
     }
     await Wrapper.SaveAsync(CollectinoName, @event, x => x.Id == @event.Id);
 }
コード例 #5
0
 public async Task SaveAsync(AffiliateStoreMatch matchedStore)
 {
     if (matchedStore == null)
     {
         return;
     }
     await Wrapper.SaveAsync(CollectinoName, matchedStore, x => x.AdvertiseStoreId == matchedStore.AdvertiseStoreId &&
                             x.AffiliateProgram == matchedStore.AffiliateProgram &&
                             x.AffiliateStoreId == matchedStore.AffiliateStoreId);
 }
コード例 #6
0
 public async Task SaveAsync(AffiliateCouponMatch matchedCoupon)
 {
     if (matchedCoupon == null)
     {
         return;
     }
     await Wrapper.SaveAsync(CollectinoName, matchedCoupon, x => x.AdvertiseCouponId == matchedCoupon.AdvertiseCouponId &&
                             x.AffiliateProgram == matchedCoupon.AffiliateProgram &&
                             x.AffiliateCouponId == matchedCoupon.AffiliateCouponId);
 }
コード例 #7
0
 public async Task SaveAsync(AffiliateCategoryMatch matchedCategory)
 {
     if (matchedCategory == null)
     {
         return;
     }
     await Wrapper.SaveAsync(CollectinoName, matchedCategory, x => x.AdvertiseCategoryId == matchedCategory.AdvertiseCategoryId &&
                             x.AffiliateProgram == matchedCategory.AffiliateProgram &&
                             x.AffiliateCategoryId == matchedCategory.AffiliateCategoryId);
 }