Posts
Showing posts from April, 2024
backend
- Get link
- X
- Other Apps
Entity framework core: public string Name {get; set;} = null!; //here Name is not nullable public string? Address {get; set;} //here Address is nullable https://www.youtube.com/playlist?list=PLdo4fOcmZ0oXCPdC3fTFA3Z79-eVH3K-s Suppose there is a delivery website: Contoso Pizza. How they will work: So in the database, we are going to add data of customers, when they order, we need to add order details, that will be separated order and order details, also those are the things that they have ordered we need to store those. Pretty simple right? Customer: int Id string FirstName string LastName string Address string Phone string Email using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace EntityFramework.Models { internal class Customer { public int ...
C# what i know:
- Get link
- X
- Other Apps
Namespace is to hold all the classes and arrange those, they are like bookshelves where we collect the books. Classes are like books here, public is an access modifier, if a book is accessible to the public or is it private. Inside a method parameter is a property. যখন বই পড়তে জাই, তখন আমাদের খুজতে হয় বুকশেলফ এ। এই বুকশেলফ হলো নেমস্পেস। এখানে বিভিন্ন রকমের বই রাখা হয়, একেক টা বই ক্লাস আকারে সাজানো থাকে সেখানে। বই গুলো পাব্লিক না কি প্রাইভেট হবে তার উপর নির্ভর করে কে কে বই পড়তে পারবে। সেভাবেই ক্লাস গুলো প্রাইভেট আর পাব্লিক এক্সেস মডিফাইয়ার হিসেবে রাখা হয় খুব সহজে কেউ সেগুলো নিতে চাইলে আমরা সেটা কন্ট্রল করতে পারবো। মেথড এর ভেতরে প্রপারটি রাখা হয় জাকে আমরা প্যারামিটার বলি। Encapsulation: Protect important data inside the class which we don't want to expose outside the class. Binds a data member and member function in a single unit. We can make variables, properties and methods private. There are six access modifiers: ক্লাস এর ভেতরে যে সকল তথ্য আমরা ক্লাস এর বাইরে প্রকাশ ক...
Angular what i know:
- Get link
- X
- Other Apps
We can create the project by this command: ng new learning-app --no-standalone If we create project like this then we can have app.module.ts file on our project. When we work with angular we work with three types of environment. One is node, another one is typescript and other one is angular itself. So all three will have json file in the angular app project. dependency in package.json: whatever file we need to create an angular application. On the other hand the devDependency is whatever we need to use in the production phase. We can use npm that is node package manager and we can install whatever package we need to add on our project that will be in the package.json file. On angular.json: we have all the projects info and the tools we need to work on the project we just add those inside this file. Whenever we say the app is render it is html, when we say app is running it is typescript. Inside the main.ts file: we can find the bootstrapmodue, bootraping is running first, ...
Roadmap
- Get link
- X
- Other Apps
.NET Core Development Roadmap Git Basic C# Advanced C# (HF OOP বই) Problem solving (200+ Leetcode) Basic SQL →(Basic, create, delete, tables (কাজ), function, triger) joining (4 ধরনের) windows application development ← Web/browser application where join, onder join, if else, loop 00ps in c# ADO.NET basic (insert, update, delete, select) Application বানাবো। Windows App Development using windows form. Project → Inventory management system (usen product catagory entry, purchase, sells) HTML CSS/Bootstrap/Tailwind javascript Asp.NET cone MVC (API) Entity Framework (C# code convent to sal code) Testing Project → আগের বানানো, Inventory management system কে web app convent করবো। (customer login, admin login, onder, login, Payment, onder details, deleveny, return, refund) components: Web API (ASP.NET cone MVC এর মতোই) DI, logging (history eur), CI/CD, Dockert, Blazon, MA UI, Service Bus, Message, Broker, Signal R, Advanced SQL, NoSQL Job Books Clean Code Clean Coder Clean Anchitecture HF O...
sql coding
- Get link
- X
- Other Apps
What does primary key do? Primary key: One or more columns that can be used as an unique identifier for each row in a table. it makes sure that the table row can not be empty and that will be unique, no two row can have the same value for primary key. Primary key is important as it will work on the relationship between other table and work with other table's foreign key. Foreign key:One or more columns that can be used together to identify single row in another table. as the primary key this foreign key is also not null and it connect to the primary key. CREATE DATABASE record_company; //we want to use the database that we already have created USE record_company; CREATE TABLE bands( id INT NOT NULL AUTO_INCREMENT; //id is a column and after that we define the data type, we used auto increment as we want it to increment whenever the user put and update the id name VARCHAR(255) NOT NULL; //VARCHAR is like string but in sql we don't use string, we defi...
ASP dot net backend what i know in shorts:
- Get link
- X
- Other Apps
We can create a controller, If we want to make a controller name as HelloWorld then we create a controller class by HelloWorldController and then we make it inherited from the controller class, then we can make a method to it using IActionResult to it and that will be a index method on our HelloWorld controller and we need to make a view HelloWorld for that as Index.cshtml, as this was the index method on our newly created HelloWorld controller. We use the ViewData for this. Its is a dictionary. We can give instruction to the controller to give output but it is a good practice to make separate view for that output and make a view for that and also view will only be responsible for the output not for any of the business logic. Data passing from controller to view: We define the ViewData inside the controller and then we pass some information as a object and also that can be of any data type. Simply return the view(). That will be going directly to the view of the project from the c...
CSS all i know.
- Get link
- X
- Other Apps
1. Inline-block will make it stay side by side: suppose we have icon and text to the right, if we use this it will align side by side. 2. Hitesh grid video on tailwind CSS is god level where I can have all control for all the element grids in the display and I won't have any problem for that. 3. We use flex when we want to display the item in the horizontal manner. 4. 1em = 100% of parent. When body has defined as 20px and inside body h1 is 1em means it's same as body = 20px as well. If it's 2em = 40px. 5. 1rem= 100% of root. Here root is HTML element that enclose everything. CSS Positioning: Static(Default one): Original one. If we put left or top to it, won't affect as it is default. Relative: Item is positioned relative to its default position. Left, Top: 50 px. So in this we can have full control of customizing the top, left, right, bottom, but it makes a mess with this so it's not recommended. Absolute: Either Role 1: Relative to nearest positioned ancest...
Need to learn
- Get link
- X
- Other Apps
CSS tools to customize UI: MUI, Mantine, Chakra With your skills in Angular, Tailwind CSS, DOM manipulation, and asynchronous programming with TypeScript, combined with your knowledge of ASP.NET Core, including MVC, EF, and authentication/authorization, you've built a solid foundation for full-stack development. This combination is powerful for creating modern, responsive web applications that are both visually appealing and functionally robust. Here are some suggestions on how to leverage and expand your skill set further: Deepen Your Full-Stack Capabilities State Management : For complex Angular applications, consider learning state management libraries like NgRx or Akita. Understanding state management will help you build more predictable, manageable, and scalable Angular applications. Progressive Web Apps (PWA) : Learn how to transform your web applications into PWAs using Angular Service Workers. This will enhance the user experience by making your web applications avai...