示例#1
0
 public static void Buscar()
 {
     using (IDocumentSession session = ConexaoRavenDB.Instancia().DocumentStore.OpenSession())
     {
         var configuracoes = session.Query <CFG>();
     }
 }
示例#2
0
        public static void Salvar()
        {
            using (IDocumentSession session = ConexaoRavenDB.Instancia().DocumentStore.OpenSession())
            {
                CFG configuracao = new CFG()
                {
                    GUID             = Guid.NewGuid().ToString(),
                    NOME             = "TesteCFG",
                    SIGLA_DISCIPLINA = "TST"
                };

                session.Store(configuracao);

                session.SaveChanges();
            }
        }
示例#3
0
 public static void Sair()
 {
     ConexaoRavenDB.Instancia().Dispose();
 }