Represents the definition of a table field.
Initializes a new instance of Field.
public Void Field(name, type, primaryKey, automaticType)
Name | Type | Summary |
---|---|---|
name | String | the name of the field |
type | DbType | the type of the field |
primaryKey | Int32 | order of the field in the primary key |
automaticType | AutomaticType | type of automatic field |
Type | Summary |
---|---|
ArgumentNullOrEmptyException | Thrown when name is null or empty. |
Get the automatic field type
public AutomaticType AutomaticType { get; set; }
Gets whether the field is part of the primary key.
public Boolean IsPrimaryKey { get; }
Get the name of the field.
public String Name { get; set; }
Get the position of the field in the primary key.
public Int32 PrimaryKey { get; set; }
Checks whether other is equals to this object.
public Boolean Equals(other)
true if they are equals.
Name | Type | Summary |
---|---|---|
other | Field | An object to compare. |
Checks whether obj is equals to this object.
public Boolean Equals(obj)
true if they are equals.
Name | Type | Summary |
---|---|---|
obj | Object | An object to compare |
Not required implemented to avoid warnings.
public Int32 GetHashCode()
Returns a textual representation of the Field.
public String ToString()
In this document