Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# how to get connection string from app config

var connectionString=ConfigurationManager.ConnectionStrings["CharityManagement"].ConnectionString;
Comment

get connection string from web.config in c#

get connection string
Comment

read connection string from app config using C#

using System; 
using System.Configuration;

private string GetConnectionString()
{
    return ConfigurationManager.ConnectionStrings["MyContext"].ConnectionString;
}
Comment

read connection string from web config using C#

using System.Configuration;


string conn = ConfigurationManager.ConnectionStrings["ConStringName"].ToString();
Comment

PREVIOUS NEXT
Code Example
Csharp :: loop datagridview c# 
Csharp :: tostring tmpro unity 
Csharp :: memset alternative in c# 
Csharp :: where is c# used 
Csharp :: how to loop an animation in unity 
Csharp :: how to chagne rotation in unity 
Csharp :: random in unity 
Csharp :: c# get last item in list 
Csharp :: convert generic to type c# 
Csharp :: c# 
Csharp :: add rotation unity c# 
Csharp :: convert array object to int[] c# 
Csharp :: c# create folder 
Csharp :: key value pair in c# 
Csharp :: excel which style property define background color in c# 
Csharp :: listview item click c# 
Csharp :: c# double to string with dot 
Csharp :: what is a protected int c# 
Csharp :: forech unity 
Csharp :: c# read file 
Csharp :: how to convert int to float in c# 
Csharp :: change button color in script unity 
Csharp :: get diff btw datetimes two C# 
Csharp :: c# foreach on a dictionary 
Csharp :: c# enum to int array 
Csharp :: c# loop through list of objects 
Csharp :: flip sprite in unity 
Csharp :: c# new object without class 
Csharp :: c# get country code 
Csharp :: difference between class and struct in c# 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =