I am still very new to programming, but what I am trying to reach for now is a piece of code that will show me all of my nodes in my Visual studio. I connected my c# to my database, but what I can't see why I can't show back my nodes. The .Results is giving an error and I can't see why. My code is looking like this so far. Could someone explain what and more importantly why this piece is not working?
class DatabaseConnection
{
GraphClient dbclient;
public DatabaseConnection(){
dbclient = new GraphClient(new Uri("http://localhost:7474/db/data"));
dbclient.Connect();
dbclient.Cypher
.Match("(type:PhonePart)")
.Return(type => type.As<PhoneItems>())
.Results
}
}
public class PhoneItems
{
public string PhonePart { get; set; }
}