Hi all. I work with project, that stores its data in xml-files. The
objects have their Id's and other fields. Reference to other object is
stored as identifier like this:
class CNode
{
  public Guid Id { get; set; }
}

class CEdge
{
  public Guid Id { get; set; }
  public Guid StartNodeId { get;set; } //reference to start node
  public Guid EndNodeId { get;set; } //reference to end node
}

But my goal is to migrate to database. Is it possible to write
mappings for such objects without any model refactoring or I need to
replace id of referenced object to the object itself:

class CEdge
{
  public Guid Id { get; set; }
  public CNode StartNode { get;set; }
  public CNode EndNodeId { get;set; }
}

Any help appreciated. Thanks.

-- 
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.

Reply via email to