2
Answers

Error - The name _configuration does not exist in the current context

Ramco Ramco

Ramco Ramco

3y
2k
1

Hi

   I am getting above error on below line

string myCnn = _configuration.GetConnectionString("myCnn");

 

using Core_Program1.Models;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Threading.Tasks;

Thanks

Answers (2)