Skip to main content

Posts

Showing posts from October, 2023

what is DAPPER ? how it works?

What is DAPPER?  Dapper is a simple and lightweight Object-Relational Mapping (ORM) library for .NET. It provides a way to interact with a database using SQL queries while mapping the results of those queries to .NET objects. Dapper is designed to be fast, efficient, and easy to use, making it a popular choice for developers who want more control over their SQL queries and database interactions compared to traditional ORMs. Here's how Dapper works: Query Mapping:  Dapper allows you to write raw SQL queries and map the results to .NET objects. You can use SQL queries to retrieve data from a database and instruct Dapper on how to map the returned columns to the properties of your .NET classes. This provides a high degree of control over the SQL code executed against the database. Parameterized Queries:  Dapper supports parameterized queries, which help protect your application against SQL injection. You can pass parameters to your SQL queries and Dapper will safely handle t...

HTTP (Hypertext Transfer Protocol), how http works?

 How HTTP works? HTTP (Hypertext Transfer Protocol) is the foundation of data communication on the World Wide Web. It's a protocol that defines how information is exchanged between a client (typically a web browser) and a web server. Here's how HTTP works: Client-Server Model: HTTP follows a client-server model. The client (usually a web browser) sends requests to a web server, and the server processes these requests and sends responses back to the client. Request-Response Cycle: A typical HTTP interaction involves a request-response cycle. The client sends an HTTP request to the server, and the server responds with the requested data, which could be a web page, an image, a document, or other resources. HTTP Methods: HTTP defines several methods (also known as HTTP verbs) that describe the action to be performed on the server. The most commonly used methods are: GET : Retrieve data from the server. POST : Send data to the server, often used for submitting forms. PUT : Update an...