Articles on Trending Technologies

Technical articles with clear explanations and examples

Explain the purpose of the .csproj file in an ASP.NET application

Akshay Khot
Akshay Khot
Updated on 22-Jun-2021 4K+ Views

The .csproj file tells dotnet how to build the ASP.NET application. It’s one of the most important files in an ASP.NET project.An ASP.NET project can depend on third-party libraries developed by other developers. Usually, these libraries are installed as Nuget packages using Nuget package manager. Once you install a package using Nuget, the name of the package along with its version is listed in the .csproj file.If you are familiar with Node.js, you can think of a .csproj file as a package.json file. Upon running the ‘dotnet restore’ command, dotnet uses the .csproj file to determine the packages to install ...

Read More

What are the benefits of choosing ASP.NET Core over ASP.NET?

Akshay Khot
Akshay Khot
Updated on 22-Jun-2021 3K+ Views

ASP.NET Core is a high-performance, cross-platform, and open-source framework. It allows you to build modern, cloud-enabled, and Internet-connected apps.With ASP.NET Core, you can:Build web applications and services, Internet of Things (IoT) apps, and backends for mobile applications.Work on your favorite operating system such as Windows, macOS, or Linux, and choose the tools and IDEs of your choice.Develop on and Deploy to the cloud or on-premises.Take advantage of containers and Docker to ease the deployment and distribution of your application.Run on the modern, fast, lightweight .NET Core framework.Some of the significant benefits of the ASP.NET Core framework over the ASP.NET framework ...

Read More

Explain how logging works in ASP.NET Core

Akshay Khot
Akshay Khot
Updated on 22-Jun-2021 7K+ Views

Logging is the process of recording events in software as they happen in real-time, along with other information such as the infrastructure details, time taken to execute, etc. Logging is an essential part of any software application. Having logs is crucial, especially when things go wrong. Logs help you understand the failures or performance bottlenecks and fix the problems.Logs are typically written to a database, console, or file, depending on the severity of the application and convenience. Although it's possible to record any data in the logs, you write informational messages and error messages in general. The informational messages capture ...

Read More

Explain the role of HttpContext class in ASP.NET Core

Akshay Khot
Akshay Khot
Updated on 22-Jun-2021 8K+ Views

The HttpContext encapsulates all the HTTP-specific information about a single HTTP request.When an HTTP request arrives at the server, the server processes the request and builds an HttpContext object. This object represents the request which your application code can use to create the response.The HttpContext object constructed by the ASP.NET Core web server acts as a container for a single request. It stores the request and response information, such as the properties of request, request-related services, and any data to/from the request or errors, if there are any.ASP.NET Core applications access the HTTPContext through the IHttpContextAccessor interface. The HttpContextAccessor class ...

Read More

How does ASP.NET Core provide data access with Entity Framework?

Akshay Khot
Akshay Khot
Updated on 22-Jun-2021 476 Views

Entity Framework is an ORM (object-relational mapper) framework that makes it easy to create, retrieve, update, or delete data from relational databases. Using Entity Framework, you can work with C# objects that abstract the database related code, so you rarely have to deal with raw SQL.The following figure illustrates where the Entity Framework fits into a layered architecture.Entity Framework Core (EF Core) is the new version of Entity Framework 6. Similar to .NET Core, EF Core is a lightweight, open-source, and cross-platform version of Entity Framework. It is developed to be used with .NET Core applications.To integrate EF Core into ...

Read More

Thevenin's Theorem and Thevenin Equivalent Circuit

Manish Kumar Saini
Manish Kumar Saini
Updated on 18-Jun-2021 2K+ Views

Thevenin’s Theorem is used, where it is desired to determine the current through or voltage across any one circuit element without going through the complex method of solving a set of network equations.Statement of Thevenin’s TheoremAny two terminal bilateral linear dc circuit can be replaced by an equivalent circuit consisting of voltage source in series with a resistance, the voltage source being the open circuited voltage across the open circuited load terminals and the resistance being the internal resistance of the source network looking through the open circuited load terminals.Explanation of Thevenin’s TheoremStep 1 – Remove the load resistor (RL) ...

