Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
        }