示例#1
0
        private static CodeAccessPermission CreateExecutePermission()
        {
            DBDataPermission permission = (DBDataPermission)OdbcConnectionFactory.SingletonInstance.ProviderFactory.CreatePermission(PermissionState.None);

            permission.Add(string.Empty, string.Empty, KeyRestrictionBehavior.AllowOnly);
            return(permission);
        }
示例#2
0
        private static System.Security.CodeAccessPermission CreateExecutePermission()
        {
            DBDataPermission p = (DBDataPermission)SqlConnectionFactory.SingletonInstance.ProviderFactory.CreatePermission(System.Security.Permissions.PermissionState.None);

            p.Add(String.Empty, String.Empty, KeyRestrictionBehavior.AllowOnly);
            return(p);
        }
示例#3
0
        private static System.Security.CodeAccessPermission CreateExecutePermission()
        {
            DBDataPermission p = (DBDataPermission)CONNECTIONFACTORYOBJECTNAME.ProviderFactory.CreatePermission(System.Security.Permissions.PermissionState.None);

            p.Add(String.Empty, String.Empty, KeyRestrictionBehavior.AllowOnly);
            return(p);
        }