public static SqlDatabaseWindows ImportSchema(
            string filePath,
            bool createOrmAssembly,
            bool saveOrmAssembly,
            string ormAssemblyOutputDirectory)
        {
            SqlDatabaseWindows result = (SqlDatabaseWindows)GOCWindows.Instance.GetSerializer(SerializerType.XML).DeserializeFromFile(
                typeof(SqlDatabaseWindows),
                new Type[]
            {
                typeof(SqlDatabaseTableWindows),
                typeof(SqlDatabaseTableColumnWindows),
                typeof(DatabaseCacheWindows),
                typeof(DatabaseWindows),
                typeof(DatabaseTableWindows),
                typeof(DatabaseTableColumnWindows)
            },
                filePath);

            if (createOrmAssembly)
            {
                result.CreateOrmAssembly(saveOrmAssembly, ormAssemblyOutputDirectory);
            }
            return(result);
        }
 public static void ExportSchema(SqlDatabaseWindows database, string filePath)
 {
     GOC.Instance.GetSerializer(SerializerType.XML).SerializeToFile(
         database,
         new Type[]
     {
         typeof(SqlDatabaseTableWindows),
         typeof(SqlDatabaseTableColumnWindows),
         typeof(DatabaseCacheWindows),
         typeof(DatabaseWindows),
         typeof(DatabaseTableWindows),
         typeof(DatabaseTableColumnWindows)
     },
         filePath);
 }