Imはデータベースで、最後には特にグラフデータベースNeo4Jで期限切れになりました。イムは、私はすでに、「インストール・パッケージNeo4j.Driver-1.0.2」をNuGetPackagemanagerで入力しただけでneo4jとc#を接続してクエリを実行しようとしています
class Sql_connection : DatabaseConnection
{
public string Server, Port, User_Id, Password, Database, Connstring;
public NpgsqlConnection SQLconnection;
public Sql_connection(string Server, string Port, string User_Id, string Password, string Database)
{
this.Server = Server;
this.Port = Port;
this.User_Id = User_Id;
this.Password = Password;
this.Database = Database;
this.Connstring = "Server="+this.Server+";Port="+this.Port+";User Id="+this.User_Id+";Password="+this.Password+";Database="+this.Database /* +";" */;
this.SQLconnection = new NpgsqlConnection(this.Connstring);
this.SQLconnection.Open();
}
public string InsertQuery(string INSERT_INTO, string VALUES)
{
NpgsqlCommand InsertCommand = new NpgsqlCommand();
InsertCommand.Connection = this.SQLconnection;
InsertCommand.CommandText = "insert into "+INSERT_INTO+" values "+VALUES;
InsertCommand.ExecuteNonQuery();
return "succes";
}
(コードを参照してください)私は、PostgreSQLに何をしたかのように、Cの#でのNeo4jを接続しようとしています。 もちろん私は自分でいくつかの研究をしましたが、複数のウェブサイトとgithubリポジトリがすべて違ったことを発見しました。私はもう何を信じるべきか知っていません。
具体的な質問は次のとおりです。 1:「Neo4J-C#接続をどうやって作っていますか?」 2:「このライブラリ/ APIでどのようにクエリを実行しますか?」
グラフデータベースとNeo4jの構文がわかっているので、挿入クエリにキーワードとキーワードを挿入することはできません。
事前にお手伝いしようとしている皆さん、ありがとうございます。D
Neo4j .NET Boltドライバには多くの例があります。 –