无法使用WCF从链接表中获取数据

时间:2010-08-02 14:35:24

标签: wcf

我有一个aspnet_Users表,UserD作为主键,master_actor表作为主键,没有公钥。

使用带有UserID和ActorID列的链接表master_actorlink表将两个表链接在一起。

我想通过WCF服务使用UserID获取master_actorlink表的ActorID ..

我是WCF的新手,所以请帮助

1 个答案:

答案 0 :(得分:0)

假设您已启用安全性,则可以从Identity上下文中提取用户名。

   OperationContext.Current.ServiceSecurityContext.WindowsIdentity.Name

More information on Identity & WCF Security Context