Skip to content

TableVersion Methods

Represents the version of a membership table and the entity tag used for optimistic concurrency.

Equals(TableVersion?)

View source
public bool Equals(TableVersion? other)
Indicates whether the current object is equal to another object of the same type.

Parameters

otherTableVersion?
An object to compare with this object.

Returns

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

override
View source
public override bool Equals(object? obj)
Determines whether the specified object is equal to the current object.

Parameters

objobject?
The object to compare with the current object.

Returns

true if the specified object is equal to the current object; otherwise, false.

GetHashCode

override
View source
public override int GetHashCode()
Serves as the default hash function.

Returns

A hash code for the current object.

Next

View source
public TableVersion Next()
Creates the next membership table version while retaining the current entity tag for concurrency validation.

Returns

The next membership table version.

Exceptions

System.OverflowException
The membership table version has reached System.Int32.MaxValue.

ToString

override
View source
public override string ToString()
Returns a string that represents the current object.

Returns

A string that represents the current object.

operator ==(TableVersion?, TableVersion?)

static
View source
public static bool operator ==(TableVersion? left, TableVersion? right)
Determines whether two membership table versions are equal.

Parameters

leftTableVersion?
The first membership table version to compare.
rightTableVersion?
The second membership table version to compare.

Returns

true if the versions and entity tags are equal; otherwise, false.

operator !=(TableVersion?, TableVersion?)

static
View source
public static bool operator !=(TableVersion? left, TableVersion? right)
Determines whether two membership table versions are not equal.

Parameters

leftTableVersion?
The first membership table version to compare.
rightTableVersion?
The second membership table version to compare.

Returns

true if the versions or entity tags differ; otherwise, false.