프로퍼티 | 타입 | 설명 | |
---|---|---|---|
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 |
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 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 | |
리턴 |
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 |