Table of Contents

Class Tools

Namespace
LinqToDB.Common
Assembly
linq2db.dll

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

IQueryable

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 ICollection

Collection 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

string

TryLoadAssembly(string?, string?)

public static Assembly? TryLoadAssembly(string? assemblyName, string? providerFactory)

Parameters

assemblyName string
providerFactory string

Returns

Assembly