Top DevX Stories
Creating Custom Export Filters for StarOffice with XSLT
WPF Wonders: Using DataTemplates
Crystal Reports Family Offers Options for Developers
Avaya Aura Session Manager video
Avaya Aura Overview video
Search the forums:

Go Back   DevX.com Forums > DevX Developer Forums > .NET

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 11-03-2009, 11:45 AM
joewmaki joewmaki is offline
Registered User
 
Join Date: May 2004
Location: Duluth MN
Posts: 311
Entity Association

I'm trying to build a simple application using the entity framework. I have 2 tables with a 1 to many relationship (Employee - EmployeeHistory). In the database I have a foreign key relationship defined (EmpID --> EmpID). The EmployeeHistory table's PK is defined as EmpID and StatusDate. The Entity wizard does not pick up the foreign key when creating the .edmx file. When I manually try to create the association it errors out because StatusDate is not mapped. There doesn't appear to be anyway to remove StatusDate from the association mapping. Any idea as to what I'm doing wrong?
__________________

...joe
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
a simple question about design patterns mkamoski .NET 1 08-13-2009 08:41 PM
How to call the ejbCreate() method of an entity bean from WITHIN the entity bean Jared Dinerstein Java 0 09-28-2002 07:23 PM
entity references in XSD definitions? unknown XML 0 04-02-2002 12:15 PM
Entity Beans and Data Change events Laxmi Prasad Java 2 05-17-2000 08:24 AM
Wanted: Entity EJBs With Configurable Attributes Jim Bowman Java 1 05-10-2000 06:20 PM


All times are GMT -4. The time now is 11:59 PM.


Sponsored Links



Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.