示例#1
0
    public static string ToLogString(this SqlError error)
    {
        ArgumentNullException.ThrowIfNull(error);
        var stringBuilder = new StringBuilder();

        stringBuilder.Append(error.GetHeader());
        stringBuilder.Append(error.Message);
        return(stringBuilder.ToString());
    }
示例#2
0
    public static string ToLogString(this SqlError error)
    {
        Assert.IsNotNull(error);
        var stringBuilder = new StringBuilder();

        stringBuilder.Append(error.GetHeader());
        stringBuilder.Append(error.Message);
        return(stringBuilder.ToString());
    }