Class Relationship
Represents a Microsoft SQL Server relationship.
Inheritance
System.Object
Relationship
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.BusinessFoundation.Data.Sql.Management
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 12.17.2Syntax
public class Relationship
Constructors
Relationship()
Initializes a new instance of the Relationship class.
Declaration
public Relationship()
Relationship(String, String, String, String, String, String, Boolean)
Declaration
public Relationship(string pkTable, string pkName, string pkColumn, string fkTable, string fkName, string fkColumn, bool cascadeDelete)
Parameters
Type | Name | Description |
---|---|---|
System.String | pkTable | |
System.String | pkName | |
System.String | pkColumn | |
System.String | fkTable | |
System.String | fkName | |
System.String | fkColumn | |
System.Boolean | cascadeDelete |
Relationship(String, String, String[], String, String, String[], Boolean)
Initializes a new instance of the Relationship class.
Declaration
public Relationship(string pkTable, string pkName, string[] pkColumns, string fkTable, string fkName, string[] fkColumns, bool cascadeDelete)
Parameters
Type | Name | Description |
---|---|---|
System.String | pkTable | The pk table. |
System.String | pkName | Name of the pk. |
System.String[] | pkColumns | The pk columns. |
System.String | fkTable | The fk table. |
System.String | fkName | Name of the fk. |
System.String[] | fkColumns | The fk columns. |
System.Boolean | cascadeDelete | if set to |
Properties
CascadeDelete
Declaration
public bool CascadeDelete { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
ForeignKeyColumns
Gets the foreign key columns.
Declaration
public string[] ForeignKeyColumns { get; set; }
Property Value
Type | Description |
---|---|
System.String[] | The foreign key columns. |
ForeignKeyName
Gets the name of the foreign key.
Declaration
public string ForeignKeyName { get; }
Property Value
Type | Description |
---|---|
System.String | The name of the foreign key. |
ForeignKeyTable
Gets the foreign key table.
Declaration
public string ForeignKeyTable { get; }
Property Value
Type | Description |
---|---|
System.String | The foreign key table. |
PrimaryKeyColumns
Gets the primary key columns.
Declaration
public string[] PrimaryKeyColumns { get; set; }
Property Value
Type | Description |
---|---|
System.String[] | The primary key columns. |
PrimaryKeyName
Gets the name of the primary key.
Declaration
public string PrimaryKeyName { get; }
Property Value
Type | Description |
---|---|
System.String | The name of the primary key. |
PrimaryKeyTable
Gets the primary key table.
Declaration
public string PrimaryKeyTable { get; }
Property Value
Type | Description |
---|---|
System.String | The primary key table. |