메소드 | 설명 | |
---|---|---|
AddToSqlErrorDict ( int sqlErrorNumber, string errorText ) : void |
This adds an entry to the SqlErrorDict
|
|
AddToSqlHandlerDict ( int sqlErrorNumber, HandleSqlException errorHandler, bool checkNotAlreadySet = true ) : void |
This adds an ErrorHandler to the SqlHandlerDict The ErrorHandler will be called if the specified sql error happens. Note: will throw an exception if an error handler already exists for that sql error number unless the checkNotAlreadySet is set to false
|
|
ClearAutoMapperCache ( ) : void |
This clears any AutoMapper mappings. Used when Unit Testing to ensure the mappings are newly set up.
|
|
ClearSqlErrorDict ( ) : void |
This clears the SqlErrorDict of all entries
|
|
ClearSqlHandlerDict ( ) : void |
This clears the SqlHandlerDict of all entries
|
public static AddToSqlErrorDict ( int sqlErrorNumber, string errorText ) : void | ||
sqlErrorNumber | int | |
errorText | string | |
리턴 | void |
public static AddToSqlHandlerDict ( int sqlErrorNumber, HandleSqlException errorHandler, bool checkNotAlreadySet = true ) : void | ||
sqlErrorNumber | int | |
errorHandler | HandleSqlException | Called when given sql error number happens with sql error and entities. /// Should return ValidationError or null if cannot handle the error |
checkNotAlreadySet | bool | |
리턴 | void |