Using Thrift to connect to Cassandra from .NET.

I am interested in Cassandra, and I would like to test it at home on my computer running Windows XP. I found instructions for installing Cassandra on Windows , and it already works; I also found a thrifty Windows executable and generated C # interfaces, but ... when I try to compile this generated code in Visual Studio I got: " Could not find type name or namespace" Thrift " (you are missing the using or directive assembly links?), so I am missing something else, but I canโ€™t find what ... What is this? Is it a DLL? I looked through the thrift code and I canโ€™t find anything related to .net, so I donโ€™t enough?

Thanks in advance.

Sincerely.

+5
source share
3 answers

From the Thrift Wiki :

C # code generated by Thrift uses the Thrift namespace. To be able to use the code generated by Thrift, you need to reference Thrift.dll in your project in order to access the Thrift namespace. This is necessary to compile the C # code generated by Thrift.

Therefore, you just need to add a link to Thrift.dll in your project. The wiki page contains instructions for building Thrift.dll from the source, if necessary.

+5
source

No need to generate frugality, just download hectorsharp , compile and link in your .net project. He has already completed all the work necessary to use .net to use cassandra

+3
source

All Articles