DSDikshya Subediindikshyasubedi.hashnode.dev·Sep 20, 2023 · 3 min readOpen/Closed Principle Explain With An Exampleusing System; public class Fighter { private IWeapon _weapon; public Fighter(IWeapon weapon) { _weapon = weapon; } public void Fight() { _weapon.Attack(); } } public interface IWeapon { void Attack(...00
DSDikshya Subediindikshyasubedi.hashnode.dev·Aug 16, 2023 · 2 min readDapper in .Net 6Dapper is a popular lightweight Object-Relational Mapping (ORM) library for .NET applications. It was developed by Stack Overflow to provide a simple and efficient way to work with databases while minimizing the performance overhead typically associa...00
DSDikshya Subediindikshyasubedi.hashnode.dev·Aug 11, 2023 · 2 min readVariable in JavaScriptIn JavaScript, variables are used to store and manage data. You can declare variables using the var, let, or const keywords. Starting with ES6 (ECMAScript 2015), it's recommended to use let and const over var for better scoping and immutability, resp...00
DSDikshya Subediindikshyasubedi.hashnode.dev·Aug 11, 2023 · 2 min readArray in JavaScriptIn JavaScript, an array is a data structure that can hold multiple values of any type. Arrays are defined using square brackets [ ] and can contain elements separated by commas. Here are some examples of working with arrays in JavaScript: Creating an...00
DSDikshya Subediindikshyasubedi.hashnode.dev·Aug 11, 2023 · 1 min readUnique Key Vs Primary KeyPrimary Key: a. It must contain unique values for each row, meaning no two rows can have the same value in the primary key column(s). b. A primary key column cannot contain NULL values, as it must uniquely identify each row. c. A table can have only ...00