C# 中 类和属性前面的方括号是什么意思
usingSystem.Data.Linq.Mapping;[Table(Name="Customers")]publicclassCustomer{[Column(Is...
using System.Data.Linq.Mapping;
[Table(Name = "Customers")]
public class Customer {
[Column(IsPrimaryKey = true)]
public string CustomerID {get; set;}
[Column(Name = "ContactName")]
public string Name { get; set; }
[Column]
public string City {get; set;}
}
最近在学linq ,不知道[]是干嘛用的? 展开
[Table(Name = "Customers")]
public class Customer {
[Column(IsPrimaryKey = true)]
public string CustomerID {get; set;}
[Column(Name = "ContactName")]
public string Name { get; set; }
[Column]
public string City {get; set;}
}
最近在学linq ,不知道[]是干嘛用的? 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询