Is it possible to use xquery in .net API? I did not find something?
I have a connection to the database.
Is there a dll for xpuery or what i have to do?
Thank you very much.
Is it possible to use xquery in .net API? I did not find something?
I have a connection to the database.
Is there a dll for xpuery or what i have to do?
Thank you very much.
Read a API documentation
This sample are visual and simply:
TaminoConnection connection = new TaminoConnection(“http://myserver/tamino/mydb”);
connection.Open(TaminoConnectionMode.LocalTransaction);
TaminoTransaction transaction = connection.BeginTransaction();
TaminoCommand command = connection.CreateCommand(“mycollection”);
// 10 items per page
TaminoQueryResponse qr = command.Query(new TaminoQuery(“input()/Property”),10);
other sample already to go:
TaminoQuery updateQuery = new TaminoQuery(“update replace for $p in input()/Property//Name where
$p=’Hugo Maier’ with Hugo Meier”);
TaminoQueryResponse updateResponse = command.Query(updateQuery);
TaminoUpdateItem updateItem =
(TaminoUpdateItem) updateResponse.GetSingleItem(typeof(TaminoUpdateItem));
Console.WriteLine(“collection=”+updateItem.collection+" doctype"+
updateItem.doctype+" id="+updateItem.id);