Interface DatabaseDefinitions.IDBComponentDefinitionBuilder
Fluent builder for a component definition.
public interface DatabaseDefinitions.IDBComponentDefinitionBuilder
Methods
Build()
Finalizes the definition and registers it on the owning DatabaseDefinitions.
void Build()
WithField<T>(int, string, int)
Adds a field of unmanaged type T at the given byte offset.
DatabaseDefinitions.IDbComponentFieldDefinitionBuilder WithField<T>(int fieldId, string name, int offset) where T : unmanaged
Parameters
fieldIdintUnique field identifier within the component.
namestringField name.
offsetintByte offset of the field within the component's storage.
Returns
- DatabaseDefinitions.IDbComponentFieldDefinitionBuilder
A field-scoped builder for further per-field configuration.
Type Parameters
TThe field's unmanaged CLR type.
WithPOCO<T>()
Associates a POCO type T with the component being built.
DatabaseDefinitions.IDBComponentDefinitionBuilder WithPOCO<T>()
Returns
- DatabaseDefinitions.IDBComponentDefinitionBuilder
This builder.
Type Parameters
TThe POCO type.