I'm new to Dynamic Data. I want to change the DisplayName of tables in Default.aspx page so I can set meaning full names for them. Also I want to change column names of tables when I List, Edit and Insert mode. How can I do that in c# language?
相关问题
- Carriage Return (ASCII chr 13) is missing from tex
- How to store image outside of the website's ro
- 'System.Threading.ThreadAbortException' in
- Request.PathInfo issues and XSS attacks
- How to dynamically load partial view Via jquery aj
相关文章
- asp.net HiddenField控件扩展问题
- asp.net HiddenField控件扩展问题
- Asp.Net网站无法写入错误日志,测试站点可以,正是站点不行
- asp.net mvc 重定向到vue hash字符串丢失
- FormsAuthenticationTicket expires too soon
- “Dynamic operations can only be performed in homog
- What is the best way to create a lock from a web a
- Add to htmlAttributes for custom ActionLink helper
Just for anyone else seeing this post I had the same requirements as the original poster. I tried the suggestions and these still didn't work. I found out (this might be obvious) that you need to ensure you have a "namespace" declaration in your partial class. The namespace needs to be the same as the entity model you are using i.e. under App_Code you should have a Model.designer.cs file - your namespace needs to be the same as
You can do this by setting the
DisplayName
(fromSystem.ComponentModel
) attribute on each table. For this you'll need a partial class for each table that you're scaffolding with Dynamic Data e.g.renders...