0
asp.net中有兩種模板3.5MetaData.cs它在哪裏?動態數據實體?
1)動態數據Web應用程序。
2)動態數據Web應用程序。實體
我的SQL數據庫有Customer Table;列:ID,姓名,姓氏與
如果您使用第一個(動態數據Web應用程序);你不能看到ID列(客戶表)(LINQ到SQL)
但是如果你使用第二個(動態數據的Web應用程序。實體),你可以看到ID列
哪能尤其過濾列ID區。我的意思是;我需要ID列visible = false
我該如何使用tihs代碼?
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.DynamicData;
public class StaffsBusinessMetadata
{
[ScaffoldColumn(false)]
public object ID { get; set; }
}