Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Help with Entity Framework and SQL express databas

Author  Topic 

JeffInTexas
Starting Member

7 Posts

Posted - 2011-12-09 : 10:23:16
I'm trying to understand what all is in this framework and how to use it.

I have a table Clients, which has Id and Name as columns.
I have a table Invoices, which has ClientID and InvoiceNumber as columns.

I defined a relation in the db called ClientInvoices, which relates Invoice.ClientId to Client.Id.


I want to use the Entity Framework for a simple loop to use the relation and go through all the invoices, and for each invoice, show the client Name.

It ought to be simple, but I am a newbie at this.

Thanks.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-12-09 : 10:25:14
if ClientID is already there in Invice why do you need a seperate table ClientInvoices?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -