private static IEnumerable <ExplorerItem> GetRoutines(string connectionString, string schema)
 {
     using (var routines = new StoredProcedureInfoList(connectionString, schema))
     {
         return(GetRoutines(routines));
     }
 }
Example #2
0
        public static List <ExplorerItem> GetSchemaAndBuildAssembly(DB2Properties properties, AssemblyName name, ref string nameSpace, ref string typeName, string dllPath)
        {
            var tables   = new TableInfoList(properties);
            var routines = new StoredProcedureInfoList(properties);
            var schema   = new DatabaseExplorerInfoList(tables, routines).ToList();

            var code = new DataContextCodeGenerator(tables, routines, nameSpace, typeName).Generate();

            BuildAssembly(code, name, dllPath);

            return(schema);
        }