If you're not adding new entries to program type you can just ignore
that table completely in your mapping. If you are adding entries then
and enum won't really work.

So a program's type will either be a property or a
HasMany<EnumType>.AsSet

On Jan 27, 10:25 am, Dani <[email protected]> wrote:
> Hi,
> I have this problem to map:
>
> tblProgram
> {
>   int programID (PK)
>   String Program Name
>
> }
>
> tblProgramType
> {
>   int programTypeID (PK)
>   String programTypeName
>
> }
>
> tblProgramProgramTypes
> {
>   int ProgramID        (PK)
>   int ProgramTypeID (PK)
>
> }
>
> On the c# side -
> The ProgramType is an enum (I don't want to create a class for that)
>
> How do I map the program class to the join table to programtypes ?
>
> HasManyToMany doesn't support custom types, and it looks like I need
> to create a class for type and can't use enums....
>
> Thanks,
> Dani

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" 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/fluent-nhibernate?hl=en.

Reply via email to