EntityKey and ApplyPropertyChanges()

前端 未结 5 1306
时光取名叫无心
时光取名叫无心 2020-12-30 14:06

I need to set an EntityObject\'s EntityKey. I know its type and its id value. I don\'t want to query the database unnecessarily.

This works...

//
//         


        
5条回答
  •  借酒劲吻你
    2020-12-30 14:18

    I had the same problem, while it was working on other pages. I dont know if this comment will be useful... But I finally discovered, that in my objet (the equivalent of your Departement), my "Id" was not appearing in the form...

    Just the fact to add it (while I had removed it...) on my form has resolved my problem. (with the style="visibility:hidden", in order not to see him...)

提交回复
热议问题