[ ]这括号是什么意思。
/// <summary>
/// 用户id
/// </summary>
[DBColumn(Name = "id", Size = 4, dbType = SqlDbType.Int, PrimaryKey = true)]
[JsonProperty(PropertyName = "id")]
public int Info_id { get; set; }
[ ]这括号是什么意思。
/// <summary>
/// 用户id
/// </summary>
[DBColumn(Name = "id", Size = 4, dbType = SqlDbType.Int, PrimaryKey = true)]
[JsonProperty(PropertyName = "id")]
public int Info_id { get; set; }
这个叫做特性(attribute)用来给字段、类型打标记,通过反射,别的程序可以访问这些特性。
http://www.cnblogs.com/rohelm/archive/2012/04/19/2456088.html
http://www.cnblogs.com/luckdv/articles/1682488.html