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
elementType
Type
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
array
ICollectionCollection to check.
Returns
- bool
true
if collection is null or contains no elements,false
otherwise.
ToDebugDisplay(string)
public static string ToDebugDisplay(string str)
Parameters
str
string
Returns
TryLoadAssembly(string?, string?)
public static Assembly? TryLoadAssembly(string? assemblyName, string? providerFactory)