如何仅更新:share_count,也许应该使用var stockEvaluation = (from ib in mapicsSession.Query<ItemBalance>()
orderby w.Description
group ib by w.Description
into g
select new
{
g.Key,
}).Except(sysproWarehouses);
来完成?
我在rails和mongoid上使用ruby
upsert
答案 0 :(得分:1)
count = SocialShares.total url, %w(sharedcount)
update_attributes share_count: count