摘要: 建立一个Attribute:public class EntityMappingAttribute : Attribute { public string TableName{get;set;} public string SortOrder { get; set; } }建一个类:public class User { [EntityMapping(TableName = "test",SortOrder="5")] public string name { get; set; } }得到attribute的值 ...阅读全文
posted @ 2012-03-14 09:51 AndyLiu 阅读(131) 评论(0) 编辑