Skip to content

DmForeignKeyActionExtensions

Namespace: MJCZone.DapperMatic.Models

Assembly: MJCZone.DapperMatic

Summary

Provides extension methods for DmForeignKeyAction.

static public

Contents

Methods (7)

Methods

MethodSummary
ToSqlConverts the foreign key action to its SQL representation.
ToForeignKeyActionConverts a string to its corresponding DmForeignKeyAction....
ParseParses a string representation of a foreign key action.
GetType
ToString
Equals
GetHashCode

ToSql

Converts the foreign key action to its SQL representation.

csharp
string ToSql(DmForeignKeyAction foreignKeyAction)

Parameters

Returns

Type: string

The SQL representation of the foreign key action.

ToForeignKeyAction

Converts a string to its corresponding DmForeignKeyAction.

csharp
DmForeignKeyAction ToForeignKeyAction(string behavior)

Parameters

  • behavior (string) - The string representation of the foreign key action.

Returns

Type: DmForeignKeyAction

The corresponding .

Parse

Parses a string representation of a foreign key action.

csharp
DmForeignKeyAction Parse(string input)

Parameters

  • input (string) - The string representation of the foreign key action (e.g., "CASCADE", "NO ACTION", "RESTRICT", "SET NULL").

Returns

Type: DmForeignKeyAction

A instance.

GetType

csharp
GetType()

ToString

csharp
ToString()

Equals

csharp
Equals()

GetHashCode

csharp
GetHashCode()