Example #1
0
        public bool Insert(Shop entity)
        {
            ORMShop shop = entity.ToORMShop();

            _client.Cypher
            .Merge("(s:Shop {shop})")
            .WithParam("shop", shop)
            .ExecuteWithoutResults();
            return(true);
        }
Example #2
0
 public static Shop ToShop(this ORMShop shop)
 {
     return(new Shop()
     {
         Id = shop.Id,
         Longitude = shop.Longitude,
         Latitude = shop.Latitude,
         Name = shop.Name,
         Street = shop.Street,
         Number = shop.Number
     });
 }