Need to Know RoleManager Asp.Net Core 2019

Asp.net-core By Sagar Jaybhay

Previous article links :- https://sagarjaybhay.com/asp-net-core/ RoleManager In Asp.Net Core For this, we have a RoleManager class to Create Read Update Delete The roles and we use this conjunction with userManager class and for this, we have to pass IdentityUser object. For saving role identity created one table for it in a database which is the AspNetRoles table. First, we create a view model for creating role and for that we create rolename field in our model. After this, we create a view for that and in this view, we use…

Read More

Custom Validation Attribute Asp.Net Core 2019

Asp.net-core By Sagar Jaybhay

Complete Asp.Net Core Tutorial Step By Step :-https://sagarjaybhay.com/asp-net-core/ How to Create Custom Validation Attrbute Asp.Net Core? Built-in Validation Attribute Required Range StringLength RegularExpression Compare Etc.. When in your project we have some requirements that can not be full fill with some in-built validation attributes then we need to create some Custom validation attribute. In this, we have created one CustomValidator class which inherits from ValidationAttribute inbuilt class. After inheriting from this we need to override the IsValid method. Now in our example, we have to achieve the functionality of we…

Read More

SQL Join | Inner | Left | Right | Outer | Self | Cross Join 2019

Sql Server By Sagar Jaybhay

SQL Join By Sagar Jaybhay Join statement is used to combine data or rows from more than one table which is based on a common field between them. In general 2 tables are related to each other by using foreign key constrains. There are different types of join Inner Join Outer Join Cross Join In this Outer Join is divided into 3 sub joins. Left Join or left outer join Right Outer Join or Right Join Full Join or Full Outer Join. See below image we use this 2 tables…

Read More

Select:-Things to know about select statement in SQL 2019

Sql Server By Sagar Jaybhay

Identity Column & Cascading referential Integrity Constraints In SQL By Sagar Jaybhay About Tables In DataBase By Sagar Jaybhay SELECT Statement in SQL The select clause can retrieve 0 or more rows from one or more tables from the database or it can retrieve rows from views also. The select statement is used to select data from a table or database. The data which is our of our select query is called a result set. The select is a commonly used statement in SQL. Means for fetching the data from…

Read More

Tutorial:Layout View In Razor Pages Asp.Net Core Article 2

Asp.Net Core Razor Page Logo

Best Razor Pages in Asp .Net Core Part 1–https://sagarjaybhay.com/asp-dot-net-core-razor-pages-by-sagar-jaybhay-part-1/ Layout View In Razor Pages Part 2 Layout View In Razor Pages concept mainly uses for a consistent look and feel. Suppose we have 100 different pages and we need to add same header and footer for this pages it is tedious work also same for if you want to add or remove something from these pages, this work is tedious so to overcome this situation Layout View In Razor Pages for a consistent look and feel. Below is the common…

Read More