![]() |
VOOZH | about |
This article illustrates using LINQ to access tables within the Snowflake via the CData ADO.NET Data Provider for Snowflake. To achieve this, we will use LINQ to Entity Framework, which facilitates the generation of connections and can be seamlessly employed with any CData ADO.NET Data Providers to access data through LINQ.
CData simplifies access and integration of live Snowflake data. Our customers leverage CData connectivity to:
Many CData users use CData solutions to access Snowflake from their preferred tools and applications, and replicate data from their disparate systems into Snowflake for comprehensive warehousing and analytics.
For more information on integrating Snowflake with CData solutions, refer to our blog: https://www.cdata.com/blog/snowflake-integrations.
See the help documentation for a guide to setting up an EF 6 project to use the provider.
Enter your data source connection information.
To connect to Snowflake:
See the Getting Started guide in the CData driver documentation for more information.
Below is a typical connection string:
Authscheme=Password;URL=https://myaccount.snowflakecomputing.com;User=Admin;Password=test123;Server=localhost;Database=Northwind;Warehouse=TestWarehouse;Account=Tester1;MFACode=YourMFACode
Using the entity you created, you can now perform select , update, delete, and insert commands. For example:
SnowflakeEntities context = new SnowflakeEntities();
var productsQuery = from products in context.Products
select products;
foreach (var result in productsQuery) {
Console.WriteLine("{0} {1} ", result.Id, result.Id);
}
See "LINQ and Entity Framework" chapter in the help documentation for example queries of the supported LINQ.
Download a free trial of the Snowflake Data Provider to get started:
Download NowLearn more:
👁 Snowflake Enterprise Data Warehouse IconRapidly create and deploy powerful .NET applications that integrate with Snowflake data warehouse.