I was wondering about the following ....
I have the following setup
public class User { public virtual string Id { get; set; } public virtual string FirstName { get; set; } public virtual string LastName { get; set; } public virtual IList<Application> Applications { get; set; }
}
public class Application { public virtual int Id { get; set; } public virtual string Name { get; set; } public virtual string Description { get; set; } public virtual string Owner { get; set; } public virtual IList<Component> Components { get; set; }
} public class Component { public virtual int ApplicationId { get; set; } public virtual int Id { get; set; } public virtual string Type { get; set; } public virtual string Name { get; set; } public virtual string Description { get; set; } }
There are 4 tables User which has columns Id,FirstName,LastName Application which has columns Id,Name,Description,Owner Component which has columns Id,ApplicationId, Name, Type,Description (Id, ApplicationId is a compositeKey)
UserApplication which has Columns (UserId, ApplicationId) this Links Users to their Applications.
I was wondering how I would set up the Mapping file. Could any help or point me in the right direction
thanks Rak
|