Posts by Ester Ribeiro • 63 points
8 posts
-
0
votes0
answers112
viewsQ: How to insert Connection String in a console project in . NET CORE 3.1
appsettings.json in . NET CORE 3.1 no longer exists, has been integrated into . csproj. I would like to know how to configure my Connection string, the console project in . net core 3.1 is created…
-
2
votes2
answers121
viewsA: How to format decimal numbers using Fluent API in the Entity Framework?
If you need to set a decimal property, use: modelBuilder.Entity<Class>(entity => { entity.Property(e => e.PropertyName) .HasColumnType("decimal(10,2)"); });…
-
3
votes1
answer74
viewsQ: Why char. Parse(string) returns a number?
I am making a program that uses Typecast, but when I converted a string to char (char.Parse()), received the following return: 115's' What is the reason for the conversion of string to char return a…
-
0
votes1
answer591
viewsQ: mkConfigObj Knex error
I’m creating an Migration from the Knex, but when I run the command npx knex migrate:latest --knexfile knexfile.ts migrate:latest I get the following error: No Configuration file found and no…
-
-1
votes2
answers446
viewsA: How to use reserved words in SQL
In Sqlserver, when I use reserved words as field name in the table, I need to put SQL pro quotes recognize as field. In this case, the reserved word I was using was Status (sql was recognizing as…
-
-2
votes2
answers446
viewsQ: How to use reserved words in SQL
I need to enter a value in the table, but there is a field with the name 'Status', which is a reserved SQL word. How do I use this field in INSERT? insert into <<tabela>> (status) values…
-
-1
votes2
answers154
viewsQ: How to create an "Area" in MVC in . net core 3.1?
The path to creating an Area no longer appears in . net core 3.1 Path: Project > Right Click > Add > Area
-
0
votes1
answer297
viewsQ: Startup at . net core 2.2 and . net core 3.1
I am taking the MVC core course from developer.io, but in the course . net core 2.2 is used and I am using version 3.1. In creating a MVC project from scratch the route configuration code in .…