I want to show Components in a tabs , so first of all create few components. In this project we have three components, First View Component public class AllViewComponent : ViewComponent { private readonly UserManager<ApplicationUser> _userManager; public AllViewComponent(UserManager<ApplicationUser> userManager) { _userManager = userManager; } public async Task<IViewComponentResult> InvokeAsync() { List<StudentViewModel> allUsers = new List<StudentViewModel>(); var items = await _userManager.Users.ToListAsync(); foreach (var item in items) { allUsers.Add(new StudentViewModel {Id=item.Id, EnrollmentNo = item.EnrollmentNo, FatherName = item.FatherName, Name = item.Name, Age = item.Age, Birthdate = item.Birthdate, Address = item.Address, Gender = item.Gender, Email = item.Email }); }
(1) Consistent Programming Model : .NET framework provides a consistent object-oriented programming model across different languages. You can use model to create programs for performing different tasks, such as connecting to and retrieving data from database, and reading from and writing to files.
(2) Cross-platform Support : Any window platform that supports CLR can execute .NET Application . that is .NET application enables interoperability between multiple window operating systems.
(3) Language Interoperability : Language interoperability is a feature that enables code written in different languages to interact with each other. This allow reusability of code and improves the efficiency of the development process for example , you can inherit a visual basic class in c# and vice versa. The CLR has a built in support for language interoperability . However , There is no assurance that the code written can be utilized by other developers using another programming language . Hence , to ensure multi-language code interoperability , a set of language features and rules for using them, called the common language specification (CLS) , is defined . The components that follow these rules and expose only CLS features are said to be CLS-compliant.
(4) Automatic Management of Resource - In .NET , you do not need to manually free the application resources , such as files , network and database connections .NET framework provides a features called CLR that automatically tracks the resources usages and relieves you from the task of manual resource management.
(5) Ease of Deployment - .NET framework makes the task of deployment easier . In most cases , to install an application , you need to copy the application along with its components on the target computer . .NET framework facilities easy deployment of application by installing new application or components that do not have an adverse effect on the existing application. In .NET application are deployed in the form of assemblies . Therefore , registry entries are not required to store information about components and application . In addition ,assemblies also store information about different versions of a single component used by an application . Therefore , the version problem is also eliminated in .NET framework.
(2) Cross-platform Support : Any window platform that supports CLR can execute .NET Application . that is .NET application enables interoperability between multiple window operating systems.
(3) Language Interoperability : Language interoperability is a feature that enables code written in different languages to interact with each other. This allow reusability of code and improves the efficiency of the development process for example , you can inherit a visual basic class in c# and vice versa. The CLR has a built in support for language interoperability . However , There is no assurance that the code written can be utilized by other developers using another programming language . Hence , to ensure multi-language code interoperability , a set of language features and rules for using them, called the common language specification (CLS) , is defined . The components that follow these rules and expose only CLS features are said to be CLS-compliant.
(4) Automatic Management of Resource - In .NET , you do not need to manually free the application resources , such as files , network and database connections .NET framework provides a features called CLR that automatically tracks the resources usages and relieves you from the task of manual resource management.
(5) Ease of Deployment - .NET framework makes the task of deployment easier . In most cases , to install an application , you need to copy the application along with its components on the target computer . .NET framework facilities easy deployment of application by installing new application or components that do not have an adverse effect on the existing application. In .NET application are deployed in the form of assemblies . Therefore , registry entries are not required to store information about components and application . In addition ,assemblies also store information about different versions of a single component used by an application . Therefore , the version problem is also eliminated in .NET framework.
Comments
Post a Comment