Class SqlColumnAttribute
Class SqlColumnAttribute.
Implements
Inherited Members
Namespace: DotNetHelper.ObjectToSql.Attribute
Assembly: DotNetHelper.ObjectToSql.dll
Syntax
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)]
public class SqlColumnAttribute : Attribute, _Attribute
Fields
| Improve this Doc View SourceMappingIds
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 SourceIgnore
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> |
|
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. |
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. |
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. |
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. |
Nullable
Gets or sets a value indicating whether this SqlColumnAttribute is nullable.
Declaration
public bool? Nullable { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Boolean> |
|
PrimaryKey
Gets or sets a value indicating whether [primary key].
Declaration
public bool? PrimaryKey { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Boolean> |
|
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. |
SetIgnore
Gets or sets a value indicating whether [set ignore].
Declaration
public bool SetIgnore { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|
Exceptions
Type | Condition |
---|---|
Exception | Nooo... Your Using SqlColumnAttribute wrong do not try to get from the Set Property use the orignial |
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 |
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 |
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 |
SetNullable
Gets or sets a value indicating whether [set nullable].
Declaration
public bool SetNullable { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|
Exceptions
Type | Condition |
---|---|
Exception | Nooo... Your Using SqlColumnAttribute wrong do not try to get from the Set Property use the orignial |
SetPrimaryKey
Gets or sets a value indicating whether [set primary key].
Declaration
public bool SetPrimaryKey { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|
Exceptions
Type | Condition |
---|---|
Exception | Nooo... Your Using SqlColumnAttribute wrong do not try to get from the Set Property use the orignial |