From the above query I am able to find the properties of Prize Class by Intellisense but not able to find the properties of Laureate class.
I'm not sure if you are referring to the query results "data" or the Prize prize1 input parameter. There is not a single Laureate class in the results set. You've specifically defined a collection - a navigation property. You can either loop over the collection or use an index to get to a single Laureate class.
Collections (C#)
EF Core Relationships
This is an example NOT a solution.
// PUT api/<PrizeController>/5
[HttpPut("{id}")]
public ActionResult<Prize> Put(int id, [FromBody] Prize prize1)
{
Models.Prize data = db.Prizes
.Include(l => l.Laureates)
.FirstOrDefault(p => p.PrizeId == id);
//loop over the results
//does nothing
foreach(var laureate in data.Laureates)
{
string f = laureate.Firstname;
}
//Pick a specific result
//does nothing
string f2 = data.Laureates[0].Firstname;
//return the data result set
return Ok(data);
}
If you are trying to assing prize1.Laureates to the data.Laureates, then see your previous post where I showed you how to do this when populating the tables from a JSON file. Similar to the previous example the Prize prize1 should be a view model. And, the results should be a View model not an entity.
I recommend that you go through a few tutorials to learn the basics.