You can add a reference of OQL.NET to your project as the following figure shows:
Using OQL.NET in C# code as follows:
using Macrobject.NObject;
Related Topics
Using OQL.NET