c# - MVC ToString instead of Template -


I am trying to get a template for a list of items with EF in MFC 5.

Instead of providing a template, I get the storge of "class" (one of the productions in the model)

I have seen all the places and nothing to help me Found.

Any help would be greatly appreciated!

What do I get:

Level This is the speckled toasting of the class

I have the following: < P> ClassSpellLevelPair.cshtml (tried to share it in stock, folder with editor templates and Create.cshtml):

  @ Model Analyzer. Model Classpool LevelPayer & lt; Div & gt; @ Html.HiddenFor (m = & gt; m.Id) @ html.LabelFor (model => model.Class.Name) @ html.ValueFor (model => model.SpellLevel) & lt; / Div & gt;   

in the Create.cshtml:

  & lt; Div class = "form-group" & gt; @ Html.LabelFor (m => M level, new {@class = "control-label col-md-3"}) & lt; Div class = "col-md-9" & gt; @ Html.EditorFor (m => m.Levels, "ClassSpellle LevelPaper") & lt; / Div & gt; & Lt; Div & gt;   

The models are:

  Public class spelling: unit {... [display (name = "level")] Public virtual icon & lt; ClassesPellevelPear & gt; Level {receive; Set; } ...} Public Class ClassSpellLevelPair: Entity {Public ClassSpellLevelPair () {} Public ClassSpellLevelPair (Class C, int? L = null) {class = c; Spellleval = L; } Public class class {receive; Set; } Public int? Spell level {receive; Set; }} Public Sector Unit {Public Unit () {ID = Guid.NewGuid (); } [Key] Get Public Guide ID { Set; }}   

Edit: Added folder data for ClassSpellLevelPair.cshtml

It is known that the "Editor Templates" folder is actually "shared \ editor templates"

It is so obvious that google-ing 6 hours in total.

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -