1. ElementaryClass

Marks a class as one that the Elementary framework should be aware of.

Example:

[ElementaryClass]
public class Product
{
...
}

Options

TableDefines the table to use. Without it, Elementary will try to infer the table name by looking for a singular or plural match (i.e. "Product" and "Products")
[ElementaryClass(Table="tblProducts")]
public class Product
{
...
}
TableDefines a SQL Filter to use for that class
[ElementaryClass(SQLFilter="IsActive = 1")]
public class ActiveProduct
{
...
}