Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
   public class commande
    {
        public int id { get; set; }
        public int perssonneid { get; set; }
        public int bookid { get; set; }
 
        [DataType(DataType.Date)]
 
        [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
        [Display(Name = "Start Date")]
        public DateTime StartDate { get; set; }
 
        public virtual book bookgetr { get; set; }
        public virtual personne personngeter { get; set; }
 
 
    }
j'ai un controller qui envoyer une liste est pas identique a un model
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 
  public ActionResult all()
        {            var rslt = from c in db.commands
                           join b in db.boks on c.bookid equals b.id
                           join p in db.presons on c.perssonneid equals p.id
                           select new
                           {
                               b_name = b.name,
                               p_name = p.name,
                               StartDate = c.StartDate
 
                           };
             rslt .ToList();
            return View( rslt );
        }
je sias pas comment recevoir cett liste sur listview