There are two contexts of two data.
var o = (from a in dc.ozon select a); var v = (from a in dc.labirint select a); How do I merge their data and display a single table in a general table in the view.
There are two contexts of two data.
var o = (from a in dc.ozon select a); var v = (from a in dc.labirint select a); How do I merge their data and display a single table in a general table in the view.
You can use Join and create a collection of anonymous objects.
var result = from ozon in dc.ozon join labirint in dc.labirint on ozon.isbn equals labirint.isbn select new { Name = labirint.Name, book_id = labirint.book_id... }; If the anonymous type does not fit, then create a model in which there are the necessary properties and fill in the same type
You can read more here in Russian
Source: https://ru.stackoverflow.com/questions/635969/
All Articles
dc. Do you need to list the different objects (you get the labirintocollection and thevozon collection) in one table? - koks_rs