C#C
C#3y ago
10 replies
Mati_2709

❔ How should mine Connection String looks like? (EntityFramework)

During learning Entity Framework , I have noticed that most of ppl have (localdb) in fornt of the connection name (https://www.youtube.com/watch?v=SryQxUeChMc&list=PLdo4fOcmZ0oX7uTkjYwvCJDG2qhcSzwZ6 I had been starting from this tutorial).
I would like to know it before MIgration to be sure If something went good. So...

"Data Source=(uwu)\sqlexpress01;Initial Catalog=DAGRASSO Integrated Security=True;"
may capitalize or It is something wrong with database? Btw UWU is my PC name

...  
                protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            optionsBuilder.UseSqlServer(@"");
        }
...
image.png
image.png
YouTubedotnet
Learn more ➡️ https://learn.microsoft.com/training/dotnet/

Entity Framework Core is an Object-Relational Mapper that simplifies working with relational databases using strongly-typed .NET objects.

Please note: At 4:08, the narration should state "Since FirstName and LastName are non-nullable strings, EF Core knows that when it creates the tabl...
Getting Started with Entity Framework Core [1 of 5] | Entity Framew...
Was this page helpful?