0

I want to store the primary key to a property of my object called dBID. Currently using a RestClient to get data from my db but I'm not too sure how I am to be able to return the DbSet of primary keys and get them to match like they do on the dB. So for example I have this get function that currently returns all of the elements in this table.

    // GET: api/ObjectX
    public IQueryable<ObjectX> GetObjectX()
    {
       return dB.ObjectX
    }

What I want to do is make a similar query to return the primary keys which can be accessed through for example a .id in the server side, to my object property list on the client side.

JayPhillips
  • 87
  • 1
  • 7

0 Answers0