Ejemplo n.º 1
0
 private void populateLists() {
     GeneratorOptions options = new GeneratorOptions() { SupportsReturnValue = schema.Platform == "SQLSERVER" };
     IDataAccessGenerator gen1 = new CSharpDataAccessGenerator(null, options);
     cmbGenerator.Items.Add(new DalGeneratorItem(gen1.GetName(), gen1));
     
     
     cmbTypeMap.Items.Add(new TypeMapItem("No Type Map", null));
     ResourceManager resMan = new ResourceManager();
     foreach (TypeMap tm in resMan.GetDataAccessTypeMaps())
     {
         TypeMapItem item = new TypeMapItem(tm.Name, tm);
         cmbTypeMap.Items.Add(item);
     }
     cmbTypeMap.Items.Add(new TypeMapItem("Custom", null));
 }