EasyObjects.NET Programmers Reference

SchemaItem Constructor (String, DbType, SchemaItemJustify, Int32, Boolean, Boolean, Boolean, Boolean)

Initializes a new instance of the SchemaItem with meta data from the table

public SchemaItem(
   string fieldName,
   DbType dbType,
   SchemaItemJustify justify,
   int len,
   bool isNullable,
   bool isInPrimaryKey,
   bool isInForeignKey,
   bool hasDefault
);

Parameters

fieldName
The name of the database column
dbType
The datatype of the column
justify
SchemaItemJustify value indicating the justification of the string value
len
The maximum length of the column
isNullable
A flag indicating if this SchemaItem can contain a NULL value in the database
isInPrimaryKey
A flag indicating if this SchemaItem is part of the primary key for the table
isInForeignKey
A flag indicating if this SchemaItem is part of a foreign key
hasDefault
A flag indicating if this SchemaItem has a default value

See Also

SchemaItem Class | NCI.EasyObjects Namespace | SchemaItem Constructor Overload List