Skip to main content

Definition

Assembly: CloudNimble.BlazorEssentials.TursoDb.dll Namespace: CloudNimble.BlazorEssentials.TursoDb Inheritance: System.Attribute

Syntax

CloudNimble.BlazorEssentials.TursoDb.TableAttribute

Summary

Specifies the table name for an entity class. If not specified, the class name is used as the table name.

Constructors

.ctor

Initializes a new instance of the TableAttribute class.

Syntax

public TableAttribute(string name)

Parameters

NameTypeDescription
namestringThe table name in the database.

Exceptions

ExceptionDescription
ArgumentExceptionThrown when name is null or whitespace.

Properties

Name

Gets the table name in the database.

Syntax

public string Name { get; }

Property Value

Type: string