302 1
How to check if I am using localhost server or not in C# MVC?

I am trying to create a background job using hangfire as explained in this article "Background jobs in ASP.NET MVC C# using Hangfire.io" but I don't want to run this background jobs when working locally.

So, How can I check if I am on localhost in C# & ASP.NET MVC and not run this background jobs?

...
Type
Question
300 1
How can I run raw SQL query in C#? ( With and Without ADO.NET)

I am trying to optimise my query to get data from database, so I would to know how can I directly run a sql query in my C#.

Currently I am using Entity framework with EDMX, so to improve query time, I would like to know how can I run direct sql query?

...
Type
Question
254 0
Widely asked C# Programming interview questions with answers
In this article, I have provided list of most widely used C# coding interview questions with answers, which a beginner or advanced developer should know.
Type
Article
218 0
Simple C# code examples with output (Console application example)
In this article, I have provided list of various examples of C# programs with output and explanation of basic code, which will help beginner or students to learn C# easily.
Type
Article
159 1
How to check if string is number (IsNumeric) in C#?

I have a string "123" and another string "Test", now I want to identify from which you these string conatins number, so How can i check if string is a number or not in C#, is there any method in C# or we need to create custom method for it?

Example :

"11" = true

"Hello"= false

...
Type
Question


94 0
Hello World C# program with explanation of code
In this article, I have provided code to print hello world in C# using Visual Studio console application with explanation of code for beginners.
Type
Article
63 1
How to check if File exists in C#? (Inside folder)

I am trying to download a file from a url, and there are many files, but I don't want to download files that already exists in my drive. So I want to implement to check if file already exists in a folder using C#?

...
Type
Question
25 1
How do I create object for IQueryable in C#?

I am trying to create and Instantiate IQueryable<T> object in my C# MVC project, but I am not able to create it, I would like to use it instead of List<T> = new List<T>, so how can I do it? I am trying this

...
Type
Question

Page 14 of 14