Hi,
Is it possible to map the following legacy table structure?

table Foo { Id (PK), Code (Unique), .... }
table Bar { Id (PK) }
table FooBars { FooCode, BarId }

The entity class would look like this:

class Foo
{
   public virtual Guid Id { get; set; }
   public virtual string Code { get; set; }
   public virtual ISet<Bar> Bars { get; set; }
}

class Bar
{
   public virtual Guid Id { 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to