How to map a "join-table" in entity framework

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hy all,

I started implementing an application based on the ADO.NET Entity
Framework. The basics are clear, at least from my point of view.

At the moment I'm trying to map a "join table" to a relation. The
scenario is the following:
- Table with an id (=PK) and a title
- Item with an id (=PK) and a title
-> relation is many to many and implemented with a join table which
contains an id (=PK) and a sequence number as additional information

In my model I wanted to simplify it a bit. I want the model to have
tables containing many items and a sequence number. My problem is that
the entity framework forces me to map the primary key of the join
table.

Does anybody have a good idea?

Kind regards,
Yvonne
.



Relevant Pages

  • Re: State design pattern proliferation issue
    ... a framework that will allow the development of applications that will ... People build state machines since ages. ... flow is not predefined. ... It is up to the state machine implementation to determine if a particular sequence of events is valid or illegal. ...
    (comp.lang.java.programmer)
  • Re: Morality Question
    ... >> either understanding the basics of the scientific ... >> method or a basic understanding of logic. ... framework, but what is in fact taught is utter rejection ...
    (rec.arts.sf.composition)
  • Re: PHP5 frameworks
    ... There is a nice 'screencast' 20 minute movie which shows the basics of ... the framework. ...
    (comp.lang.php)
  • Re: What bothers me...
    ... I think you can declare any managed type by using the framework ... designation even when they don't map to a specific VB datatype. ...
    (borland.public.delphi.non-technical)
  • Re: CWnd::GetDlgItem
    ... Why is that since the windows API function GetDlgItem ... Because the framework calls the API version to obtain the HWND, ... CTempWnd and attach the HWND to it and add it to the temporary handle map. ...
    (microsoft.public.vc.mfc)