<PackageReference Include="Relativity.Other" Version="9.6.112.108" />

NullableTypesHelper

public class NullableTypesHelper

public static object ConvertNullToDbNull(object val)

public static object ConvertNullToDbNull<T>(T? val) where T : struct

public static object ConvertNullToDbNull(string val)

public static T? ConvertToNullableType<T>(object item) where T : struct

public static object DBNullConvertFrom(object Item)

public static Guid DBNullConvertToGuid(object Item)

public static int DBNullConvertToInt32(object Item)

public static T? DBNullConvertToNullable<T>(object Item) where T : struct

public static T DBNullConvertToObject<T>(object Item)

public static string DBNullGuidAsString(object Item)

public static T? DBNullOrNullConvertToNullable<T>(object Item) where T : struct

public static string DBNullOrNullToString(object item)

public static string DBNullString(object item)

public static string ToEmptyStringOrValue(DateTime? convertMe, bool useUniversalFormat = false)

public static string ToEmptyStringOrValue(decimal? convertMe)

public static string ToEmptyStringOrValue(decimal? convertMe, string format)

public static string ToEmptyStringOrValue(int? convertMe)

public static string ToEmptyStringOrValue(bool? convertMe)

public static string ToEmptyStringOrValue(string convertMe)

public static bool? ToNullableBoolean(string convertMe)

public static DateTime? ToNullableDateTime(string convertMe, bool useUniversalFormat = false)

public static decimal? ToNullableDecimal(string convertMe, NumberStyles type = 367)

public static decimal? ToNullableDecimalUsingCurrentCulture(string convertMe, NumberStyles type = 367)

public static int? ToNullableInt32(string convertMe)

public static long? ToNullableInt64(string convertMe)

public static string ToString(string convertMe)