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()); }
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()); }