Domanda

I haven't been able to find a .NET (c#) CQL parser, despite my best Googling efforts. Anyone have one they'd be willing to share, or know if one exists? Thanks!

È stato utile?

Soluzione

If found this project (NCql) written in c#.

Altri suggerimenti

Writing your own parser should be easy enough, at least looking at the syntax. But the parser isn't the hard part -- the real work begins in translating query expressions to equivalent syntax in other data sources.

If I were tasked with finding a solution here, an approach I would explore:

  1. Write the CQL parser
  2. Create a translation layer to incorporate LINQ
  3. Add-in LINQ libraries (LINQ for SQL, LINQ for Objects, LINQ for yada-yada-yada)

As always, your mileage may vary.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top