Marks a class as one that the Elementary framework should be aware of.
Example:
[ElementaryClass]
public class Product
{
...
}
Options
| Table | Defines 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
{
...
} |
| Table | Defines a SQL Filter to use for that class[ElementaryClass(SQLFilter="IsActive = 1")]
public class ActiveProduct
{
...
} |