HomeProductsADO.NET Data ProvidersMeet dotConnect for Snowflake: Your gateway to Snowflake data in .NET

Meet dotConnect for Snowflake: Your gateway to Snowflake data in .NET

We are thrilled to announce the release of dotConnect for Snowflake, a new ADO.NET data provider designed to simplify Snowflake connectivity for .NET developers.

With dotConnect for Snowflake, developers can access cloud data directly over HTTPS through the Snowflake REST API, without relying on the Snowflake ODBC driver or Snowflake .NET connector.

From executing SQL queries and loading large volumes of data to building Entity Framework Core applications and designing models visually with Entity Developer, the provider offers a comprehensive set of tools for working with Snowflake. It supports both .NET Framework and modern .NET applications and integrates with Visual Studio 2017–2026.

What makes dotConnect for Snowflake stand out

  • Driver-free connectivity. Connect directly to Snowflake over HTTPS through the Snowflake REST API without installing additional drivers or connectors. Execute SQL queries and retrieve data using familiar ADO.NET classes.
  • Flexible authentication. Choose from user name and password, RSA key pair authentication, and OAuth 2.0 to meet your application’s authentication requirements. The provider supports passphrase-protected private keys and browser-based OAuth authentication.
  • Extensive Entity Framework Core support. Build data-driven applications with EF Core 3.1, 8, 9, 10, and 11. Query data using LINQ, generate models from existing database objects, and work with migrations and transactions.
  • Visual ORM model design. Design Entity Framework Core models visually with Entity Developer, Devart’s ORM designer.
  • High-volume data loading. Streamline bulk data loading with dedicated components that support Snowflake internal stages, Amazon S3, and Azure Blob Storage.
  • Native Snowflake data type support. Work with semi-structured, spatial, and timestamp data types, including VARIANT, OBJECT, ARRAY, GEOGRAPHY, GEOMETRY, TIMESTAMP_LTZ, and TIMESTAMP_TZ.
  • Integrated Visual Studio experience. Manage Snowflake connections, explore database objects, authenticate using OAuth 2.0, and configure provider components without leaving your development environment.
  • Advanced connectivity and diagnostics. Optimize connection management with connection pooling and asynchronous operations, configure proxy connections, retrieve database metadata, and monitor SQL activity with dbMonitor.

Connect to Snowflake in a few lines of C# code

Getting started with dotConnect for Snowflake is straightforward. Use familiar ADO.NET classes to establish a connection, execute SQL queries, and retrieve data without additional connectivity components.

The following example connects to Snowflake using RSA key pair authentication and executes a parameterized query:

using Devart.Data.Snowflake;
using System;

using SnowflakeConnection conn = new(
    "Authentication Type=KeyPair;" +
    "Domain=myaccount.snowflakecomputing.com;" +
    "User=your_username;" +
    "Private Key=C:\\keys\\rsa_key.p8;" +
    "Passphrase=your_passphrase;" +
    "Database=your_database;" +
    "Warehouse=your_warehouse;" +
    "License Key=your_license_key");

conn.Open();

using SnowflakeCommand cmd = new(
    "SELECT id, name FROM orders WHERE id = :id", conn);

cmd.Parameters.Add(new SnowflakeParameter
{
    ParameterName = "id",
    Value = 1
});

using SnowflakeDataReader reader = cmd.ExecuteReader();

while (reader.Read())
    Console.WriteLine(reader["name"]);

In production applications, store credentials, private key passphrases, and other sensitive connection settings securely outside the source code.

Build Snowflake-powered applications with Entity Framework Core

Prefer working with objects rather than writing SQL? With built-in Entity Framework Core support, dotConnect for Snowflake lets you access Snowflake data using strongly typed entities and LINQ.

The following example demonstrates how to configure a database context using the UseSnowflake method, map an entity to a Snowflake table, and retrieve data using LINQ:

using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;

using AppDbContext db = new();

var orders = db.Orders
    .Where(o => o.Id > 100)
    .OrderBy(o => o.Name)
    .ToList();

[Table("ORDERS")]
class Order
{
    [Column("ID")]
    public long Id { get; set; }

    [Column("NAME")]
    public string Name { get; set; }
}

class AppDbContext : DbContext
{
    public DbSet<Order> Orders { get; set; }

    protected override void OnConfiguring(
        DbContextOptionsBuilder options) =>
        options.UseSnowflake(
            "Authentication Type=KeyPair;" +
            "Domain=myaccount.snowflakecomputing.com;" +
            "User=your_username;" +
            "Private Key=C:\\keys\\rsa_key.p8;" +
            "Passphrase=your_passphrase;" +
            "Database=your_database;" +
            "Warehouse=your_warehouse;" +
            "License Key=your_license_key");
}

Alternatively, you can use Entity Developer to design your EF Core models visually, as described in the next section.

Design Entity Framework Core models visually

Entity Developer provides a graphical environment for developing and maintaining Entity Framework Core models for Snowflake.

Generate models from existing tables and views, configure entities and associations, customize mappings, and generate entity and context classes – all without having to write mapping code manually.

Supported platforms and technologies

TechnologySupport
.NET platforms.NET Framework 4.5 and later, .NET Core 2.0 and later, .NET 5 and later
Entity Framework Core3.1, 8, 9, 10, and 11
Visual Studio2017–2026
Visual ORM designerEntity Developer
Authentication methodsUser name and password, RSA key pair, OAuth 2.0
NuGet packagesDevart.Data.Snowflake, Devart.Data.Snowflake.EFCore

Try dotConnect for Snowflake today

Ready to bring Snowflake data into your .NET applications?

dotConnect for Snowflake is now available through the Windows installer and NuGet. Whether you’re developing a new application or integrating Snowflake into an existing project, you can get started with familiar ADO.NET and Entity Framework Core technologies.

Download a fully functional free trial and discover how dotConnect for Snowflake can simplify your data access and application development.

dotConnect Team
dotConnect Teamhttps://www.devart.com/dotconnect/
The dotConnect Team is a group of experienced .NET developers at Devart who specialize in building and supporting dotConnect data providers. They share practical insights, coding tips, and tutorials on .NET development and database connectivity through the Devart blog.
RELATED ARTICLES

Whitepaper

Social

Topics

Products