Class ResultWithExceptionMsSqlServer<T>
- Namespace
- SunamoMsSqlServer._public
- Assembly
- SunamoMsSqlServer.dll
Wraps a result value or an exception message for MS SQL Server operations.
public class ResultWithExceptionMsSqlServer<T>
Type Parameters
TThe type of the data result.
- Inheritance
-
ResultWithExceptionMsSqlServer<T>
- Inherited Members
- Extension Methods
Constructors
ResultWithExceptionMsSqlServer()
Initializes a new empty instance for cases where data is a string which could also represent an exception.
public ResultWithExceptionMsSqlServer()
ResultWithExceptionMsSqlServer(Exception)
Initializes a new instance with the message from the specified exception.
public ResultWithExceptionMsSqlServer(Exception exception)
Parameters
exceptionExceptionThe exception whose message will be stored.
ResultWithExceptionMsSqlServer(string)
Initializes a new instance with the specified exception message.
public ResultWithExceptionMsSqlServer(string exceptionMessage)
Parameters
exceptionMessagestringThe exception message describing the error.
ResultWithExceptionMsSqlServer(T)
Initializes a new instance with the specified data result.
public ResultWithExceptionMsSqlServer(T data)
Parameters
dataTThe data result of the operation.
Properties
Data
Gets or sets the data result of the operation.
public T? Data { get; set; }
Property Value
- T
Exc
Gets or sets the exception message. Stored as string because the Message property is not editable after instantiation.
public string? Exc { get; set; }