DmForeignKeyActionExtensions
Namespace: MJCZone.DapperMatic.Models
Assembly: MJCZone.DapperMatic
Summary
Provides extension methods for DmForeignKeyAction.
static public
Contents
Methods (7)
Methods
| Method | Summary |
|---|---|
| ToSql | Converts the foreign key action to its SQL representation. |
| ToForeignKeyAction | Converts a string to its corresponding DmForeignKeyAction.... |
| Parse | Parses 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
- foreignKeyAction (DmForeignKeyAction) - The foreign key action.
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()