[]
        
(Showing Draft Content)

C1.DataEngine.Workspace.table

table Method

table(string)

Gets a base table by its name.

Declaration
public ExpandoObject table(string name)
Parameters
Type Name Description
string name

The name of the base table

Returns
Type Description
ExpandoObject

Dynamic object representing the base table.

Remarks

The dynamic object is used in queries over this table, for example,

dynamic od = workspace.table("OderDetails");
dynamic query1 = workspace.query(new 
{
    price = Op.Mul(od.UnitPrice, od.Discount)
});

Also, it has a Table property that returns the BaseTable object representing this base table:

BaseTable t = workspace.table("t1").Table;