private static CodeAccessPermission CreateExecutePermission() { DBDataPermission permission = (DBDataPermission)OdbcConnectionFactory.SingletonInstance.ProviderFactory.CreatePermission(PermissionState.None); permission.Add(string.Empty, string.Empty, KeyRestrictionBehavior.AllowOnly); return(permission); }
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); }
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); }