Skip to main content

Posts

Origin of C#

  Origin of C# In the late 1990s, after the ECMA standardization effort resolved the compatibility issues between Netscape JavaScript and Microsoft JScript—resulting in the creation of ECMAScript—Microsoft found itself involved in another major legal dispute, this time with Sun Microsystems over the use of Java technology. As a consequence, Microsoft decided to develop a new programming language and an entirely new application development platform independent of Java. The new language and platform were initially codenamed COOL (C-like Object Oriented Language) and NGWS (Next Generation Windows Services) respectively, under the leadership of renowned language designer Anders Hejlsberg , who had previously worked on Turbo Pascal and Delphi. Microsoft's objective was ambitious: to provide a modern, object-oriented language that combined the productivity of Visual Basic with the power of C++, while also unifying the fragmented Microsoft development ecosystem. The company sought to ad...

Entity Framework: Code First Approach in .NET

  🚀 Entity Framework: Code First Approach in .NET Entity Framework (EF) is a powerful Object-Relational Mapper (ORM) that allows developers to work with databases using C# classes instead of raw SQL queries . 🔷 What is Entity Framework? As discussed in the previous blog, Entity Framework simplifies database interaction by mapping C# objects to database tables , enabling clean, maintainable, and strongly typed data access. +-------------------+ +---------------------+ +------------------+ | C# Classes | ----> | Entity Framework | ----> | Database | | (Entities) | | (ORM Layer) | | (Tables/Rows) | +-------------------+ +---------------------+ +------------------+ 🔷 Entities and Domain Classes 📌 Entity Classes Entity classes represent database tables . Each object represents a row. Example: public class Student { public int Id { get ; set ; } public string Name { get ; set ; }...

Entity Framework: Database First Approach in .NET

Getting Started with Entity Framework: Database First Approach in .NET Entity Framework (EF) is a powerful Object-Relational Mapper (ORM) that allows developers to work with databases using C# objects instead of writing raw SQL queries. 🔷 What is Entity Framework? Entity Framework simplifies database interaction by mapping database tables to C# classes, enabling clean and maintainable code. +-------------------+ +---------------------+ +------------------+ | C# Classes | ----> | Entity Framework | ----> | Database | | (Entities) | | (ORM Layer) | | (Tables/Rows) | +-------------------+ +---------------------+ +------------------+ 🔷 Entities and Domain Classes 📌 Entity Classes Entity classes represent database tables. Each object corresponds to a row in the table. 📌 Domain Classes Domain classes represent business logic and real-world entities. Entities: Have primary keys Val...