Exemplo n.º 1
0
        public virtual void Delete(TDomainObject @object)
        {
            var query = CypherQueryBuilder
                        .Init()
                        .Match("{0}", new[] { @object }, new[] { CypherVar })
                        .Delete(CypherVar);

            using (var session = SessionProvider.Create())
                session.Run(query);
        }
Exemplo n.º 2
0
        public virtual void Create(TDomainObject @object)
        {
            var query = CypherQueryBuilder
                        .Init()
                        .Create("{0}", @object, CypherVar)
                        .Return(CypherVar);

            using (var session = SessionProvider.Create())
                session.Run(query);
        }