You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used [ComplexType] according to the sample case, but when I use the create method for insert data to database I got the below exception.
[Table("Person")]
public abstract class PersonNode
{
public string Name { get; set; }
public int Born { get; set; }
[JsonProperty(PropertyName = "NewAddressName")]
public virtual Address Address { get; set; }
}
[ComplexType]
public class Address
{
public string AddressLine { get; set; }
public string City { get; set; }
public string State { get; set; }
public string Country { get; set; }
}
public static ActorNode Actor = new ActorNode<int>
{
Name = "Ellen Pompeo",
Born = 1969,
Address = new AddressWithComplexType
{
City = "Los Angeles",
State = "California",
Country = "US",
Location = new Location
{
Latitude = 34.0522,
Longitude = -118.2437
}
}
};
var query = _client.Cypher.Create(p =>
p.Pattern<ActorNode>("a").Prop(() => actor));
query.ExecuteWithoutResultsAsync().Wait();
Property values can only be of primitive types or arrays thereof. Encountered: Map{Country -> String("US"), City -> String("Los Angeles"), State -> String("California")}.
The text was updated successfully, but these errors were encountered:
Hi
I used [ComplexType] according to the sample case, but when I use the create method for insert data to database I got the below exception.
The text was updated successfully, but these errors were encountered: