从实体框架执行行更新
我想更新这样的行:
update [approvers] set approvalstatus = True Where approvalstatus = False and bookingID = @bookingid and approveremail = @email
使用实体框架。
我的查询应该像这样交付项目:
Dim db As New Model.Entities
Dim approvers = From a In db.approvers Where a.ApprovalStatus = False And a.BookingID = BookingID And a.ApproverEmail = UserName Select a.ApprovalStatus
下一步如何定位此记录进行更新,以便我可以设置 a.approvalStatus = True 然后将这些更改提交到数据库?
谢谢。
I would like to update a row like this:
update [approvers] set approvalstatus = True Where approvalstatus = False and bookingID = @bookingid and approveremail = @email
Using the entity framework.
I have my query which should deliver the item like so:
Dim db As New Model.Entities
Dim approvers = From a In db.approvers Where a.ApprovalStatus = False And a.BookingID = BookingID And a.ApproverEmail = UserName Select a.ApprovalStatus
How do I next target this record for update, so that I can set a.approvalStatus = True then commit these changes to the db?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)