This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
How in lightspeed can I set the label for a field that is made up of two words. So say the field name is InvoiceDate. In MVC I would go: @Html.LabelFor(m => m.InvoiceDate) I would want it to display Invoice Date with the space though. In Entity Framework you would use: [Display(Name = "Invoice Date:")] Can you do something similiar in lightspeed? |
|
|
Yes, you can use the same approach. If you are doing this you will likely need to implement the property by hand in a partial class so you can apply the [Display] attribute to it, we wont emit this as part of the code generation. You can change this by selecting the entity property in the designer and then changing the Generation option to FieldOnly. You can then create a partial class for your entity and implement the property by hand (your best bet would be to just copy and paste the previously generated code and then go from there).
|
|