ilyad
unread,Dec 23, 2011, 8:46:04 AM12/23/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ConfORM
The entity key is structure:
struct MyEntityKey
{
public int Key1 {get; protected set;}
public string Key2 {get; protected set;}
//ctor, equals, gethashcode miss
}
My entity:
class MyEntity
{
// my composite key
public virtual MyEntityKey ID {get; protected set;}
public virtual string SomeProperty {get; protected set;}
//ctor, equals, gethashcode miss
}
Please, help me configure mapping for this entity.
class MyEntityMapping : ClassMapping<MyEntity>
{
public MyEntityMapping()
{
// what I must write here?
}
}