This is a migrated thread and some comments may be shown as answers.

Some conflicts with foreign key?

1 Answer 39 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jürgen
Top achievements
Rank 1
Jürgen asked on 03 Oct 2011, 09:11 AM
Hello Telerik.
I have such Entity structure:
I have an Entity [Workstation] - it is a one PC.
For each [Workstation] (PC) user can connect some devices - Entity [Device]
The list of devices is Entity [DeviceConfiguration]
Each [DeviceConfiguration] "knows" for what Workstation it was created.
And each [Workstation] can contains many [DeviceConfiguration].
And for [Workstation] it is possible to select  DefaultDeviceConfig
[Persistent] 
public class Workstation 
  public string Name { get; set; } 
  // ... 
  public DeviceConfig DefaultDeviceConfig { get; set; } 
    
[Persistent] 
public class DeviceConfig 
  public string Name { get; set; } 
  / ...
  public IList<Device> DeviceList
  public Workstation DeviceWorkstation { get; set; } 
}
  
[Persistent]
public class Device
{
  public string Name { get; set; }
  // ...
}
but when I use mapping to create/update my DB - I can't see foreign keys in tables [Workstation] and [DeviceConfig]
I expect that for properties DefaultDeviceConfig and DeviceWorkstation were created 2 foreign keys.
But - not!
Why? Is it some conflicts with crossreference?
But in IBExpert I can create these constraints by manual. Why not by mapping?

1 Answer, 1 is accepted

Sort by
0
Ivailo
Telerik team
answered on 06 Oct 2011, 07:50 AM
Hi Jürgen,

If you are using the official Q2 2011 release - assembly version 2011.2.713, then this is a known issue in our forward mapping. Can you update to our latest stable build (2011.2.908.1) and try again?

Do not hesitate to get back to us if you have any issues.

Greetings,
Ivailo
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's SQL Server Community Awards. We are competing in TWO categories and every vote counts! VOTE for Telerik NOW >>

Tags
General Discussions
Asked by
Jürgen
Top achievements
Rank 1
Answers by
Ivailo
Telerik team
Share this question
or