What is CRUD operation LINQ PART 7 With Example Code

The StudentModel class and the PaginationViewModel < T > class in the FreeWebApplication.Models namespace define the structure of student entities and a view model for pagination, respectively.Let's examine each class



 

namespace FreeWebApplication.Models {
    public class StudentModel {
        public int Id  { get; set; }
        public string Name  { get; set; }
        public DateTime ? CreateDate { get; set; }
        public DateTime ? UpdateDate { get; set; }
        public bool ? IsDeleted { get; set; }
        public bool ? IsActive { get; set; }
        public string EmailId { get; set; }
        public string Gender  { get; set; }
}
public class PaginationViewModel<T>
{
    public IEnumerable<T> Items { get; set; }
        public int PageIndex { get; set; }
        public int PageSize { get; set; }
        public string CurrentSort { get; set; }
        public int TotalPages { get; set; }
    }
 
}