entlib默认是把所有授权的配置都放在.config文件中的,也没提供有保存到数据库中的组件。那只能自己动手了。
幸好已经有前人做了这个工作。down回来编译就行了。RAR包中还带有生成相关表和储存过程的SQL脚本。
This sample extends the existing Security Database Console to support Authorization Rules with the Database Authorization Rules provider (http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=c0b0ce8e-1b72-44ab-b300-f369eb18664a).
下载回来打开编译

把生成的DbRulesAuthorization.dll复制到xx\Microsoft Enterprise Library\bin目录中,再执行EntLibConfig.exe。在配置authorization时就看到有Database Authorization Provider了,但是不能在设计时添加rule了。
