Hello, I have started using Visual Studio 2022 and Was trying to create a new ASP.NET Core (.NET 6) project, but when I tried to add new JSON settings in
Startup.cs
, I wasn't able to found this file? So How can i configure JSON settings or database context details in .NET 6 without startup.cs
I am trying to add new migrations in ASP.NET Core 3 web-api application which has already created database and using code-first approach, so when I trying to add new migrations, after creating Class and adding it in DBContext, getting this error, as shown below
"More than one DbContext was found. Specify which one to use. Use the '-Context' parameter for PowerShell commands and the '--context' parameter for dotnet commands."
...
I am a C# newbie, I was trying to create a desktop application for merge replication between server and client using sql server. But I don't know how to go about it.
...I am trying to use Visual Studio Code instead of Visual Studio for a C# project, but Visual Studio code Intellisense (Autocomplete) suggestion is not working correctly, and doesn't show any suggestions when using Ctrl+Space, shortcut.
What can be the issues? Any suggestions, thanks.
...Hello, I am using nvarchar
column to store datetime
as string, but I would like to convert this column from nvarchar into datetime in sql server. How can I do it.
Current time format is '2019-01-29 14:55:50'
...When I am trying to add jQuery datatable in my ASP.NET Core project I am getting below error "$(..).DataTable is not a function", here is the error image in Google Chrome console.
Although I have added jQuery datatable reference in my code.
...Hello, I was able to
add multiple markers using javascript in google maps, but now I would like to remove them without reloading google maps. I was able to remove one using 'marker.setMap(null);
' but how can I remove all markers at once using Javascript in Google Maps.
...
Hello, I have one more question related to SQL query, in which I would like to know how can I get all dates between two dates using SQL Query. For example, I have start date = 10/02/2022 and end date = 14/02/2022, then query must return dates 11/02/2022, 12/02/2022 and 13/02/2022.
I am using SQL Server for this, but I think SQL query will remain the same for oracle or MySQL too.
...Hello, I am still learning SQL and SQL Server, so I would like to know how can I verify or check if a column exists in the database table using SQL Query in SQL Server?
...Hello, I am trying to convert string to time in C#, how can I do that, for example, if I have time as "04:05 pm" in string format, how do I get it as time, timespan, or DateTime format in C#?
...