How many types of inheritance are supported by Entity Framework? Entity Framework supports three types of inheritances 1. Table-per-Hierarchy (TPH) 2. Table-per-Concrete-Type (TPC) 3. Table-per-Type (TPT)
How we can force all the validation controls to run? The Page.Validate() method is used to force all the validation controls to run and to perform validation.
How we can handle SQL Exceptions in ASP.NET? We can use try, catch and finally block for error handling. Use SqlException class to handle exceptions specific to SQL Server.
try
{
//some code
}
catch(SQLException ex)
{
//Handle SQL Exception
}