This is a migrated thread and some comments may be shown as answers.

[Solved] many-to-many ( many to many ) add/edit

0 Answers 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
jakkamma dusku
Top achievements
Rank 1
jakkamma dusku asked on 20 Jun 2011, 11:11 AM
How can I do a many-to-many relationship crud operation using ASP.net MVC grid control.

Also if possible I want to use a checkboxlisthelper ( from many existing helper online to choose the many items )

Example ( using Code First )
-------------------------------------------
public class Blog
{
    public int Id { get ; set ; }
    public string Title { get; set; }
    public virtual ICollection<Tag> Tags { get ; set ; }
}
public class Tag
{
    public int Id { get ; set ; }
    public string Name { get ; set ; }
    public virtual ICollection<Blog> Blogs { get ; set ; }
}

In Blog creation View I want to show a checkboxlist ( or atleast a multi select listbox ) to choose tags fopr the blog and save

Thanx
Tags
Grid
Asked by
jakkamma dusku
Top achievements
Rank 1
Share this question
or