title: 'Dotnet SDK' description: 'Connect to Spice using the Dotnet SDK' pagination_prev: null pagination_next: null tags:
github.com/spiceai/spice-dotnet
Create a SpiceClient using default configuration:
Or pass a custom flight address:
Use Query() with a Dictionary<string, object> for parameterized queries to prevent SQL injection and improve performance (v1.1.0+):
For more details, see Parameterized Queries.