Show / Hide Table of Contents

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 Source

ForeignKeyAttribute()

Initializes a new instance of the ForeignKeyAttribute class.

Declaration
public ForeignKeyAttribute()
| Improve this Doc View Source

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 Source

FromColumn

Gets or sets the name the source column.

Declaration
public string FromColumn { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

FromTable

Gets or sets the name of the source table.

Declaration
public string FromTable { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Name

Gets or sets the name of the column.

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

ToColumn

Gets or sets the name of the referenced column if any.

Declaration
public string ToColumn { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

ToTable

Gets or sets the name of the referenced table if any.

Declaration
public string ToTable { get; set; }
Property Value
Type Description
System.String

Extension Methods

ObjectExtensions.ThrowIfFails<TException>(Object, Action, String)
ObjectExtensions.ThrowIfFails<TException, TResult>(Object, Func<TResult>, String)
ObjectExtensions.ThrowIfFailsAsync<TException>(Object, Func<Task>, String)
ObjectExtensions.ThrowIfFailsAsync<TException, TResult>(Object, Func<Task<TResult>>, String)
  • Improve this Doc
  • View Source
Powered by MiracleDevs ©2017. Code licensed under the MIT License.
Documentation generated by DocFX.