private void AddColumn(MemberInfo member, Attribute attribute) { DatabaseColumnAttribute column = attribute as DatabaseColumnAttribute; if (column != null) { DatabaseColumn c = member is FieldInfo ? new DatabaseColumn((FieldInfo)member, column) : new DatabaseColumn((PropertyInfo)member, column); AddColumn(c, column.Select); } VirtualDatabaseColumnAttribute virtual_column = attribute as VirtualDatabaseColumnAttribute; if (virtual_column != null) { if (member is FieldInfo) { virtual_columns.Add(new VirtualDatabaseColumn((FieldInfo)member, virtual_column)); } else { virtual_columns.Add(new VirtualDatabaseColumn((PropertyInfo)member, virtual_column)); } } }
public VirtualDatabaseColumn(PropertyInfo property_info, VirtualDatabaseColumnAttribute attribute) : base(property_info, attribute) { this.attribute = attribute; }
public VirtualDatabaseColumn(FieldInfo field_info, VirtualDatabaseColumnAttribute attribute) : base(field_info, attribute) { this.attribute = attribute; }
public VirtualDatabaseColumn (PropertyInfo property_info, VirtualDatabaseColumnAttribute attribute) : base (property_info, attribute) { this.attribute = attribute; }
public VirtualDatabaseColumn (FieldInfo field_info, VirtualDatabaseColumnAttribute attribute) : base (field_info, attribute) { this.attribute = attribute; }