Exemplo 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));
 }
Exemplo n.º 2
0
 private void populateLists() {
     ISqlGenerator gen1 = new SqlServerDatabaseGenerator(null);
     ISqlGenerator gen2 = new MySqlDatabaseGenerator(null);
     ISqlGenerator gen3 = new SqlServerCrudGenerator(null);
     ISqlGenerator gen4 = new MySqlCrudGenerator(null);
     cmbGenerator.Items.Add(new SqlGeneratorItem(gen1.GetName(), gen1));
     cmbGenerator.Items.Add(new SqlGeneratorItem(gen2.GetName(), gen2));
     cmbGenerator.Items.Add(new SqlGeneratorItem(gen3.GetName(), gen3));
     cmbGenerator.Items.Add(new SqlGeneratorItem(gen4.GetName(), gen4));
     
     cmbTypeMap.Items.Add(new TypeMapItem("No Type Map", null));
     ResourceManager resMan = new ResourceManager();
     foreach (TypeMap tm in resMan.GetDatabaseTypeMaps())
     {
         TypeMapItem item = new TypeMapItem(tm.Name, tm);
         cmbTypeMap.Items.Add(item);
     }
     cmbTypeMap.Items.Add(new TypeMapItem("Custom", null));
 }