Ejemplo n.º 1
0
        public override IDatabaseWriter GetWriter(string file, IDatabaseSource src)
        {
            var res = new SqlDatabaseWriter();

            res.UsedDialect = src.Dialect;
            res.FilePlace   = FilePlaceAddonType.PlaceFromVirtualFile(file);
            return(res);
        }
Ejemplo n.º 2
0
 public void LoadFromObject(object obj, PropertyInfo prop)
 {
     m_obj = (SqlDatabaseWriter)obj;
     cbxDialect.SelectedIndex = -1;
     if (m_obj != null && m_obj.Dialect != null && m_dialectIndexes.ContainsKey(m_obj.Dialect.DialectName))
     {
         m_dialectConfigs[m_obj.Dialect.DialectName] = m_obj.DumpConfig;
         cbxDialect.SelectedIndex = m_dialectIndexes[m_obj.Dialect.DialectName];
     }
 }