Property | Type | Description | |
---|---|---|---|
KeyGeneratorType | Lazy |
Method | 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 |
Method | 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 ( |
Method | 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 |
return | void |
protected BeforeSaveEntities ( Dictionary |
||
saveMap | Dictionary |
A List of EntityInfo for each Type |
return | List |
protected BeforeSaveEntity ( |
||
entityInfo | ||
return | bool |
protected BeginTransaction ( System isolationLevel ) : IDbTransaction | ||
isolationLevel | System | |
return | IDbTransaction |
protected abstract BuildJsonMetadata ( ) : String | ||
return | String |
protected abstract CloseDbConnection ( ) : void | ||
return | void |
public CreateEntityInfo ( Object entity, System.Data.EntityState entityState = EntityState.Added ) : |
||
entity | Object | |
entityState | System.Data.EntityState | |
return |
protected CreateEntityInfoFromJson ( dynamic jo, |
||
jo | dynamic | |
entityType | ||
return |
public static ExtractSaveOptions ( dynamic dynSaveBundle ) : |
||
dynSaveBundle | dynamic | |
return |
public abstract GetDbConnection ( ) : IDbConnection | ||
return | IDbConnection |
public GetKeyValues ( |
||
entityInfo | ||
return | object[] |
protected HandleSaveException ( |
||
e | ||
saveWorkState | ||
return | bool |
protected InitializeSaveState ( Newtonsoft.Json.Linq.JObject saveBundle ) : void | ||
saveBundle | Newtonsoft.Json.Linq.JObject | |
return | void |
protected LookupEntityType ( String entityTypeName ) : |
||
entityTypeName | String | |
return |
protected abstract OpenDbConnection ( ) : void | ||
return | void |
public SaveChanges ( Newtonsoft.Json.Linq.JObject saveBundle, Breeze.ContextProvider.TransactionSettings transactionSettings = null ) : |
||
saveBundle | Newtonsoft.Json.Linq.JObject | |
transactionSettings | Breeze.ContextProvider.TransactionSettings | |
return |
protected abstract SaveChangesCore ( |
||
saveWorkState | ||
return | void |
public static XDocToJson ( System.Xml.Linq.XDocument xDoc ) : String | ||
xDoc | System.Xml.Linq.XDocument | |
return | String |