Base solution for your next web application
Open Closed

How to Get a Specific Column Values from a Data Table? #8994


User avatar
0
palco.ps created

Hi,

how can i get category column values only without all table columns in AppService Method ?


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You can do something like this;

    var query = (from item in _itemRepository.GetAll().Where(e=> e.Reference = refence)
    select new {
        Category = item.Category
    });