How To Enable Auto Format On Save in VS Code?
I'm a full-time Software Developer with over 4 years of experience working at one of the world’s largest MNCs. Alongside my professional role, I run a news blog, WorkWithG.com, which focuses on Google tools, tutorials, and news. I'm passionate about breaking down complex topics and making learning accessible for everyone.
ASP.NET Core Tutorial
In this course of ASP.NET Core, we will cover all the basic, intermediate, and advanced ASP.NET core concepts that help you build data-driven web applications by the end of this course you will be able to perform all the CRUD operations that are Create, Read, Update and Delete using Sequal server as our database.
The topics which we are going to cover in detail are-
- ASP.NET Core.
- ASP.NET Core MVC.
- ASP.NET Core Identity.
- Entity Framework Core.
What is ASP.NET Core?
ASP.NET Core is a cross-platform, high-performance, open-source framework for building modern, cloud-based, Internet-connected applications. ASP.NET Core is a redesign of ASP.NET 4.x and earlier it was named ASP.NET 5 and later is renamed ASP.NET Core.
Few benefits and features of ASP.NET Core.
Cross-Platform: ASP.NET Core applications can be developed and run across different platforms like Windows, macOS, Linux. ASP.NET Core applications can be hosted on IIS, Apache, Docker, and even Self-host in your own process.
Because of One Unified Programming Model for MVC and Web API, both the MVC Controller class and the ASP.NET Web API Controller class inherit from the same Controller base class and returns IActionResult.
ASP.NET Core has great build-in support for Dependency Injection which is a very great feature to learn.
ASP.NET Core Testability feature makes unit testing easy for developers.
It is an Open Source technology so it is continuously growing and improving with the support of developers from the open-source community.
Modular: ASP.NET Core provides modularity with Middleware Components. Both the request and response pipelines are composed using the middleware components. A rich set of built-in middleware components are provided out of the box. Custom Middleware Components can also be created.
Middleware - Is a piece of software that can handle HTTP request or response
Prerequisites for this course:
- Basic understanding of HTML, CSS, and C#.
- Prior MVC knowledge is helpful but not required.
ASP.NET Core Project File.
The Main() method called "CreateWebHostBuilder" and we are passing the command line argument to it. We can notice that "CreateWebHostBuilder" return "IWebHostBuilder" and "Build()" is called on that which build the webhost on which ASP.NET Core Application and on this we add "Run()" and start listening the incoming Http request.
- InProcess or
- OutofProcess.
ASP.NET Core InProcess Hosting.
Dependency Injection in ASP.NET Core.
This is the basic structure of our project when we are not using Dependency Injection and we are using some service(class) inside one or more Controller then we create an object of the service using the "new" keyword and suppose in the future if we make any changes like changing the name of the service then we have to make those changes inside all Controllers. This is an example of tightly coupling.
Now let's understand what happens when we work with Dependency Injection, suppose I have only one service so to work with dependency injection I need to create one interface of my service. Now I will not work directly with the service I will use an interface to create this field and to store the object of this particular service. Now if we are making any changes in service then we don't have to make any changes in the control which is using it.
How to configure Dependency Injection in ASP.NET Core?
- Transient (AddTransient<>) - A new instance of the service will be created every time it is requested.
- Scoped (AddScoped<>) - These are created once per client request. For each HTTP request
- Singleton (AddSingleton<>) - Same instance for the application.
I'm a full-time Software Developer with over 4 years of experience working at one of the world’s largest MNCs. Alongside my professional role, I run a news blog, WorkWithG.com, which focuses on Google tools, tutorials, and news. I'm passionate about breaking down complex topics and making learning accessible for everyone.
Structure Query Language (SQL) | RDBMS
What is SQL (Structured Query Language)?
- Use pascal notation for object name. Example: Products, Customers
- Use the singular form of nouns for the Column name. Example: FirstName, Address
- Each table must have a primary key.
- Use upper case for all SQL keywords. Example: SELECT, UPDATE, INSERT, DELETE
- Do not use white space in identifiers.
- Use parentheses to increase readability.
- Indent code to improve readability.
- Use ANSI joins instead of old-style joins.
- Do not use SELECT *
- Always use table aliases when your SQL statement involves more than one table.
- Do not use column numbers in the ORDER BY clause.
- Always use column list in INSERT statements.
Components of SQL.
- CREATE: used to create new Database objects like table, view, and stored procedure.
- ALERT: used to modify the existing structure of the database objects.
- TRUNCATE: used to remove all the data from database objects.
- DROP: used to remove the database object from the database.
- RENAME: used to change the name of the existing object.
- INSERT: used to insert data into a table.
- UPDATE: used to update existing data within a table.
- DELETE: used to delete records from the table.
- COMMIT: used to end the current transaction by making all pending data changes permanent.
- ROLLBACK: used to ends the current transaction by discarding all pending data changes.
- SAVEPOINT: used to mark a savepoint within the current transaction.
- GRANT: used to give user access privilege to the database.
- REVOKE: used to revert back the user access privilege to the database.
I'm a full-time Software Developer with over 4 years of experience working at one of the world’s largest MNCs. Alongside my professional role, I run a news blog, WorkWithG.com, which focuses on Google tools, tutorials, and news. I'm passionate about breaking down complex topics and making learning accessible for everyone.
Relational Data Model and Its Properties.
- Relation refers to the table and Cardinality refers to the number of rows in the table.
- Tuples refer to the row of the table.
- Attributes refer to the column of the table.
- Degree refers to the number of columns in the table.
- Domain refers to the range of values that can be stored for an attribute.
The primary key column cannot hold null values and there should be only one primary key column in each table.The foreign key column may contain null values and there can be more than one foreign key column in a single table.(alert-passed)
There are a few important properties of the Relational Data Model that we should kind in mind before we start working with the Relational Database.
- No duplicate Tuples are allowed.
- Tuples are unordered.
- Attributes are unordered.
- Attributes values are atomic.
Relational Database Management System.
I'm a full-time Software Developer with over 4 years of experience working at one of the world’s largest MNCs. Alongside my professional role, I run a news blog, WorkWithG.com, which focuses on Google tools, tutorials, and news. I'm passionate about breaking down complex topics and making learning accessible for everyone.
RDBMS Introduction | RDBMS Tutorial
RDBMS stands for Relational Database Management System. It is a system that is used by software to store, manage, query, or retrieve data from the database in which data is stored in the form of tables and one table might be connected with many other tables using primary and foreign key relations. RDBMS provides us the interface between software and database to manage and perform the required operations on the database. Before starting with RDBMS concepts, it is important to understand a few important terms.
What is Information System?
Data with its meaning is referred to as information, where the data means raw fact. In specific, an information system is an organized collection of hardware, software, supplies, and procedures and people who store, process and provide access to information.
What is File Based System?
When information is stored in flat files, which are maintained by the file system under the operating system control. Application programs go through the file system in order to access these flat files. Records consist of various fields, which are delimited by a space, comma, pipe, or any special character, etc.
Maintaining records in a File based system is great and we are able to free up all that space by moving all the data on the computer.(alert-success)
There are many disadvantages of using the traditional file-based system like:
- The application develops in an ad-hoc manner.
- Data redundancy, because data can be duplicated in two or more files.
- Data isolation, which means all the related data are scattered in various files having a different file format, and hence, writing a new application becomes difficult in retrieving data.
- In File Based System it is difficult to produce reports across sales, product, and customer data because they are maintained on a separate file system. (alert-error)
What is Database?
A database is a shared collection of logically related data and the description of this data, designed to meet the needs of an organization.
Advantages of Database Approach:
- Centralization of Information Management.
- Data is shared by different groups of users and application programs.
- Representation of complex relationship between data.
- Integrity Constraint handling.
- Advanced facility for backup and recovery.
What is Database Management System?
Database Management System (DBMS) is software that helps in defining, creating, and maintaining the database that provides controlled access to the database.
Advantages of Database Management System:
- Shared file system.
- Enforcement of Security.
- Enforcement of development and maintaining standards.
- Reduction of redundancy.
- Avoidance of inconsistency across files.
- Maintenance of integrity.
- Data Independence.
- Authentication- Whether the right user has the right to access the database.
- Authorization- Whether the right user has the right to access the database.
Data Model.
- Hierarchical models refer to storing the data by a tree structure. This model handles only parent-child relationships which are one-to-many relationships. It is not easy to perform, insert, update and delete operations in this model.
- In-Network models data is represented as a graph which Nodes and Edges. It addresses many to many relationships. It has a very complex design.
- Relational Data Model is a widely used data model. The data is stored in the form of tables with rows and columns and it is easy to use because there is no usage of a pointer. Data access is faster than other models. This data model uses the relational algebra concept.
I'm a full-time Software Developer with over 4 years of experience working at one of the world’s largest MNCs. Alongside my professional role, I run a news blog, WorkWithG.com, which focuses on Google tools, tutorials, and news. I'm passionate about breaking down complex topics and making learning accessible for everyone.
How a DotNet Program Execute ?
To understand how a DotNet program execution takes place we have to do the comparison between pre-Dotnet program execution with DotNet program execution. So before DotNet came into existence, we used to build the application using other programming languages like C++ or VB6.
Let's, for example, build an application using VB6 and compile it using a language compiler then an assembly gets generated with .dll or .exe extension depending on the type of application. This assembly is in Native code or Machine code format. We have to do the compilation because our operating system doesn't understand high-level programming languages, they only understand binary code of 0s and 1s. So basically we deploy that assembly onto the system to get executed which is nothing but a native code.
Now lets us understand what naive code means? Suppose you have Windows operating system and now you take the assembly which was compiled on the Windows operating system and try to run it on Linux or another operating system then it will give you an error because that code is native to only Windows operating system. That's why it is called Native code or Object code. This is the problem with the pre-DotNet application, they are not portable and we have to build different operating systems.
Now let's understand how a DotNet application executes. DotNet supports several programming languages like C#, VB, C++, etc. When you build a DotNet application using any of these languages and compile using the respective language compiler, we get an assembly here also but unlike pre-DotNet application, it does not contain native code, instead, it contains intermediate language. This is the main difference between a DotNet program and a Pre-DotNet program but your operating system cannot understand the intermediate language so we need a runtime environment name as CLR (Common Language Runtime) to convert the intermediate language to native code.
Now the question is how does this CLR come in between to do this job? When we install DotNet on our system, we basically install two important components one is the DotNet framework class library and another one is CLR. This is like a heart for DotNet program execution. This CLR layer exists between Assembly and the Operating system. Within CLR there is a very important component named as JIT compiler which takes IL (Intermediate Language) as input and generates native code as the output for the Operating system.
So the biggest advantage of the DotNet application is that is portable which means that the same code can run on any operating system with the help of CLR installed on that operating system. Another advantage of DotNet is that the runtime environment contains a garbage collector which will clean the object or memory that is not in use programmer doesn't have to worry much about memory management.
Note: The native code is not stored permanently anywhere after we close the program the native code is thrown away and when we execute the program again the native code will generate again. (alert-success)
I'm a full-time Software Developer with over 4 years of experience working at one of the world’s largest MNCs. Alongside my professional role, I run a news blog, WorkWithG.com, which focuses on Google tools, tutorials, and news. I'm passionate about breaking down complex topics and making learning accessible for everyone.
ASP.NET Life Cycle.
ASP.NET is a server-side technology used for developing dynamic websites and web applications. It is the latest version of active server pages, active server pages is a server-side scripting language and engine used for developing web applications. It is essentially a web-based platform that helps to create a dynamic web-based platform that helps to create dynamic web pages for programmers.
ASP.NET has some specific steps that are to be carried out for an application these steps are called Life Cycle.
ASP.NET Life Cycle is divided into two groups:
1. Application Life Cycle.
2. Page Life Cycle.
Application Life Cycle.
Application Start > Object Creation > HTTP Application > Dispose > Application End
- Application start is a method that can be executed by the webserver when a user makes a request.
- The HTTP requests contain all the information about the current request, like cookies and browser information.
- An object helps to process each subsequent request sent to the application that is created by the web browser.
- Dispose is an event that can be called before the application is destroyed. This helps to release manually unmanaged resources.
- Application end is the final part of the application and this can help to unload the memory.
Page Life Cycle.
- Page Request: When the user requests a page, the server checks the request and then compiles the page and responds to the user. If the page is requested several times then the cache will check the request to see if the output exists or not and after that it will send a response back to the user.
- Page Start: In this phase, two steps are carried out request and response. The request holds all information that was sent when the page was requested and the response holds all the information which send back to the user.
- Page Initialization: In this phase, all the controls on the page are set and each has a particular ID, and themes are applied to the pages.
- Page Load: In this phase, all the controls properties are loaded, and information is set using view state and control state.
- Validation: Validation happens when the page execution goes successful and then it returns true else the execution fails and it returns false.
- Event Handling: Event handling happens in response to validation. In this case, the page is loaded again and displays the same information so the postback event handler is called in order to overcome this problem. This event helps in checking the credentials of the user.
- Rendering: Rendering occurs before all the response information is sent to the user. It also stores all the information sent to the user.
- Unload: Unload phase helps to clean all the unwanted information, it also cleans the memory once the output is sent to the user.
I'm a full-time Software Developer with over 4 years of experience working at one of the world’s largest MNCs. Alongside my professional role, I run a news blog, WorkWithG.com, which focuses on Google tools, tutorials, and news. I'm passionate about breaking down complex topics and making learning accessible for everyone.
What is ASP.NET? Introduction to ASP.NET
Why use ASP.NET?
What is ASP.NET?
The architecture of ASP.NET.
Components of ASP.NET.
- Language: This can help in developing the web application. Some of them are VB.net and C#.
- Library: It is a prewritten class and coded template that a developer can use while developing an application. The most common library used in ASP.NET is the web library.
- Common Language Runtime: This is the platform that is used to execute the program. It is also use for performing activities like Garbage Collection.
- Basic of C#, JavaScript, HTML.
- Knownledge of ASP.NET MVC.
- Good Knowledge of OOPs
- Web Development.
- High Performance.
- Secure
- Multiple Development modes.
- Language Independent.
- Globalization and Localization.
I'm a full-time Software Developer with over 4 years of experience working at one of the world’s largest MNCs. Alongside my professional role, I run a news blog, WorkWithG.com, which focuses on Google tools, tutorials, and news. I'm passionate about breaking down complex topics and making learning accessible for everyone.



Trends is an amazing magazine Blogger theme that is easy to customize and change to fit your needs.