I have a PM-Table in which are a SenderID and a ReciID.
Both have a foreign key construct in the MSSQL Table to table User.
How I can get the Information about SenderID.Username and ReciID.Username?
I know there is this method:
DataLoadOptions options = new DataLoadOptions();
options.LoadWith<Biethistorie>(a => a.Auktion);
options.LoadWith<Auktion>(a => a.Artikel);
dc.LoadOptions = options;
But the problem is, the User-table is very large and I only need the 1 information to display (username).
select new{} gives you only the fields that you choose to return.