CREATING WEB API IN ASP.NET CORE 2.0 Introduction Let’s create a Web API with the latest version of ASP.NET Core and Entity Framework Core. In this guide, we’ll use WideWorldImporters database to create a Web API. REST APIs provide at least the following operations: GET POST PUT DELETE There are other operations for REST, butContinue reading “CREATING WEB API IN ASP.NET CORE 2.0”
Author Archives: arjunpremier
Algorithm to find second largest number in arry
public class Demo { public static void Main() { int[] arr = new int[5] {99, 95, 93, 89, 87}; int i, max, min, n; // size of the array n = 5; max = arr[0]; min = arr[0]; for(i=1; i<n; i++)Continue reading “Algorithm to find second largest number in arry”
Kestrel Webserver
What is Kestrel Web server? Kestrel is an open source, cross platform, light weight and a default webserver used for Asp.Net Core applications. Asp.Net Core applications run Kestrel webserver as in-process server to handle web request. Kestrel webserver is based on async I/O library called libuv primarily developed for Node.js. By default, all Asp.Net core project templatesContinue reading “Kestrel Webserver”
Oops Concepts in C#
OOPs Concepts OOP is a technique to develop logical modules, such as classes that contains properties, fields and events. OOP provides many concepts such as inheritance, data binding, polymorphism etc. Object means a real word entity such as pen,paper, chair, table etc. It simplifies the software development and maintenance by providing some concepts: Object Class InheritanceContinue reading “Oops Concepts in C#”
C# Access Modifiers
Encapsulation in Object Oriented Programming C# A software development technique in which each module’s interfaces reveal as little as possible about the module’s inner working and other modules are prevented from using information about the module that is not in the module’s interface specification. What is Encapsulation ? Encapsulation is a process of hiding the members fromContinue reading “C# Access Modifiers”
What is new in C# 7?
Here is an overview of new features in C#: Out variables Pattern matching Tuples Deconstruction Discards Local Functions Binary Literals Digit Separators Ref returns and locals Generalized async return types More expression-bodied members Throw expressions // Out variables // Old way int parsedOld; string parseMeOld = “222224“; int.TryParse(parseMeOld, out parsedOld); Console.WriteLine(parsedOld); // New way stringContinue reading “What is new in C# 7?”
Solved : we are unable to download content due to network issues Visual Studio
Visual Studio we are unable to download content due to network issues Visual StudioThe Online service is not available visual studio Issue 1. Visual Studio User account login failed when try to login. Solution 1. Right click on the visual studio > go to properties > shortcut tabs > click on Open File Location buttonContinue reading “Solved : we are unable to download content due to network issues Visual Studio”
How to add twitter widget in blogspot ?
Twitter Widget You can display your latest Tweets in your sidebar by pasting embed code for a Twitter widget in a text widget. Here is an example of what it looks like: ADD A TWITTER WIDGET 1. Go to publish.twitter.com 2. Select what you want to embed. For a User Timeline, enter the username of the userContinue reading “How to add twitter widget in blogspot ?”
How to view deleted files in TFS Visual Studio?
Visual Studio TFS View Deleted Files Have you ever wanted to view the deleted files or source code branch missing in visual studio1. Open Visual Studio 2. Go to Tools > Options > Source Control3. Tick the Show deleted items in Source Control Explorer4. Click OK5. Now look for the deleted files.
Resolved TFS Server is not working
Visual Studio TFS Server Not working Have you ever wondered how to resolve TFS Server not working correctly, please read till end to solve.As a developer, when you work on daily basis, there might be a chance you would have worked with Fiddler Tool to capture .Net request/response from server that was required to addContinue reading “Resolved TFS Server is not working”
