取消数据权限控制


bool disableSecurity = UFSoft.UBF.View.Query.QueryCompiler.DisableSecurity; bool disableWriteSecurity = UFSoft.UBF.View.Query.QueryCompiler.DisableWriteSecurity; 如果忽略数据权限,改成true UFSoft.UBF.View.Query.QueryCompiler.DisableSecurity = true; UFSoft.UBF.View.Query.QueryCompiler.DisableWriteSecurity = true; 程序执行完后再恢复 UFSoft.UBF.View.Query.QueryCompiler.DisableSecurity = disableSecurity; UFSoft.UBF.View.Query.QueryCompiler.DisableWriteSecurity = disableWriteSecurity;

浙公网安备 33010602011771号