2012-03-04 56 views
0

那麼,我的問題是如下。我創建了一個實體。我打電話給這個new_logpuntossegmentacin,這個帳號有一個與∞的關係,當我在註冊插件消息中創建我希望下面的代碼填寫字段puntosacumulados但沒有任何反應: cli是一個帳號來自列表 總是一個小數crm 2011在更新賬戶實體的字段時沒有變化

total = total1 + total2 + total3 + total4 + total5 + total6; 
cli.new_puntosacumulados.Insert(i, total.ToString()); 
svcContext.UpdateObject(cli); 
svcContext.SaveChanges(); 

i++; 
if (!String.IsNullOrEmpty(total.ToString())) 
{ 
    tracingService.Trace("Response = {0}", total.ToString()); 
} 
tracingService.Trace("Done."); 
+0

你可以發佈整個方法嗎? – glosrob 2012-03-05 13:38:32

回答

1

幾個問題可以多加一點背景: - 當你說什麼都不會發生

1),你的意思是,值不更新數據庫或它不」 t在表單上顯示更新?如果是後者,那麼它可能是插入時發射(pre vs post)。 2)你可能會發布剩餘的方法,因爲它可能有助於獲得一些其他參數的上下文,例如,什麼是「我」在這裏迭代?

謝謝

相關問題