MVC Tools

mvvm

  •  callagg said 1 year, 8 months ago:

    The Scafolding script does take into account sometimes we want to bind to a ViewModel
    and not a Model. Entity framwework reporting an error as ID missing

    Any ideas when you will have a fix?

    public class ToDoViewModel
    {
    public ToDoList TodoList { get; set; }
    List countries = new List();

    public List Countries
    {
    get
    {
    return countries;
    }
    }

    public ToDoViewModel()
    {
    countries.Add( new Country() { Name="Ireland"});
    countries.Add(new Country() { Name = "USA" });
    countries.Add(new Country() { Name = "France" });
    }
    }
    }

  •  palakg2p said 1 year, 8 months ago:

    Hi callagg

    I am not very clear about the problem you are facing.
    Could you please provide us with more information and also a sample application if possible.

    Thanks and Regards
    Palak

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.