Hi All
I'm using Nhibernate v. 1.2.1
The task is to create Top10 List of songs. So I setup relationship between Top10 and Song entity as:
private IList<Song> _songs = new List<Song>(); [Bag(1, Name = "Songs", Table = "Top10Songs", Cascade = CascadeStyle.None, Lazy = true)] [Key(2, Column = "Top10_ID")] [ManyToMany(3, ClassType = typeof(Song), Column = "Song_id")] public virtual IList<Song> Songs { get { return _songs; } set { _songs = value; } }
The question how do I indicate that this interim table (Top10Song) needs an extra column to hold the position of the song in the top10 list.
Or may be it needs to be done difefrently?
Thanks in advance
V.
|