Knight Data Access Layer
Field Constructor(Table,String,String,Boolean)




KellermanSoftware.NetDataAccessLayer Namespace > Field Class > Field Constructor : Field Constructor(Table,String,String,Boolean)
The table for the class
Name of the property
Column name in the database
If the field is a primary key
Constructor for manually mapping a primary key
Syntax
Public Function New( _
   ByVal table As Table, _
   ByVal propertyName As String, _
   ByVal columnName As String, _
   ByVal primaryKey As Boolean _
)
Dim table As Table
Dim propertyName As String
Dim columnName As String
Dim primaryKey As Boolean
 
Dim instance As New Field(table, propertyName, columnName, primaryKey)
public Field( 
   Table table,
   string propertyName,
   string columnName,
   bool primaryKey
)
public: Field( 
   Table* table,
   string* propertyName,
   string* columnName,
   bool primaryKey
)
public:
Field( 
   Table^ table,
   String^ propertyName,
   String^ columnName,
   bool primaryKey
)

Parameters

table
The table for the class
propertyName
Name of the property
columnName
Column name in the database
primaryKey
If the field is a primary key
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Field Class
Field Members
Overload List