Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo 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);
        }