Пример #1
0
 public int RaiseProductPrices(int? categoryId, decimal rate)
 {
     var template = new RaiseProductPricesTemplate
     {
         CategoryId = categoryId,
         DefaultSchema = this.DataService.EntityLiteProvider.DefaultSchema,
         Rate = rate
     };
     var cmd = new TemplatedCommand(this.DataService, template)
     {
         CommandTimeout = 10
     };
     return cmd.ExecuteNonQuery();
 }
Пример #2
0
 public void Truncate()
 {
     var template = new Templates.TruncateItemsTableCommandTemplate();
     var cmd = new TemplatedCommand(this.DataService, template);
     cmd.ExecuteNonQuery();
 }