Skip to main content

Posts

Dapper vs Entity Framework Core – Which One Should You Use in .NET?

Choosing the right data access strategy is a critical architectural decision in any .NET application. Two of the most widely used options are Dapper and Entity Framework Core (EF Core) . This article provides a detailed comparison covering performance, architecture, scalability, maintainability, and real-world usage scenarios. Understanding the Core Difference The primary difference between Dapper and EF Core lies in the level of abstraction they provide. Dapper is a micro ORM that offers minimal abstraction and maximum control. EF Core is a full ORM focused on developer productivity and maintainability. This distinction impacts performance, development speed, and long-term scalability. What is Dapper? Dapper is a lightweight object mapper that works directly with raw SQL queries. It extends IDbConnection and maps query results to C# objects with very little overhead. How Dapper Works Executes raw SQL No change tracking No state management ...
Recent posts

Android Toast Application, Toast text on button click.

Android Toast Application, Toast text on button click. In this Application We will Create an application that designs a layout with a text box and button named  submit. When the submit button is clicked than the text in the text box should be displayed in the toast. First of All we need to design activity layout file " activity_main.xml " file. <? xml version ="1.0" encoding ="utf-8" ?> < LinearLayout xmlns: android ="http://schemas.android.com/apk/res/android" xmlns: app ="http://schemas.android.com/apk/res-auto" xmlns: tools ="http://schemas.android.com/tools" android :layout_width ="match_parent" android :layout_height ="match_parent" android :orientation ="vertical" android :gravity ="center" tools :context =".MainActivity" > < EditText android :layout_width ="mat...

Create My Info Android application.

That will display your name, qualification, contact num, email id and address. All details must have different color. (using XML)   <? xml version ="1.0" encoding ="utf-8" ?> < LinearLayout xmlns: android ="http://schemas.android.com/apk/res/android" xmlns: app ="http://schemas.android.com/apk/res-auto" xmlns: tools ="http://schemas.android.com/tools" android :layout_width ="match_parent" android :layout_height ="match_parent" android :orientation ="vertical" android :gravity ="center" android :background ="#89898A" tools :context =".MainActivity" > < TextView android :id ="@+id/name" android :layout_width ="match_parent" android :layout_height ="wrap_content" android :layout_margin ="20dp" android :text ="Name: PK EasyLife" an...

Android Hello World Application

"Hello World" application. That will display "Hello World" in the middle of the screen in the red color with white background. Now Here We will create a android application that will display "Hello world" in the middle of the screen. Create a Hello Application with empty activity. and Write below mentioned code in your " activity_main.xml" file. <? xml version ="1.0" encoding ="utf-8" ?> < LinearLayout xmlns: android ="http://schemas.android.com/apk/res/android" xmlns: app ="http://schemas.android.com/apk/res-auto" xmlns: tools ="http://schemas.android.com/tools" android :layout_width ="match_parent" android :layout_height ="match_parent" android :gravity ="center" android :background ="#ffffff" tools :context =".MainActivity" > < TextView android :layout_wi...

Find missing number from array range C, C++

Missing number between array's lowest value and highest value elements in C.             #include <stdio.h> int main ( ) { int arr [ 5 ] = { 2 , 5 , 20 , 18 , 15 } ; int min = arr [ 0 ] , max = arr [ 0 ] , i , j , flag = 0 ; for ( i = 0 ; i < 5 ; i ++ ) { if ( arr [ i ] > max ) { max = arr [ i ] ; //find max value } if ( arr [ i ] < min ) { min = arr [ i ] ; //find min value } } for ( i = min ; i < max ; i ++ ) { for ( j = 0 ; j < 5 ; j ++ ) { if ( i == arr [ j ] ) { flag = 1 ; break ; } else { flag = 0 ; } } if ( flag == 0 ) { printf ( "%d " , i ) ; } } return 0 ; }       ...

String Caesar Cipher Program in C and C++

 String Caesar Cipher Program in C              It is one of the simplest encryption technique in which each character in plain text is replaced by a character some fixed number of positions down to it. #include <stdio.h> void main() {     char s[50];     int i, j=0, n;         printf("Enter a String: ");     gets(s);     for(i=0; s[i]!=NULL; i++)     {       s[i] = s[i] + 1;     if (s[i] > 'z')          s[i] = s[i] - 26;     }     printf("%s",s); }          Output:-          Here I also change the case of Vowels in Upper Case.(Optional)   #include <stdio.h> void main() {     char s[50];     int i, j = 0, n;   ...

Select, Insert, Delete, and Update using Stored Procedure in ASP.NET

Select, Insert, Delete, and Update using Stored Procedure in ASP.NET Introduction   Here, we will see how to create select, insert, update, delete statements using stored procedures in SQL Server And ASP .NET .First of all we create a table. CREATE TABLE demo(     id      int      IDENTITY (1,1)      NOT NULL      PRIMARY KEY,     name      nvarchar (50)      NULL,     city      nvarchar( 50)      NULL )                                                             OR Here I inserted few records in the demo table . ...