Class Table
Represents a server Table or View.
Namespace: MySqlX.XDevAPI.Relational
Assembly: MySql.Data.dll
Version: 9.2.0
Syntax
public class Table : DatabaseObject
Properties
IsView
Gets a value indicating whether the object is a View (True) or a Table (False).
Declaration
public bool IsView { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
Count()
Returns the number of rows in the table on the server.
Declaration
public long Count()
Returns
Type | Description |
---|---|
System. |
The number of rows. |
Delete()
Creates a Table
Declaration
public TableDeleteStatement Delete()
Returns
Type | Description |
---|---|
Table |
A Table |
ExistsInDatabase()
Verifies if the table exists in the database.
Declaration
public override bool ExistsInDatabase()
Returns
Type | Description |
---|---|
System. |
|
Overrides
Insert(String[])
Creates a Table
Declaration
public TableInsertStatement Insert(params string[] fields)
Parameters
Type | Name | Description |
---|---|---|
System. |
fields | The list of fields to insert. |
Returns
Type | Description |
---|---|
Table |
A Table |
Select(String[])
Creates a Table
Declaration
public TableSelectStatement Select(params string[] columns)
Parameters
Type | Name | Description |
---|---|---|
System. |
columns | The optional column names to select. |
Returns
Type | Description |
---|---|
Table |
A Table |
Update()
Creates a Table
Declaration
public TableUpdateStatement Update()
Returns
Type | Description |
---|---|
Table |
A Table |