Field

Represents the definition of a table field.

Namespace:
Inetdev.Data
Type:
Class
Public:
Yes
Protected:
No
Sealed:
Yes
Abstract:
No
Inherits from:
System.Object
Implements:
System.IEquatable{Inetdev.Data.Field}

Constructors

Field

Initializes a new instance of Field.

Signature:
public Void Field(name, type, primaryKey, automaticType)
Parameters
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
Exceptions
Type Summary
ArgumentNullOrEmptyException Thrown when name is null or empty.

Properties

AutomaticType

Get the automatic field type

Signature:
public AutomaticType AutomaticType { get; set; }

IsPrimaryKey

Gets whether the field is part of the primary key.

Signature:
public Boolean IsPrimaryKey { get; }

Name

Get the name of the field.

Signature:
public String Name { get; set; }

PrimaryKey

Get the position of the field in the primary key.

Signature:
public Int32 PrimaryKey { get; set; }

Type

Get the field type

Signature:
public DbType Type { get; set; }

Methods

Equals

Checks whether other is equals to this object.

Signature:
public Boolean Equals(other)
Returns

true if they are equals.

Parameters
Name Type Summary
other Field An object to compare.

Equals

Checks whether obj is equals to this object.

Signature:
public Boolean Equals(obj)
Returns

true if they are equals.

Parameters
Name Type Summary
obj Object An object to compare

GetHashCode

Not required implemented to avoid warnings.

Signature:
public Int32 GetHashCode()

ToString

Returns a textual representation of the Field.

Signature:
public String ToString()