References column name is pk

Original Post Eduardo Costa's Avatar

Eduardo Costa

27 Apr, 2010 04:55 PM via web

Hi,

I have the following classes:

class A
{ int pk; string name; B classB } class B
{ A classA; string name; }

I need make a reference between A and B but an error happens in insert, because i use the PK in Id and References

Id(x=>x.PK, "PK");
References(x => x.B, "PK");

what can i do?

    Reply to this discussion

    Preview Comments are parsed with Markdown. Help with syntax

    Attached Files

      You can attach files up to 10MB

      How many minutes are in an hour?

      Recent Discussions

      05 Jul, 2010 10:29 PM
      05 Jul, 2010 12:45 PM
      05 Jul, 2010 12:42 PM
      05 Jul, 2010 12:17 PM
      05 Jul, 2010 12:12 PM

       

      03 Jul, 2010 12:26 AM
      02 Jul, 2010 02:17 PM
      02 Jul, 2010 08:18 AM
      02 Jul, 2010 12:20 AM
      01 Jul, 2010 10:14 PM