static public ProcedureCode Load(IPersistenceContext read, ServerEntityKey key) { var broker = read.GetBroker <IProcedureCodeEntityBroker>(); ProcedureCode theObject = broker.Load(key); return(theObject); }
static public ProcedureCode Insert(ProcedureCode entity) { using (var update = PersistentStoreRegistry.GetDefaultStore().OpenUpdateContext(UpdateContextSyncMode.Flush)) { ProcedureCode newEntity = Insert(update, entity); update.Commit(); return(newEntity); } }
static public ProcedureCode Insert(ProcedureCode entity) { using (var update = PersistentStoreRegistry.GetDefaultStore().OpenUpdateContext(UpdateContextSyncMode.Flush)) { ProcedureCode newEntity = Insert(update, entity); update.Commit(); return newEntity; } }
static public ProcedureCode Insert(IUpdateContext update, ProcedureCode entity) { var broker = update.GetBroker <IProcedureCodeEntityBroker>(); var updateColumns = new ProcedureCodeUpdateColumns(); updateColumns.ServerPartitionKey = entity.ServerPartitionKey; updateColumns.Identifier = entity.Identifier; updateColumns.Text = entity.Text; updateColumns.CodingSystem = entity.CodingSystem; ProcedureCode newEntity = broker.Insert(updateColumns); return(newEntity); }
static public ProcedureCode Insert(IUpdateContext update, ProcedureCode entity) { var broker = update.GetBroker<IProcedureCodeEntityBroker>(); var updateColumns = new ProcedureCodeUpdateColumns(); updateColumns.ServerPartitionKey = entity.ServerPartitionKey; updateColumns.Identifier = entity.Identifier; updateColumns.Text = entity.Text; updateColumns.CodingSystem = entity.CodingSystem; ProcedureCode newEntity = broker.Insert(updateColumns); return newEntity; }