.net - Entity Framework, Business Objects, and Foreign Keys -


i new ef , having hard time understanding how presentation layer can use information multiple business objects (each bo represents entity). need dataview display data order details (products ordered) description column products. how binding work have dataview display columns 2 different entities? without using ef, order details business object have call sql server return datatable created using t-sql join between 2 tables. don't know how accomplish same results using ef.

if presentation layer must use information multiple objects can either bind navigation properties - example load both order detail , product , navigate product's description through navigation property on detail. other way (common in mvc) creating new specialized view model type. type contain information need show in view , controller transform order details , products list of these custom classes.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -