コード例 #1
0
 public void InsertProduct(ProductEntity pt)
 {
     var statement2 = _session.Prepare(_strQueryInsert);
     var results2   = _session.Execute(statement2.Bind(new
     {
         session        = Guid.Parse(pt.Session),
         product_id     = pt.ID,
         company_id     = pt.CompanyId,
         last_update    = DateTime.Now.Ticks,
         date_update    = Convert.ToInt32(DateTime.Now.ToString("yyyyMMdd")),
         product_entity = pt.GetJSON()
     }));
 }
コード例 #2
0
 private void PushChangeProduct(ProductEntity pt)
 {
     _producerProductChange.PublishString(pt.GetJSON());
 }