breeze-client / EntityTypeConfig
Interface: EntityTypeConfig
Defined in: src/metadata/entity-metadata.ts:975
Configuration info to be passed to the EntityType constructor
Properties
autoGeneratedKeyType?
optionalautoGeneratedKeyType?:AutoGeneratedKeyType
Defined in: src/metadata/entity-metadata.ts:988
How keys of new entities are generated. Defaults to AutoGeneratedKeyType.None, in which case a subtype takes its base type's setting.
baseTypeName?
optionalbaseTypeName?:string
Defined in: src/metadata/entity-metadata.ts:982
The name, short or qualified, of the base EntityType this type inherits from. The base type must already be in the MetadataStore when this type is added to it.
custom?
optionalcustom?:any
Defined in: src/metadata/entity-metadata.ts:1003
Sets EntityType.custom.
dataProperties?
optionaldataProperties?:Object|DataProperty[] |DataPropertyConfig[]
Defined in: src/metadata/entity-metadata.ts:995
The type's data properties: an object whose keys are property names and whose values are DataPropertyConfig objects, or an array of DataProperty instances or of DataPropertyConfig objects that each include a name.
defaultResourceName?
optionaldefaultResourceName?:string
Defined in: src/metadata/entity-metadata.ts:991
The resource name used to query this type when no other is given; see EntityType.defaultResourceName. If omitted, a subtype takes its base type's.
isAbstract?
optionalisAbstract?:boolean
Defined in: src/metadata/entity-metadata.ts:985
Whether the type is abstract, i.e. only its subtypes have instances. An abstract type may be added to a MetadataStore without key properties. Defaults to false.
namespace?
optionalnamespace?:string
Defined in: src/metadata/entity-metadata.ts:979
The namespace of the type. Defaults to "". The type's EntityType.name is shortName:#namespace.
navigationProperties?
optionalnavigationProperties?:Object|NavigationProperty[] |NavigationPropertyConfig[]
Defined in: src/metadata/entity-metadata.ts:999
The type's navigation properties: an object whose keys are property names and whose values are NavigationPropertyConfig objects, or an array of NavigationProperty instances or of NavigationPropertyConfig objects that each include a name.
serializerFn?
optionalserializerFn?: (prop,val) =>any
Defined in: src/metadata/entity-metadata.ts:1001
Sets EntityType.serializerFn.
Parameters
prop
val
any
Returns
any
shortName?
optionalshortName?:string
Defined in: src/metadata/entity-metadata.ts:977
The unqualified name of the type, such as "Customer". Required, although the interface marks it optional.