示例#1
0
 /// <summary>
 /// 构造方法
 /// </summary>
 /// <param name="columnAttribute">特性</param>
 /// <param name="property">属性信息</param>
 public FieldMemberInfo(ColumnAttribute columnAttribute, PropertyInfo property)
 {
     this.Column = columnAttribute;
     this.property = property;
     this.MemberInfo = property;
     this.Name = columnAttribute.ColumnName ?? property.Name;
     this.CanRead = !columnAttribute.WriteOnly && property.CanRead;
     this.CanWrite = !columnAttribute.ReadOnly && property.CanWrite;
 }
示例#2
0
 /// <summary>
 /// 构造方法
 /// </summary>
 /// <param name="columnAttribute">特性</param>
 /// <param name="field">字段信息</param>
 public FieldMemberInfo(ColumnAttribute columnAttribute, FieldInfo field)
 {
     this.Column = columnAttribute;
     this.field = field;
     this.MemberInfo = field;
     this.Name = columnAttribute.ColumnName ?? field.Name;
     this.CanRead = !columnAttribute.WriteOnly;
     this.CanWrite = !columnAttribute.ReadOnly;
 }
示例#3
0
 /// <summary>
 /// ���췽��
 /// </summary>
 /// <param name="columnAttribute">����</param>
 /// <param name="field">�ֶ���Ϣ</param>
 public FieldMemberInfo(ColumnAttribute columnAttribute, FieldInfo field)
 {
     this.columnAttribute = columnAttribute;
     this.field = field;
     this.memberInfo = field;
     this.name = columnAttribute.ColumnName == null ? field.Name : columnAttribute.ColumnName;
     this.canRead = !columnAttribute.WriteOnly;
     this.canWrite = !columnAttribute.ReadOnly;
 }