예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SchemaItem"/> with meta data from the table
 /// </summary>
 /// <param name="fieldName">The name of the database column</param>
 /// <param name="dbType">The datatype of the column</param>
 /// <param name="justify"><see cref="SchemaItemJustify"/> value indicating the justification of the string value</param>
 /// <param name="len">The length of the string value</param>
 public SchemaItem(string fieldName, DbType dbType, SchemaItemJustify justify, int len)
 {
     _fieldName = fieldName;
     _justify   = justify;
     _len       = len;
     _dbType    = dbType;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SchemaItem"/> with meta data from the table
 /// </summary>
 /// <param name="fieldName">The name of the database column</param>
 /// <param name="dbType">The datatype of the column</param>
 public SchemaItem(string fieldName, DbType dbType)
 {
     _fieldName = fieldName;
     _justify   = SchemaItemJustify.None;
     _len       = 0;
     _dbType    = dbType;
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SchemaItem"/> with meta data from the table
 /// </summary>
 /// <param name="fieldName">The name of the database column</param>
 /// <param name="dbType">The datatype of the column</param>
 /// <param name="isAutoKey">A flag indicating if this <see cref="SchemaItem"/> is an autokey field</param>
 public SchemaItem(string fieldName, DbType dbType, bool isAutoKey)
 {
     _fieldName = fieldName;
     _justify   = SchemaItemJustify.None;
     _len       = 0;
     _dbType    = dbType;
     _isAutoKey = isAutoKey;
 }
예제 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SchemaItem"/> with meta data from the table
 /// </summary>
 /// <param name="fieldName">The name of the database column</param>
 /// <param name="dbType">The datatype of the column</param>
 /// <param name="justify"><see cref="SchemaItemJustify"/> value indicating the justification of the string value</param>
 /// <param name="len">The maximum length of the column</param>
 /// <param name="isNullable">A flag indicating if this <see cref="SchemaItem"/> can contain a NULL value in the database</param>
 /// <param name="isInPrimaryKey">A flag indicating if this <see cref="SchemaItem"/> is part of the primary key for the table</param>
 /// <param name="isInForeignKey">A flag indicating if this <see cref="SchemaItem"/> is part of a foreign key</param>
 public SchemaItem(string fieldName, DbType dbType, SchemaItemJustify justify, int len, bool isNullable, bool isInPrimaryKey, bool isInForeignKey)
 {
     _fieldName      = fieldName;
     _justify        = justify;
     _len            = len;
     _dbType         = dbType;
     _isNullable     = isNullable;
     _isInPrimaryKey = isInPrimaryKey;
     _isInForeignKey = isInForeignKey;
 }
예제 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SchemaItem"/> with meta data from the table
 /// </summary>
 /// <param name="fieldName">The name of the database column</param>
 /// <param name="dbType">The datatype of the column</param>
 /// <param name="len">The maximum length of the column</param>
 /// <param name="isAutoKey">A flag indicating if this <see cref="SchemaItem"/> is an autokey field</param>
 /// <param name="isNullable">A flag indicating if this <see cref="SchemaItem"/> can contain a NULL value in the database</param>
 /// <param name="isComputed">A flag indicating if this <see cref="SchemaItem"/> is a computed field</param>
 /// <param name="isInPrimaryKey">A flag indicating if this <see cref="SchemaItem"/> is part of the primary key for the table</param>
 /// <param name="isInForeignKey">A flag indicating if this <see cref="SchemaItem"/> is part of a foreign key</param>
 public SchemaItem(string fieldName, DbType dbType, int len, bool isAutoKey, bool isNullable, bool isComputed, bool isInPrimaryKey, bool isInForeignKey)
 {
     _fieldName      = fieldName;
     _justify        = SchemaItemJustify.None;
     _len            = len;
     _dbType         = dbType;
     _isAutoKey      = isAutoKey;
     _isNullable     = isNullable;
     _isComputed     = isComputed;
     _isInPrimaryKey = isInPrimaryKey;
     _isInForeignKey = isInForeignKey;
 }