I have the following function:
public void Test(IDataContext context)
{
return (From c In context.Table<DalLinq.Claim>()
Join cli In context.Table<DalLinq.ClaimLineItem>() On cli.ClaimId Equals c.ClaimId
Join ri In context.Table<DalLinq.ReceiptItem>() On ri.ReceiptItemId Equals cli.ReceiptItemId
Join r In context.Table<DalLinq.Receipt>() On r.ReceiptId Equals ri.ReceiptId
Select c, cli, ri, r)
}
I had this before as a variable in a function but I need it in multiple places now so I am placing this in a function but I have no idea what my return type should be. In the example it shows void but that is because I don’t know what to put.
Given the following / working code in the return statement, what should this return type be?
Thanks!
EDIT
I need it as a non executed format so I can’t ToList it or create custom objects for it as it will be filtered by which ever class is calling this method.
Description
You can create a class that represents your methods result.
Sample