Ejemplo n.º 1
0
 /// <summary> 返回实体属性或字段所映射的列名
 /// </summary>
 /// <param name="member">实体属性或字段</param>
 protected virtual string ColumnName(MemberInfo member)
 {
     return(WarpName(SourceNameAttribute.GetName(member)));
 }
Ejemplo n.º 2
0
 /// <summary> 返回实体类型所映射的表名
 /// </summary>
 /// <param name="type">实体类型</param>
 protected virtual string TableName(Type type)
 {
     return(WarpName(SourceNameAttribute.GetName(type)));
 }