Read More

Source Transformation with Solved Examples

Manish Kumar Saini
Manish Kumar Saini
Updated on 18-Jun-2021 28K+ Views

A practical voltage source consists of an ideal voltage source in series with an internal resistance (for an ideal voltage source, this internal resistance being zero, so that the output voltage becomes independent of the load current) While a practical current source consists of an ideal current source in parallel with an internal resistance (for an ideal current source, this parallel resistance is infinity).The practical voltage and current sources are mutually transferable i.e. a practical voltage source can be converted into a practical current source and vice-versa.Voltage to Current Source TransformationConsider a practical voltage of V volts having a series ...

Read More

Series RLC Circuit: Analysis and Example Problems

Manish Kumar Saini
Manish Kumar Saini
Updated on 18-Jun-2021 33K+ Views

Consider the circuit consisting of R, L and C connected in series across a supply voltage of V (RMS) volts. The resulting current I (RMS) is flowing in the circuit. Since the R, L and C are connected in series, thus current is same through all the three elements. For the convenience of the analysis, the current can be taken as reference phasor. Therefore, $$\mathrm{Voltage\:acorss\:\mathit{R}, \mathit{V}_{R}=\mathit{IR}}$$$$\mathrm{Voltage\:acorss\:\mathit{L}, \mathit{V}_{L}=\mathit{IX}_{L}}$$$$\mathrm{Voltage\:acorss\:\mathit{C}, \mathit{V}_{C}=\mathit{IX}_{c}}$$Where, XL = jωL = Inductive Reactince,  Xc = 1/jωC = Capacitive reactance. VR  is in phase with I. VL  is leading the current I by 90°. VC  is lagging the I by 90°.The total voltage ...

Read More

Resistors in Series

Manish Kumar Saini
Manish Kumar Saini
Updated on 18-Jun-2021 555 Views

The resistors are said to be connected in series, when they are joined end to end so that there is only one path for the current to flow.ExplanationLet the three pure resistors R1, R2 and R3 be connected in series against a DC voltage source V as shown in the circuit.Referring the circuit it can be written that$$\mathrm{\mathit{V}\:=\:\mathit{V}_{1}+\mathit{V}_{2}+\mathit{V}_{3}\:\:\:\:…(1)}$$Where V1, V2 and V3 being the voltage drops against individual resistors.Assuming I to be the total current in the circuit and R being the equivalent resistance of all the series resistors. Hence, the equation (1) can be written as$$\mathrm{\mathit{IR}=\mathit{IR}_{1}+\mathit{IR}_{2}+\mathit{IR}_{3}}$$$$\mathrm{\Rightarrow\:\mathit{R}=\mathit{R}_{1}+\mathit{R}_{2}+\mathit{R}_{3}\:\:\:\:…(2)}$$Thus, the equation (2) ...

Read More

Resistors in Parallel

Manish Kumar Saini
Manish Kumar Saini
Updated on 18-Jun-2021 486 Views

When one end of each resistor is joined to a common point and the other end of each resistor is joined to another common point so that there are as many paths for current flow as the number of resistors, it is called as a parallel circuit.The below circuit shows the connection of three resistors in parallel across a DC voltage source V. Let the circuit current be 𝐼 while the branch currents I1, I2 and I3 respectively. The voltage drop in each branch being same, so by Ohm’s law, we can write, $$\mathrm{\mathit{V}=\mathit{I}_{1}\mathit{R}_{1}=\mathit{I}_{2}\mathit{R}_{2}=\mathit{I}_{3}\mathit{R}_{3}}$$Also, by referring the circuit, $$\mathrm{\mathit{I}=\mathit{I}_{1}+\mathit{I}_{2}+\mathit{I}_{3}}$$$$\mathrm{\Rightarrow\frac{\mathit{V}}{\mathit{R}_{p}}=\frac{\mathit{V}}{\mathit{R}_{1}}+\frac{\mathit{V}}{\mathit{R}_{2}}+\frac{\mathit{V}}{\mathit{R}_{3}}}$$Where, RP ...

Read More
Showing 49311–49320 of 61,297 articles
Advertisements