• Home
  • Tutorials
  • API
  • Change Log
  • Github

    Show / Hide Table of Contents
    • DotNetHelper.ObjectToSql
      • SqlGenerator
    • DotNetHelper.ObjectToSql.Attribute
      • DbTableAttribute
      • SqlColumnAttribute
    • DotNetHelper.ObjectToSql.Enum
      • ActionType
      • DataBaseType
      • OutputType
      • ScriptType
      • SerializableType
      • SqlJoinType
    • DotNetHelper.ObjectToSql.Exceptions
      • EmptyArgumentException
      • MissingKeyAttributeException
    • DotNetHelper.ObjectToSql.Extension
      • DBConnectionExtension
      • MemberWrapperExtension
    • DotNetHelper.ObjectToSql.Helper
      • DbTypeMap
      • SqlSyntaxHelper
    • DotNetHelper.ObjectToSql.Model
      • SqlTable
    • DotNetHelper.ObjectToSql.Services
      • DataTableToSql
      • ObjectToSql

    Class SqlColumnAttribute

    Class SqlColumnAttribute.

    Inheritance
    Object
    Attribute
    SqlColumnAttribute
    Implements
    _Attribute
    Inherited Members
    Attribute.GetCustomAttributes(MemberInfo, Type)
    Attribute.GetCustomAttributes(MemberInfo, Type, Boolean)
    Attribute.GetCustomAttributes(MemberInfo)
    Attribute.GetCustomAttributes(MemberInfo, Boolean)
    Attribute.IsDefined(MemberInfo, Type)
    Attribute.IsDefined(MemberInfo, Type, Boolean)
    Attribute.GetCustomAttribute(MemberInfo, Type)
    Attribute.GetCustomAttribute(MemberInfo, Type, Boolean)
    Attribute.GetCustomAttributes(ParameterInfo)
    Attribute.GetCustomAttributes(ParameterInfo, Type)
    Attribute.GetCustomAttributes(ParameterInfo, Type, Boolean)
    Attribute.GetCustomAttributes(ParameterInfo, Boolean)
    Attribute.IsDefined(ParameterInfo, Type)
    Attribute.IsDefined(ParameterInfo, Type, Boolean)
    Attribute.GetCustomAttribute(ParameterInfo, Type)
    Attribute.GetCustomAttribute(ParameterInfo, Type, Boolean)
    Attribute.GetCustomAttributes(Module, Type)
    Attribute.GetCustomAttributes(Module)
    Attribute.GetCustomAttributes(Module, Boolean)
    Attribute.GetCustomAttributes(Module, Type, Boolean)
    Attribute.IsDefined(Module, Type)
    Attribute.IsDefined(Module, Type, Boolean)
    Attribute.GetCustomAttribute(Module, Type)
    Attribute.GetCustomAttribute(Module, Type, Boolean)
    Attribute.GetCustomAttributes(Assembly, Type)
    Attribute.GetCustomAttributes(Assembly, Type, Boolean)
    Attribute.GetCustomAttributes(Assembly)
    Attribute.GetCustomAttributes(Assembly, Boolean)
    Attribute.IsDefined(Assembly, Type)
    Attribute.IsDefined(Assembly, Type, Boolean)
    Attribute.GetCustomAttribute(Assembly, Type)
    Attribute.GetCustomAttribute(Assembly, Type, Boolean)
    Attribute.Equals(Object)
    Attribute.GetHashCode()
    Attribute.Match(Object)
    Attribute.IsDefaultAttribute()
    Attribute._Attribute.GetTypeInfoCount(UInt32)
    Attribute._Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)
    Attribute._Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)
    Attribute._Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)
    Attribute.TypeId
    Object.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: DotNetHelper.ObjectToSql.Attribute
    Assembly: DotNetHelper.ObjectToSql.dll
    Syntax
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)]
    public class SqlColumnAttribute : Attribute, _Attribute

    Fields

    | Improve this Doc View Source

    MappingIds

    Gets or sets the mappings for keys to join with.

    Declaration
    public string[] MappingIds
    Field Value
    Type Description
    String[]

    an array of ids, that will join a column to another table.

    Properties

    | Improve this Doc View Source

    Ignore

    If true property will be use when the class is being used by a DATASOURCE Object

    Declaration
    public bool? Ignore { get; set; }
    Property Value
    Type Description
    Nullable<Boolean>

    null if [ignore] contains no value, true if [ignore]; otherwise, false.

    | Improve this Doc View Source

    IsIdentityKey

    Gets or sets the automatic increment by. If this value is set then the property will be treated as an IDENTITY column

    Declaration
    public bool? IsIdentityKey { get; set; }
    Property Value
    Type Description
    Nullable<Boolean>

    The automatic increment by.

    | Improve this Doc View Source

    IsReadOnly

    If true this property will never be included when creating insert sql. This is meant for senarios where you want to use the database default value

    Declaration
    public bool? IsReadOnly { get; set; }
    Property Value
    Type Description
    Nullable<Boolean>

    The automatic increment by.

    | Improve this Doc View Source

    MapTo

    If true property will be use when the class is being used by a DATASOURCE Object

    Declaration
    public string MapTo { get; set; }
    Property Value
    Type Description
    String

    The map to.

    | Improve this Doc View Source

    MaxColumnSize

    Defaults To MAX used for creating table

    Declaration
    public int? MaxColumnSize { get; set; }
    Property Value
    Type Description
    Nullable<Int32>

    The maximum size of the column.

    | Improve this Doc View Source

    Nullable

    Gets or sets a value indicating whether this SqlColumnAttribute is nullable.

    Declaration
    public bool? Nullable { get; set; }
    Property Value
    Type Description
    Nullable<Boolean>

    null if [nullable] contains no value, true if [nullable]; otherwise, false.

    | Improve this Doc View Source

    PrimaryKey

    Gets or sets a value indicating whether [primary key].

    Declaration
    public bool? PrimaryKey { get; set; }
    Property Value
    Type Description
    Nullable<Boolean>

    null if [primary key] contains no value, true if [primary key]; otherwise, false.

    | Improve this Doc View Source

    SerializableType

    Defaults To MAX used for creating table

    Declaration
    public SerializableType SerializableType { get; set; }
    Property Value
    Type Description
    SerializableType

    The maximum size of the column.

    | Improve this Doc View Source

    SetIgnore

    Gets or sets a value indicating whether [set ignore].

    Declaration
    public bool SetIgnore { get; set; }
    Property Value
    Type Description
    Boolean

    true if [set ignore]; otherwise, false.

    Exceptions
    Type Condition
    Exception

    Nooo... Your Using SqlColumnAttribute wrong do not try to get from the Set Property use the orignial

    | Improve this Doc View Source

    SetIsIdentityKey

    Gets or sets the set automatic increment by.

    Declaration
    public bool SetIsIdentityKey { get; set; }
    Property Value
    Type Description
    Boolean

    The set automatic increment by.

    Exceptions
    Type Condition
    Exception

    Nooo... Your Using SqlColumnAttribute wrong do not try to get from the Set Property use the orignial

    | Improve this Doc View Source

    SetIsReadOnly

    If true this property will never be included when creating insert sql.This is meant for senarios where you want to use the database default value

    Declaration
    public bool SetIsReadOnly { get; set; }
    Property Value
    Type Description
    Boolean

    The set automatic increment by.

    Exceptions
    Type Condition
    Exception

    Nooo... Your Using SqlColumnAttribute wrong do not try to get from the Set Property use the orignial

    | Improve this Doc View Source

    SetMaxColumnSize

    Gets or sets the size of the set maximum column.

    Declaration
    public int SetMaxColumnSize { get; set; }
    Property Value
    Type Description
    Int32

    The size of the set maximum column.

    Exceptions
    Type Condition
    Exception

    Nooo... Your Using SqlColumnAttribute wrong do not try to get from the Set Property use the orignial

    | Improve this Doc View Source

    SetNullable

    Gets or sets a value indicating whether [set nullable].

    Declaration
    public bool SetNullable { get; set; }
    Property Value
    Type Description
    Boolean

    true if [set nullable]; otherwise, false.

    Exceptions
    Type Condition
    Exception

    Nooo... Your Using SqlColumnAttribute wrong do not try to get from the Set Property use the orignial

    | Improve this Doc View Source

    SetPrimaryKey

    Gets or sets a value indicating whether [set primary key].

    Declaration
    public bool SetPrimaryKey { get; set; }
    Property Value
    Type Description
    Boolean

    true if [set primary key]; otherwise, false.

    Exceptions
    Type Condition
    Exception

    Nooo... Your Using SqlColumnAttribute wrong do not try to get from the Set Property use the orignial

    Implements

    System.Runtime.InteropServices._Attribute

    See Also

    Attribute
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Joseph McNeal Jr