Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
breeze
EntityManager
Class EntityManager
Index
Constructor methods
constructor
Properties
dataService
entityChanged
hasChangesChanged
keyGeneratorCtor
metadataStore
queryOptions
saveOptions
serviceName
validationErrorsChanged
validationOptions
Methods
addEntity
attachEntity
clear
createEmptyCopy
createEntity
detachEntity
executeQuery
executeQueryLocally
exportEntities
fetchEntityByKey
fetchMetadata
generateTempKeyValue
getChanges
getEntities
getEntityByKey
hasChanges
importEntities
importEntities
rejectChanges
saveChanges
setProperties
Constructor methods
constructor
(
config
?:
EntityManagerOptions
)
:
EntityManager
Parameters
config?:
EntityManagerOptions
optional
Returns
EntityManager
constructor
(
config
?:
string
)
:
EntityManager
Parameters
config?:
string
optional
Returns
EntityManager
Properties
public
dataService
:
DataService
public
entityChanged
:
EntityChangedEvent
public
hasChangesChanged
:
HasChangesChangedEvent
public
keyGeneratorCtor
:
Function
public
metadataStore
:
MetadataStore
public
queryOptions
:
QueryOptions
public
saveOptions
:
SaveOptions
public
serviceName
:
string
public
validationErrorsChanged
:
ValidationErrorsChangedEvent
public
validationOptions
:
ValidationOptions
Methods
public
addEntity
(
entity
:
Entity
)
:
Entity
Parameters
entity:
Entity
Returns
Entity
public
attachEntity
(
entity
:
Entity
, entityState
?:
EntityStateSymbol
)
:
Entity
Parameters
entity:
Entity
entityState?:
EntityStateSymbol
optional
Returns
Entity
public
clear
(
)
public
createEmptyCopy
(
)
:
EntityManager
Returns
EntityManager
public
createEntity
(
typeName
:
string
, config
?:
{}
, entityState
?:
EntityStateSymbol
)
:
Entity
Parameters
typeName:
string
config?:
{}
optional
entityState?:
EntityStateSymbol
optional
Returns
Entity
public
createEntity
(
entityType
:
EntityType
, config
?:
{}
, entityState
?:
EntityStateSymbol
)
:
Entity
Parameters
entityType:
EntityType
config?:
{}
optional
entityState?:
EntityStateSymbol
optional
Returns
Entity
public
detachEntity
(
entity
:
Entity
)
:
boolean
Parameters
entity:
Entity
Returns
boolean
public
executeQuery
(
query
:
string
, callback
?:
ExecuteQuerySuccessCallback
, errorCallback
?:
ExecuteQueryErrorCallback
)
:
Promise
Parameters
query:
string
callback?:
ExecuteQuerySuccessCallback
optional
errorCallback?:
ExecuteQueryErrorCallback
optional
Returns
Promise
public
executeQuery
(
query
:
EntityQuery
, callback
?:
ExecuteQuerySuccessCallback
, errorCallback
?:
ExecuteQueryErrorCallback
)
:
Promise
Parameters
query:
EntityQuery
callback?:
ExecuteQuerySuccessCallback
optional
errorCallback?:
ExecuteQueryErrorCallback
optional
Returns
Promise
public
executeQueryLocally
(
query
:
EntityQuery
)
:
Entity
[]
Parameters
query:
EntityQuery
Returns
Entity
[]
public
exportEntities
(
entities
?:
Entity
[]
, includeMetadata
?:
boolean
)
:
string
Parameters
entities?:
Entity
[]
optional
includeMetadata?:
boolean
optional
Returns
string
public
fetchEntityByKey
(
typeName
:
string
, keyValue
:
any
, checkLocalCacheFirst
?:
boolean
)
:
Promise
Parameters
typeName:
string
keyValue:
any
checkLocalCacheFirst?:
boolean
optional
Returns
Promise
public
fetchEntityByKey
(
typeName
:
string
, keyValues
:
Array<any>
, checkLocalCacheFirst
?:
boolean
)
:
Promise
Parameters
typeName:
string
keyValues:
Array<any>
checkLocalCacheFirst?:
boolean
optional
Returns
Promise
public
fetchEntityByKey
(
entityKey
:
EntityKey
, checkLocalCacheFirst
?:
boolean
)
:
Promise
Parameters
entityKey:
EntityKey
checkLocalCacheFirst?:
boolean
optional
Returns
Promise
public
fetchMetadata
(
callback
?:
(schema: any) => void
, errorCallback
?:
ErrorCallback
)
:
Promise
Parameters
callback?:
(schema: any) => void
optional
errorCallback?:
ErrorCallback
optional
Returns
Promise
public
generateTempKeyValue
(
entity
:
Entity
)
:
any
Parameters
entity:
Entity
Returns
any
public
getChanges
(
)
:
Entity
[]
Returns
Entity
[]
public
getChanges
(
entityTypeName
:
string
)
:
Entity
[]
Parameters
entityTypeName:
string
Returns
Entity
[]
public
getChanges
(
entityTypeNames
:
Array<string>
)
:
Entity
[]
Parameters
entityTypeNames:
Array<string>
Returns
Entity
[]
public
getChanges
(
entityType
:
EntityType
)
:
Entity
[]
Parameters
entityType:
EntityType
Returns
Entity
[]
public
getChanges
(
entityTypes
:
EntityType
[]
)
:
Entity
[]
Parameters
entityTypes:
EntityType
[]
Returns
Entity
[]
public
getEntities
(
entityTypeName
:
string
, entityState
?:
EntityStateSymbol
)
:
Entity
[]
Parameters
entityTypeName:
string
entityState?:
EntityStateSymbol
optional
Returns
Entity
[]
public
getEntities
(
entityTypeNames
?:
Array<string>
, entityState
?:
EntityStateSymbol
)
:
Entity
[]
Parameters
entityTypeNames?:
Array<string>
optional
entityState?:
EntityStateSymbol
optional
Returns
Entity
[]
public
getEntities
(
entityTypeName
?:
string
, entityStates
?:
EntityStateSymbol
[]
)
:
Entity
[]
Parameters
entityTypeName?:
string
optional
entityStates?:
EntityStateSymbol
[]
optional
Returns
Entity
[]
public
getEntities
(
entityTypeNames
?:
Array<string>
, entityStates
?:
EntityStateSymbol
[]
)
:
Entity
[]
Parameters
entityTypeNames?:
Array<string>
optional
entityStates?:
EntityStateSymbol
[]
optional
Returns
Entity
[]
public
getEntities
(
entityType
:
EntityType
, entityState
?:
EntityStateSymbol
)
:
Entity
[]
Parameters
entityType:
EntityType
entityState?:
EntityStateSymbol
optional
Returns
Entity
[]
public
getEntities
(
entityTypes
?:
EntityType
[]
, entityState
?:
EntityStateSymbol
)
:
Entity
[]
Parameters
entityTypes?:
EntityType
[]
optional
entityState?:
EntityStateSymbol
optional
Returns
Entity
[]
public
getEntities
(
entityType
?:
EntityType
, entityStates
?:
EntityStateSymbol
[]
)
:
Entity
[]
Parameters
entityType?:
EntityType
optional
entityStates?:
EntityStateSymbol
[]
optional
Returns
Entity
[]
public
getEntities
(
entityTypes
?:
EntityType
[]
, entityStates
?:
EntityStateSymbol
[]
)
:
Entity
[]
Parameters
entityTypes?:
EntityType
[]
optional
entityStates?:
EntityStateSymbol
[]
optional
Returns
Entity
[]
public
getEntityByKey
(
typeName
:
string
, keyValue
:
any
)
:
Entity
Parameters
typeName:
string
keyValue:
any
Returns
Entity
public
getEntityByKey
(
typeName
:
string
, keyValues
:
Array<any>
)
:
Entity
Parameters
typeName:
string
keyValues:
Array<any>
Returns
Entity
public
getEntityByKey
(
entityKey
:
EntityKey
)
:
Entity
Parameters
entityKey:
EntityKey
Returns
Entity
public
hasChanges
(
)
:
boolean
Returns
boolean
public
hasChanges
(
entityTypeName
:
string
)
:
boolean
Parameters
entityTypeName:
string
Returns
boolean
public
hasChanges
(
entityTypeNames
:
Array<string>
)
:
boolean
Parameters
entityTypeNames:
Array<string>
Returns
boolean
public
hasChanges
(
entityType
:
EntityType
)
:
boolean
Parameters
entityType:
EntityType
Returns
boolean
public
hasChanges
(
entityTypes
:
EntityType
[]
)
:
boolean
Parameters
entityTypes:
EntityType
[]
Returns
boolean
public
static
importEntities
(
exportedString
:
string
, config
?:
{ mergeStrategy?: breeze.StrategySymbol; }
)
:
EntityManager
Parameters
exportedString:
string
config?:
{ mergeStrategy?: breeze.StrategySymbol; }
optional
Returns
EntityManager
public
static
importEntities
(
exportedData
:
Object
, config
?:
{ mergeStrategy?: breeze.StrategySymbol; }
)
:
EntityManager
Parameters
exportedData:
Object
config?:
{ mergeStrategy?: breeze.StrategySymbol; }
optional
Returns
EntityManager
public
importEntities
(
exportedString
:
string
, config
?:
{ mergeStrategy?: breeze.StrategySymbol; }
)
:
EntityManager
Parameters
exportedString:
string
config?:
{ mergeStrategy?: breeze.StrategySymbol; }
optional
Returns
EntityManager
public
importEntities
(
exportedData
:
Object
, config
?:
{ mergeStrategy?: breeze.StrategySymbol; }
)
:
EntityManager
Parameters
exportedData:
Object
config?:
{ mergeStrategy?: breeze.StrategySymbol; }
optional
Returns
EntityManager
public
rejectChanges
(
)
:
Entity
[]
Returns
Entity
[]
public
saveChanges
(
entities
?:
Entity
[]
, saveOptions
?:
SaveOptions
, callback
?:
SaveChangesSuccessCallback
, errorCallback
?:
SaveChangesErrorCallback
)
:
Promise
Parameters
entities?:
Entity
[]
optional
saveOptions?:
SaveOptions
optional
callback?:
SaveChangesSuccessCallback
optional
errorCallback?:
SaveChangesErrorCallback
optional
Returns
Promise
public
setProperties
(
config
:
EntityManagerProperties
)
Parameters
config:
EntityManagerProperties
Globals
breeze
breeze.config
breeze.core
jquery
q
DataType
EntityAction
EntityState
FetchStrategy
FilterQueryOp
MergeStrategy
metadataVersion
remoteAccess_odata
remoteAccess_webApi
version
ComplexObject
DataPropertyOptions
DataServiceOptions
Entity
EntityByKeyResult
EntityManagerOptions
EntityManagerProperties
EntityTypeOptions
EntityTypeProperties
ExecuteQueryErrorCallback
ExecuteQuerySuccessCallback
IProperty
IStructuralType
MetadataStoreOptions
NamingConventionOptions
NavigationPropertyOptions
NodeContext
OrderByClause
PredicateMethod
QueryContext
QueryOptionsConfiguration
QueryResult
SaveChangesErrorCallback
SaveChangesSuccessCallback
SaveOptionsConfiguration
SaveResult
ValidationOptionsConfiguration
ValidatorFunction
ValidatorFunctionContext
AutoGeneratedKeyType
ComplexAspect
ComplexType
DataProperty
DataService
DataServiceAdapter
DataTypeSymbol
EntityActionSymbol
EntityAspect
EntityChangedEvent
EntityChangedEventArgs
EntityKey
EntityManager
constructor
dataService
entityChanged
hasChangesChanged
keyGeneratorCtor
metadataStore
queryOptions
saveOptions
serviceName
validationErrorsChanged
validationOptions
addEntity
attachEntity
clear
createEmptyCopy
createEntity
detachEntity
executeQuery
executeQueryLocally
exportEntities
fetchEntityByKey
fetchMetadata
generateTempKeyValue
getChanges
getEntities
getEntityByKey
hasChanges
importEntities
importEntities
rejectChanges
saveChanges
setProperties
EntityQuery
EntityStateSymbol
EntityType
FilterQueryOpSymbol
HasChangesChangedEvent
HasChangesChangedEventArgs
JsonResultsAdapter
LocalQueryComparisonOptions
MetadataStore
NamingConvention
NavigationProperty
Predicate
PropertyChangedEvent
PropertyChangedEventArgs
QueryOptions
SaveOptions
StrategySymbol
ValidationError
ValidationErrorsChangedEvent
ValidationErrorsChangedEventArgs
ValidationOptions
Validator