批量更新和模拟(当前用户) [英] Batch update and Impersonation (current user)
问题描述
使用WCF数据服务(5.02和5.1.0)时,它在使用批量保存时不处理模拟:
SaveChanges(SaveChangesOptions) .Batch)
如果您只是使用SaveChanges(),它可以解决问题。
问题是代码似乎在服务器上创建了一个新线程,该线程没有模拟用户凭据,而是具有应用程序池的凭据。这不是
似乎是对的,一定是个bug ???
我看过其他用户举报此事问题,但他们在使用Windows时使用了不同的身份验证(基本)。
请注意,我需要使用Windows凭据和Windows模拟。更改为其他形式不是一种选择。
我错过了什么吗?设置?
谢谢,
约翰
检查线程是否有用:
When using WCF Data Services (5.02 and 5.1.0) it doesn't handle impersonation when using Batch saves:
SaveChanges(SaveChangesOptions.Batch)
If you just use SaveChanges() it works withouth issues.
Issue is that the code seems to create a new thread on server which doesn't have the impersonated users credentials, but instead have the credentials of the Application Pool. This doesn't seem right, must be a bug???
I have seen other users reporting this issue, but they used different authentication (Basic) while I use Windows.
Notice that I have a requirement to use Windows Credentials and Windows Impersonation. Changing to some other form is not an option.
Am I missing something? Setting?
Thanks,
Johan
Hi,
Check if following the thread are helpful:
这篇关于批量更新和模拟(当前用户)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!