Questions




Answers
1
Missing Startup.cs in .NET 6, how to configure?

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

...
Read More
Answers
1
More than one DBContext was found - EF Core

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."

...

Read More
Answers
1
A C# code for database replication between two remote machines

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. 

...
Read More
Answers
1
Visual Studio Code Intellisense (autocomplete) not working

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.

...
Read More
Answers
2
How to convert nvarchar column to datetime in SQL Server?

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'

...
Read More
Answers
1
Getting error "$(..).Datatable is not a function"

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.

datatable-is-not-a-function-min

Although I have added jQuery datatable reference in my code.

...
Read More
Answers
1
How to remove all Google maps marker using Javascript?

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.

 

...
Read More
Answers
1
What is SQL Query to get dates between two dates?

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.

...
Read More
Answers
2
How to check if Columns exits in SQL Server table?

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?

...
Read More
Answers
2
How can I convert string to time in C#?

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#?

...
Read More

Page 2 of 51