background:
-- the database is Oracle.
-- PKs for both tables (TICKETS, NOTES) are generated by sequences
(SEQ_TICKET_ID, SEQ_NOTE_ID)
-- Silverlight & RIA Services
question:
-- given the following, what should my mapping look like?
public class Ticket
{
[Key]
public int TicketID {get;set;}
[Include]
[Association("Ticket_Notes",
"TicketID",
"TicketID"]
public IList<Note> Notes = new List<Note>();
}
public class Note
{
[Key]
public int NoteID {get;set;}
[Include]
[Association("Note_Ticket",
"TicketID",
"TicketID",
IsForeignKey = true)]
public Ticket Ticket {get;set;}
public int TicketID {get;set;}
}
--
You received this message because you are subscribed to the Google Groups
"nhusers" 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/nhusers?hl=en.