Свойство | Тип | Описание | |
---|---|---|---|
KeyGeneratorType | Lazy |
Метод | Описание | |
---|---|---|
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 |
Метод | Описание | |
---|---|---|
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 ( |
Метод | Описание | |
---|---|---|
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 |
Результат | void |
protected BeforeSaveEntities ( Dictionary |
||
saveMap | Dictionary |
A List of EntityInfo for each Type |
Результат | List |
protected BeforeSaveEntity ( |
||
entityInfo | ||
Результат | bool |
protected BeginTransaction ( System isolationLevel ) : IDbTransaction | ||
isolationLevel | System | |
Результат | IDbTransaction |
protected abstract BuildJsonMetadata ( ) : String | ||
Результат | String |
protected abstract CloseDbConnection ( ) : void | ||
Результат | void |
protected CreateEntityInfo ( ) : |
||
Результат |
public CreateEntityInfo ( Object entity, System.Data.EntityState entityState = EntityState.Added ) : |
||
entity | Object | |
entityState | System.Data.EntityState | |
Результат |
protected CreateEntityInfoFromJson ( dynamic jo, |
||
jo | dynamic | |
entityType | ||
Результат |
public static ExtractSaveOptions ( dynamic dynSaveBundle ) : |
||
dynSaveBundle | dynamic | |
Результат |
public abstract GetDbConnection ( ) : IDbConnection | ||
Результат | IDbConnection |
public GetKeyValues ( |
||
entityInfo | ||
Результат | object[] |
protected HandleSaveException ( |
||
e | ||
saveWorkState | ||
Результат | bool |
protected InitializeSaveState ( Newtonsoft.Json.Linq.JObject saveBundle ) : void | ||
saveBundle | Newtonsoft.Json.Linq.JObject | |
Результат | void |
protected LookupEntityType ( String entityTypeName ) : |
||
entityTypeName | String | |
Результат |
protected abstract OpenDbConnection ( ) : void | ||
Результат | void |
public SaveChanges ( Newtonsoft.Json.Linq.JObject saveBundle, Breeze.ContextProvider.TransactionSettings transactionSettings = null ) : |
||
saveBundle | Newtonsoft.Json.Linq.JObject | |
transactionSettings | Breeze.ContextProvider.TransactionSettings | |
Результат |
protected abstract SaveChangesCore ( |
||
saveWorkState | ||
Результат | void |
public static XDocToJson ( System.Xml.Linq.XDocument xDoc ) : String | ||
xDoc | System.Xml.Linq.XDocument | |
Результат | String |