Hi Guys,

I have here 2 entities

let say

Flight
flight_id - PK
origin - FK1
destination - FK2

Countries
country_id - PK
country
code

sample code
Class Flight
{
      public int ID {get; set; }

      [BelongsTo(Column = "Origin", ForeignKey = "country_id")]
      public Countries Origin {get; set;}

      [BelongsTo(Column = "destination", ForeignKey = "country_id")]
      public Countries Destination {get; set; }

}


I'm getting an error when creating a schema on Activerecord. What will
be an alternative to this? thanks!



-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to