skip to Main Content

C#.net Core 6.0 web app connecting to Snowflake from Azure using RSA key in file

I need to connect my .Net Core 6.0 web app from Azure to snowflake. I have RSA key stored locally and in the connection string it is referenced: SnowflakeDbCon": "account=**************;authenticator=snowflake_jwt;user=xxxxxxxx;private_key_file=c:Keysrsa_key.p8;private_key_pwd=yyyyyyyyy;db=dbbbbbbb;schema=MY_SCHEMA;" Code: builder.Services.AddScoped(_=> new SnowflakeDbConnection { ConnectionString = builder.Configuration.GetConnectionString("SnowflakeDbCon") }); This…

VIEW QUESTION

I'm trying to make a dropdown list alphabetical order using aspx. Where can I add that in the following code below? – Asp.net

The code here creates a dropdown menu of abbreviations for different location. What I'm trying to do is to get all the abbreviation in alphabetical order. How do I go about doing that? <asp:DropDownList ID="ddl_loc" runat="server" DataSourceID="CriticalLog" DataTextField="abbrev" DataValueField="recordKey" Height="16px"…

VIEW QUESTION

Visual Studio 22 Multiple Startup Projects – Asp.net

I`m using VS 2022 Professional 2022 (17.2.0). I wanted to create a ASP.Net Core app with Angular in VS and used the Microsoft Tutorial for it. https://learn.microsoft.com/en-us/visualstudio/javascript/tutorial-asp-net-core-with-angular?view=vs-2022 When I want to start Multiple Project as once, only Angular CLI will…

VIEW QUESTION

How to optimize this query with EF? – Asp.net

I am trying to optimize this query using EF. This is the query that I had at the beginning. var result = new List<string>(); _dbContext.signumid_organization.ToListAsync().Result.ForEach(organization => { if (CalculateDifferenceBetweenEntriesAndConsummations(null, organization.Id).Result > threshold) { return; } if (!string.IsNullOrEmpty(organization.Admin)) { result.Add(organization.Admin); }…

VIEW QUESTION
Back To Top
Search