示例#1
0
        static string GenerateApplicationMenuScopeScript(Options options)
        {
            GenericSqlCommand command = new GenericSqlCommand("ConnectionString");

            DataTable table = command.ExecuteQueryForDataTable(" SELECT * FROM tb_Application_Menu_Scope WHERE EntityId IN ( SELECT Id FROM tb_Application_Menu WHERE ApplicationId IN ( SELECT Id FROM tb_Application WHERE ApplicationName = '" + options.ApplicationName + "' ) ) ORDER BY EntityId, AuthorizationObjectType ");

            return(SqlScriptHelper.GenerateDateTableScript("", "tb_Application_Menu_Scope", table));
        }
示例#2
0
        static string GenerateApplicationErrorScript(Options options)
        {
            GenericSqlCommand command = new GenericSqlCommand("ConnectionString");

            DataTable table = command.ExecuteQueryForDataTable(" SELECT * FROM tb_Application_Error WHERE ApplicationId IN ( SELECT Id FROM tb_Application WHERE ApplicationName = '" + options.ApplicationName + "' ) ORDER BY ParentId, OrderId ");

            return(SqlScriptHelper.GenerateDateTableScript("", "tb_Application_Error", table));
        }
示例#3
0
        static string GenerateApplicationScript(Options options)
        {
            GenericSqlCommand command = new GenericSqlCommand("ConnectionString");

            DataTable table = command.ExecuteQueryForDataTable(" SELECT * FROM tb_Application WHERE ApplicationName = '" + options.ApplicationName + "' ");

            return(SqlScriptHelper.GenerateDateTableScript("", "tb_Application", table));
        }