-
Notifications
You must be signed in to change notification settings - Fork 19
Insert queries
Daniel Ferreira Monteiro Alves edited this page Apr 3, 2015
·
1 revision
SQL | Fluent |
---|---|
INSERT INTO TestVertexClass
SET Foo = 'foo string value',
Bar = 12345 |
ODocument document = database
.Insert("TestVertexClass")
.Set("Foo", "foo string value")
.Set("Bar", 12345)
.Run(); or ODocument document = new ODocument();
document.SetField("Foo", "foo string value");
document.SetField("Bar", 12345);
ODocument insertedDocument = database
.Insert<TestVertexClass>()
.Set(document)
.Run(); or ODocument document = new ODocument();
document.OClassName = "TestVertexClass";
document.SetField("Foo", "foo string value");
document.SetField("Bar", 12345);
ODocument insertedDocument = database
.Insert(document)
.Run(); |
|
ODocument document = database
.Insert("TestVertexClass")
.Cluster("TestCluster")
.Set("Foo", "foo string value")
.Set("Bar", 12345)
.Run(); or TestVertexClass obj = new TestVertexClass();
obj.Foo = "foo string value";
obj.Bar = 12345;
ODocument document = database
.Insert(obj)
.Cluster("TestCluster")
.Run(); |