문제

Here's the thing: I built an app from an existing database. Later some changes were made to the db so I needed to add those fields to my controllers. I added a few properties to my Users class like so:

public string GHProducts { get; set; }

and then on the View:

@Html.EditorFor(model => model.GHProducts)

I also have some other properties not showing on the form, which I set from the controller in the create new user action. But neither of them is being set when users get created, all registries have NULL values for these manually added properties. So I'm obviously missing something and can't figure out how to bind everything together. I tried the "replace from server" option, but it didn't solve anything. Any ideas?

도움이 되었습니까?

해결책

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top