public bool Insert(Shop entity) { ORMShop shop = entity.ToORMShop(); _client.Cypher .Merge("(s:Shop {shop})") .WithParam("shop", shop) .ExecuteWithoutResults(); return(true); }
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 }); }