상속: AbstractDatabaseColumnAttribute
예제 #1
0
        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));
                }
            }
        }
예제 #2
0
 public VirtualDatabaseColumn(PropertyInfo property_info, VirtualDatabaseColumnAttribute attribute)
     : base(property_info, attribute)
 {
     this.attribute = attribute;
 }
예제 #3
0
 public VirtualDatabaseColumn(FieldInfo field_info, VirtualDatabaseColumnAttribute attribute)
     : base(field_info, attribute)
 {
     this.attribute = attribute;
 }
예제 #4
0
 public VirtualDatabaseColumn (PropertyInfo property_info, VirtualDatabaseColumnAttribute attribute)
     : base (property_info, attribute)
 {
     this.attribute = attribute;
 }
예제 #5
0
 public VirtualDatabaseColumn (FieldInfo field_info, VirtualDatabaseColumnAttribute attribute)
     : base (field_info, attribute)
 {
     this.attribute = attribute;
 }