F
Fresno Bob
Hi I'm trying to use the entity framework. I'm using a test database with 2
tables tbl_Customers who have many tbl_Invoices. What I want to create is an
entity Invoice with "look up" information tbl_Customers e.g. a property that
is part of the Invoice, which contains a customer name, much like a view.
I have tried creating an entity based on the tbl_Invoices and add table
mappings to tbl_Invoices and tbl_Customers. I get a variety of errors for
instance if I map an ID in the Invoice to the ID in the tbl_Invoices I get
an error saying there are 2 things mapping to the same id or there could be
a collision of primary keys.
I am sorry I don't have the errors to hand. Could anyone talk me through
creating an entity, which works like a view?
tables tbl_Customers who have many tbl_Invoices. What I want to create is an
entity Invoice with "look up" information tbl_Customers e.g. a property that
is part of the Invoice, which contains a customer name, much like a view.
I have tried creating an entity based on the tbl_Invoices and add table
mappings to tbl_Invoices and tbl_Customers. I get a variety of errors for
instance if I map an ID in the Invoice to the ID in the tbl_Invoices I get
an error saying there are 2 things mapping to the same id or there could be
a collision of primary keys.
I am sorry I don't have the errors to hand. Could anyone talk me through
creating an entity, which works like a view?