Skip to main content

Posts

Showing posts from March, 2017

Featured Post

How to use Tabs in ASP.NET CORE

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 });             }            

How to create Database in ASP.NET CORE 1.1 using model first

Technology changes, code optimization, newly design asp.net core 1.1. This article i wrote for you who want to make database in asp.net core 1.1, its a very simple technique provide by Microsoft developers. Thanks guys. Let start how to do this,  you can follow these steps to design database in it. Step-1: Create a new project in ASP.NET CORE using Visual Studio 2017 by the using following picture Step-2: In Model folder, add a new Student.cs class. Add some properties in it. But make sure , one primary key have in it. Step-3: Similarly in previous make, a new DataContext class for communicating table. Check this video for full details