Class Tools
Various general-purpose helpers.
public static class Tools
- Inheritance
-
Tools
Methods
ClearAllCaches()
Clears all linq2db caches.
public static void ClearAllCaches()
CreateEmptyQuery(Type)
public static IQueryable CreateEmptyQuery(Type elementType)
Parameters
elementTypeType
Returns
CreateEmptyQuery<T>()
public static IQueryable<T> CreateEmptyQuery<T>()
Returns
- IQueryable<T>
Type Parameters
T
IsNullOrEmpty(ICollection?)
Checks that collection is not null and have at least one element.
public static bool IsNullOrEmpty(this ICollection? array)
Parameters
arrayICollectionCollection to check.
Returns
- bool
trueif collection is null or contains no elements,falseotherwise.
ToDebugDisplay(string)
public static string ToDebugDisplay(string str)
Parameters
strstring
Returns
TryLoadAssembly(string?, string?)
public static Assembly? TryLoadAssembly(string? assemblyName, string? providerFactory)