Class ForeignKeyAttribute
Indicates that the property is part of a database foreign key.
Inheritance
System.Object
ForeignKeyAttribute
Namespace: Paradigm.ORM.Data.Attributes
Assembly: Paradigm.ORM.Data.dll
Syntax
public class ForeignKeyAttribute : Attribute
Constructors
| Improve this Doc View SourceForeignKeyAttribute()
Initializes a new instance of the ForeignKeyAttribute class.
Declaration
public ForeignKeyAttribute()
ForeignKeyAttribute(String, String, String, String, String)
Initializes a new instance of the ForeignKeyAttribute class.
Declaration
public ForeignKeyAttribute(string name, string fromTable, string fromColumn, string toTable, string toColumn)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the column. |
System.String | fromTable | The name of the source table. |
System.String | fromColumn | The name of the source column. |
System.String | toTable | The name of the referenced table. |
System.String | toColumn | The name of the referenced column. |
Properties
| Improve this Doc View SourceFromColumn
Gets or sets the name the source column.
Declaration
public string FromColumn { get; set; }
Property Value
Type | Description |
---|---|
System.String |
FromTable
Gets or sets the name of the source table.
Declaration
public string FromTable { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Name
Gets or sets the name of the column.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ToColumn
Gets or sets the name of the referenced column if any.
Declaration
public string ToColumn { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ToTable
Gets or sets the name of the referenced table if any.
Declaration
public string ToTable { get; set; }
Property Value
Type | Description |
---|---|
System.String |