Table of Contents

Struct SqlDatabaseObjectsSet<T>

Namespace
LfrlAnvil.Sql.Internal
Assembly
LfrlAnvil.Sql.Core.dll

Represents a set of SqlObjectBuilder instances.

public readonly struct SqlDatabaseObjectsSet<T> where T : SqlObjectBuilder

Type Parameters

T

SQL object builder type.

Inherited Members

Properties

Count

Number of elements in this set.

public int Count { get; }

Property Value

int

Methods

Add(T)

Attempts to add the provided obj to this set.

public bool Add(T obj)

Parameters

obj T

Object to add.

Returns

bool

true when object was added, otherwise false.

Clear()

Removes all objects from this set.

public void Clear()

Contains(T)

Checks whether or not the provided obj exists in this set.

[Pure]
public bool Contains(T obj)

Parameters

obj T

Object to check.

Returns

bool

true when object exists, otherwise false.

Create()

Creates a new empty SqlDatabaseObjectsSet<T> instance.

[Pure]
public static SqlDatabaseObjectsSet<T> Create()

Returns

SqlDatabaseObjectsSet<T>

New SqlDatabaseObjectsSet<T> instance.

GetEnumerator()

Creates a new enumerator for this set.

[Pure]
public Dictionary<ulong, T>.ValueCollection.Enumerator GetEnumerator()

Returns

Dictionary<ulong, T>.ValueCollection.Enumerator

New enumerator.

Remove(T)

Attempts to remove the provided obj from this set.

public bool Remove(T obj)

Parameters

obj T

Object to remove.

Returns

bool

true when object was removed, otherwise false.