Свойство | Type | Description | |
---|---|---|---|
KeyGeneratorType | Lazy |
Méthode | Description | |
---|---|---|
CreateEntityInfo ( Object entity, System.Data.EntityState entityState = EntityState.Added ) : |
||
ExtractSaveOptions ( dynamic dynSaveBundle ) : |
||
GetDbConnection ( ) : IDbConnection |
Should only be called from BeforeSaveEntities and AfterSaveEntities.
|
|
GetKeyValues ( |
||
Metadata ( ) : string | ||
SaveChanges ( Newtonsoft.Json.Linq.JObject saveBundle, Breeze.ContextProvider.TransactionSettings transactionSettings = null ) : |
||
XDocToJson ( System.Xml.Linq.XDocument xDoc ) : String |
Méthode | Description | |
---|---|---|
AfterSaveEntities ( Dictionary |
Called after the entities have been saved, and all the temporary keys have been replaced by real keys. The base implementation calls AfterSaveEntitiesDelegate, or does nothing if AfterSaveEntitiesDelegate is null.
|
|
BeforeSaveEntities ( Dictionary |
Called after BeforeSaveEntity, and before saving the entities to the persistence layer. Allows adding, changing, and removing entities prior to save. The base implementation returns the result of BeforeSaveEntitiesDelegate, or the unchanged saveMap if BeforeSaveEntitiesDelegate is null.
|
|
BeforeSaveEntity ( |
The method is called for each entity to be saved before the save occurs. If this method returns 'false' then the entity will be excluded from the save. The base implementation returns the result of BeforeSaveEntityDelegate, or 'true' if BeforeSaveEntityDelegate is null.
|
|
BeginTransaction ( System isolationLevel ) : IDbTransaction | ||
BuildJsonMetadata ( ) : String | ||
CloseDbConnection ( ) : void |
Internal use only. Should only be called by ContextProvider during SaveChanges. Closes the DbConnection used by the ContextProvider's implementation.
|
|
CreateEntityInfo ( ) : |
||
CreateEntityInfoFromJson ( dynamic jo, |
||
HandleSaveException ( |
||
InitializeSaveState ( Newtonsoft.Json.Linq.JObject saveBundle ) : void | ||
LookupEntityType ( String entityTypeName ) : |
||
OpenDbConnection ( ) : void |
Internal use only. Should only be called by ContextProvider during SaveChanges. Opens the DbConnection used by the ContextProvider's implementation. Method must be idempotent; after it is called the first time, subsequent calls have no effect.
|
|
SaveChangesCore ( |
Méthode | Description | |
---|---|---|
CreateJsonSerializer ( ) : |
||
JsonToDictionary ( dynamic json ) : Object>.Dictionary |
||
OpenAndSave ( |
protected AfterSaveEntities ( Dictionary |
||
saveMap | Dictionary |
The same saveMap that was returned from BeforeSaveEntities |
keyMappings | List |
The mapping of temporary keys to real keys |
Résultat | void |
protected BeforeSaveEntities ( Dictionary |
||
saveMap | Dictionary |
A List of EntityInfo for each Type |
Résultat | List |
protected BeforeSaveEntity ( |
||
entityInfo | ||
Résultat | bool |
protected BeginTransaction ( System isolationLevel ) : IDbTransaction | ||
isolationLevel | System | |
Résultat | IDbTransaction |
protected abstract BuildJsonMetadata ( ) : String | ||
Résultat | String |
protected abstract CloseDbConnection ( ) : void | ||
Résultat | void |
protected CreateEntityInfo ( ) : |
||
Résultat |
public CreateEntityInfo ( Object entity, System.Data.EntityState entityState = EntityState.Added ) : |
||
entity | Object | |
entityState | System.Data.EntityState | |
Résultat |
protected CreateEntityInfoFromJson ( dynamic jo, |
||
jo | dynamic | |
entityType | ||
Résultat |
public static ExtractSaveOptions ( dynamic dynSaveBundle ) : |
||
dynSaveBundle | dynamic | |
Résultat |
public abstract GetDbConnection ( ) : IDbConnection | ||
Résultat | IDbConnection |
public GetKeyValues ( |
||
entityInfo | ||
Résultat | object[] |
protected HandleSaveException ( |
||
e | ||
saveWorkState | ||
Résultat | bool |
protected InitializeSaveState ( Newtonsoft.Json.Linq.JObject saveBundle ) : void | ||
saveBundle | Newtonsoft.Json.Linq.JObject | |
Résultat | void |
protected LookupEntityType ( String entityTypeName ) : |
||
entityTypeName | String | |
Résultat |
protected abstract OpenDbConnection ( ) : void | ||
Résultat | void |
public SaveChanges ( Newtonsoft.Json.Linq.JObject saveBundle, Breeze.ContextProvider.TransactionSettings transactionSettings = null ) : |
||
saveBundle | Newtonsoft.Json.Linq.JObject | |
transactionSettings | Breeze.ContextProvider.TransactionSettings | |
Résultat |
protected abstract SaveChangesCore ( |
||
saveWorkState | ||
Résultat | void |
public static XDocToJson ( System.Xml.Linq.XDocument xDoc ) : String | ||
xDoc | System.Xml.Linq.XDocument | |
Résultat | String |