コード例 #1
0
ファイル: Program.cs プロジェクト: x3platform/x-sdk
        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
ファイル: Program.cs プロジェクト: x3platform/x-sdk
        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
ファイル: Program.cs プロジェクト: x3platform/x-sdk
        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));
        }