ComponentOne DataObjects for .NET
DataObjectsAssemblyFlags Property

C1.Data.2 Assembly > C1.Data Namespace > C1SchemaDef Class : DataObjectsAssemblyFlags Property
Flags affecting generated classes in the data objects assembly (*.DataObjects.dll).
Syntax
'Declaration
 
Public Property DataObjectsAssemblyFlags As DataObjectsAssemblyFlags
public DataObjectsAssemblyFlags DataObjectsAssemblyFlags {get; set;}
Remarks
This property affects the way classes are generated in the data objects assembly, that is, the *.DataObjects.dll assembly automatically generated on saving schema, see Schema Objects.

Setting flag DataObjectsAssemblyFlags.DataSetNamespaces makes table view classes belong to special namespaces, a namespace for each data set, for example, Northwind.DataObjects.CustOrders.EmployeesRow for table view Employees in data set CustOrders. Table classes still belong to the root namespace: Northwind.DataObjects.EmployeesRow for table Employees.

Setting flag DataObjectsAssemblyFlags.StaticNameFields generates static string properties returning field, table, table view and relation names, so that they can be used instead of constant strings in code thus making it compile-time safe (errors detected at compile time), for example:

Northwind.DataObjects.EmployeesRow.FieldNameEmployeeID (field name returning "EmployeeID" for field EmployeeID of table Employees),

Northwind.DataObjects.EmployeesRow.TableName (table name returning "Employees", for table Employees),

Northwind.DataObjects.EmployeesRow.RelationNameEmployees__Orders (relation name returning "Employees - Orders", for simple relation "Employees - Orders"),

Northwind.DataObjects.CustOrders.EmployeesRow.TableViewName (table view name returning "Employees", for table view Employees in data set CustOrders),

Northwind.DataObjects.CustOrders.EmployeesRow.FieldNameEmployeeID (field name returning "EmployeeID" for field EmployeeID of table Employees),

Northwind.DataObjects.CustOrders.CustOrdersRow.RelationNameCO__ODP (relation name returning "CO - ODP", for view relation "CO - ODP" between table views CustOrders and OrderDetailsProducts in data set CustOrders).

See Also

Reference

C1SchemaDef Class
C1SchemaDef Members