why bin needs an update online after change in class model [DisplayName("Name")]

21 Views Asked by At

I addded Data annotations in my class model, but it was not showing online, only offline.

[DisplayName("Last Name")]
public string Name { get; set; }

After some research I realised I was not doing anything wrong.

So, I decided to upload the whole site, instead of only the class file. And it worked out.

Than I found that I needed to upload the files in the bin directory. This was sufficient after a change to the dara annotations in a class model.

So my problem is already solved. I was not syntax related, nor was the class incorrect.

Why is that? Why do I need to update the bin directory?

0

There are 0 best solutions below