ASP.Net Core වල Controller එකක් add කරනකොට එන මෙන්න මේ error

there was an error running the selected code generator: value cannot be null (parametrer "connectionstring")

ASP.Net Core වල මෙන්න මේ  error එක එන්න හේතුවක් වෙනව ConnectionStrings කියන වචනයේ අකුරු හරියට තිබුන් නැතිනම්.
නිවැරදි ආකාරයෙන් ConnectionString යන්න ඇතුලත් කල විට මේ ගැටලුව විසදෙනව.

"ConnectionStrings": {
    "StudentDBConnectionString": "Server=(localdb)\\MSSQLLocalDB;Database=StudentRegDB;Integrated Security=True;"
  },


Comments

Popular posts from this blog

UseInMemoryDatabse කියන method එක use කරන්න බැරිව error එකක් ආවොත්

This page isn't working කියන අවුල?

Angular පළමු වරට Serve කරද්දී එන "Running scripts is disabled on this system" කියන error එක?