Displaying custom field

I have a content type called Property and within this I have a custom field called Location.
I am trying to display this by using the following code: -
@Display(Model.Property.Location) but this is not working. Could anyone give me any ideas on how to do this please?

The Display method cannot be used to render fields; it is intended to render shapes. So if you want to render a field's value directly, simply render it out like this (assuming the custom field has a Value property; if you're not sure, lookup the class
definition of the field):

Ok. TextField lives in Orchard.Core/Common/Fields/TextField.cs (friendly hint: Visual Studio contains a search function which can be of great help to find definitions).
As you'll see, TextField contains a Value property, so something else must be wrong.

Aha, so that is a Content template. The Model of a content template contains a property called ContentItem, from which in turn you can access its parts and the fields of those parts. If you attached the Location field to the Property content item via the
admin, Orchard will have created a so called implicit part which has the same name as the content type. You should be able to access it like this: