typedb/typedb-docs

Missing using in C# driver example

Closed this issue · 1 comments

gbtb commented

Description of issue

using TypeDB.Driver.Api;
using TypeDB.Driver.Common;

Example in the docs doesn't compile because one using is missing.
error CS0103: The name 'Drivers' does not exist in the current context

Package versions I used:

<PackageReference Include="TypeDB.Driver" Version="2.28.0" />
<PackageReference Include="TypeDB.Driver.Pinvoke.linux-x64" Version="2.28.0" />

Affected docs article

https://typedb.com/docs/drivers/csharp/overview

Suggested solution

using TypeDB.Driver;
using TypeDB.Driver.Api;
using TypeDB.Driver.Common;

Good catch.
Strangely, the original implementation worked on my machine. I've added the line and re-tested everything.