Columns of two related database tables in one ASP.NET GridView with EntityDataSource
I have two SQL Server tables with Primary Keys (PK) and a Foreign Key (FK) linking the two tables:
I have two SQL Server tables with Primary Keys (PK) and a Foreign Key (FK) linking the two tables:
How can I share the auto-generated entity data model (generated object classes) amongst all layers of my C# web app whilst only granting query access in the data layer? This uses the typical 3 layer approach: data, business, presentation.