Posts

PRACTICE ASSIGNMENTS

  ✅ 1. Banking System (Accounts → Transactions) 🎯 Scenario Create a banking module where Account operations are defined in one namespace and Transaction reports in another . 📌 Requirements Namespace: BankCore Class: Accounts Method: public static void CheckBalance() Namespace: BankReports Class: TransactionReport Call CheckBalance() from BankCore Display: Available Balance: 50000 ✅ 2. Employee Payroll System 🎯 Scenario HR system where salary calculation is in one project and report generation in another 📌 Requirements Namespace: HRModule Class: Payroll Method: public static void CalculateSalary() Namespace: HRReports Class: SalaryReport Call method from HRModule Add another method: CalculateBonus() ✅ 3. E-Commerce Order System 🎯 Scenario Order processing and invoice generation handled separately. 📌 Requirements Namespace: OrderModule Class: OrderService Method: public static void CreateOrder()...

FRAMEWORK, . NET FRAMEWORK AND .NET CORE

  📘 1. What is a Framework? ✅ What A framework is a pre-built structure (collection of libraries, tools, and rules) used to develop applications faster. 👉 Think of it like: A ready-made skeleton where you just add your logic. ✅ Why use a Framework? ✔ Saves development time ✔ Provides built-in features (security, database, UI, etc.) ✔ Standard structure (easy to maintain) ✔ Reduces coding effort ❌ Why NOT use a Framework? ❌ Less flexibility (must follow rules) ❌ Learning curve ❌ Can be heavy (performance overhead) ✅ How it works Framework provides base structure Developer writes custom code Framework handles common tasks 💡 Example (Without Framework vs With Framework) ❌ Without Framework // Everything must be written manually // Database connection, validation, UI logic, etc. ✅ With Framework // Framework provides ready-made methods Console . WriteLine ( "Hello Framework!" ); 📘 2. .NET Framework ✅ What .NET Framework is a...

INTRODUCTION TO C#

📘 Introduction to C# ✅ What is C#? C# (C-Sharp) is a modern, object-oriented programming language developed by Microsoft. 👉 It is mainly used to build: Desktop applications Web applications APIs Enterprise software ✅ Why use C#? ✔ Simple and easy to learn ✔ Strongly typed (reduces errors) ✔ Supports Object-Oriented Programming (OOP) ✔ Works well with .NET ecosystem ✔ Widely used in industry ❌ Why NOT use C#? ❌ Not ideal for low-level system programming (like OS/kernel) ❌ Requires .NET runtime ❌ Less popular than JavaScript for frontend ✅ How C# Works (Basic Flow) Write code in .cs file Compile using .NET compiler Run → Output shown in console/app 📘 Core Concepts Explained 1️⃣ namespace ✅ What A namespace is a container for classes. ✅ Why Avoids naming conflicts Organizes code ✅ Example namespace MyApp { } 2️⃣ internal ✅ What An access modifier . ✅ Why Restricts access within the same project only ❌ Why not public? public exposes it ...

DevOps CI/CD Documentation for EMSv2026

  🚀 DevOps CI/CD Documentation for EMSv2026 📌 1. Understand Your Application Stack Before CI/CD, identify your components: Frontend → Angular / React Backend → Spring Boot / Django / .NET Database → SQL Server / MySQL Repo → GitHub 👉 CI/CD will automate: Build Test Deploy 🔧 2. Prerequisites ✔ GitHub repository (already created) ✔ Working project (frontend + backend) ✔ Basic Git knowledge ✔ Server or Cloud (Azure / AWS / Local VM) 🗂️ 3. Project Structure (Recommended) EMSv2026/ ├── frontend/ ├── backend/ ├── database/ ├── docker/ └── .github/workflows/ 🔁 4. CI/CD Pipeline Flow Developer → Git Push → CI Build → Test → Package → Deploy → Live App ⚙️ 5. Step-by-Step CI Setup (GitHub Actions) ✅ Step 5.1: Create Workflow Folder Inside your project: .github/workflows/ ✅ Step 5.2: Create CI Pipeline File Create file: ci-cd.yml ✅ Step 5.3: Add Basic CI Pipeline Example (Angular + Spring Boot/ASPY.NET CORE REST) name: EMSv2026 CI/C...

ANGULAR 20.3.18 - SEARCH AND PAGINATION - CUSTOM FILTER USING PIPE

Image
  ANGULAR 20.3.18 Employee Search with Pagination   🔷 1. Overview This feature allows users to: ✔ Search employees by Name, Designation, or Contact ✔ View results with Pagination ✔ Perform search without calling API again (client-side filtering) 🔷 2. Technologies Used Angular 20 (Standalone Components) Template Driven Forms ( ngModel ) Custom Pipe ( filterEmployees ) ngx-pagination 🔷 3. Service Layer (Data Fetching) 📌 What? Fetch employee data from API and store in service. 📌 Why? Centralized data storage Avoid multiple API calls 📌 Code getAllEmployees (): void { this . httpClient . get< any >( environment . apiUrl + 'Employees' ) . subscribe({ next: response => { this . employees = response . $values; } }); } 🔷 4. Component Layer (UI Control) 📌 What? Calls service Holds search input Displays data 📌 Code searchTerm : string = '' ; p : number = 1 ; itemsPerPage : number ...