C# Class MovieTutorial.SqlExceptionHelper

Mostrar archivo Open project: volkanceylan/MovieTutorial Class Usage Examples

Public Methods

Method Description
HandleDeleteForeignKeyException ( Exception e ) : void
HandleSavePrimaryKeyException ( Exception e, string fieldName = "ID" ) : void
IsForeignKeyException ( Exception e, ForeignKeyExceptionInfo &fk ) : bool
IsPrimaryKeyException ( Exception e, PrimaryKeyExceptionInfo &pk ) : bool

Method Details

HandleDeleteForeignKeyException() public static method

public static HandleDeleteForeignKeyException ( Exception e ) : void
e System.Exception
return void

HandleSavePrimaryKeyException() public static method

public static HandleSavePrimaryKeyException ( Exception e, string fieldName = "ID" ) : void
e System.Exception
fieldName string
return void

IsForeignKeyException() public static method

public static IsForeignKeyException ( Exception e, ForeignKeyExceptionInfo &fk ) : bool
e System.Exception
fk ForeignKeyExceptionInfo
return bool

IsPrimaryKeyException() public static method

public static IsPrimaryKeyException ( Exception e, PrimaryKeyExceptionInfo &pk ) : bool
e System.Exception
pk PrimaryKeyExceptionInfo
return bool