public void MigrarDEF() { var conexao = Conexao.CreateSessionFactoryOracle(); DefsIntegracao defs = new DefsIntegracao(conexao.OpenSession()); var listaDefIntegracao = defs.All<DefMigracao>(); Defs repositorioDef = new Defs(Conexao.CreateSessionFactory().OpenSession()); List<Def> listaDef = new List<Def>(); foreach (var defIntegracao in listaDefIntegracao) { var def = new Def(); def.Description = defIntegracao.Produto; listaDef.Add(def); } repositorioDef.SalvarLista(listaDef); }