public override void UpdateFormPropertyInstance(FormPropertyInstance formPropertyInstance) { using (TransactionScope transaction = new TransactionScope(mConfiguration)) { FormPropertyInstanceDataStore dataStore = new FormPropertyInstanceDataStore(transaction); dataStore.Update(formPropertyInstance); transaction.Commit(); } }
public override FormPropertyInstance GetFormPropertyInstance(string id) { using (TransactionScope transaction = new TransactionScope(mConfiguration)) { FormPropertyInstanceDataStore dataStore = new FormPropertyInstanceDataStore(transaction); FormPropertyInstance formPropertyInstance = dataStore.FindByKey(id); //if (formDefinition == null) // throw new FormNotFoundException(id); return(formPropertyInstance); } }
public override FormPropertyInstance CreateFormPropertyInstance(FormInstance formInstance, FormProperty formProperty, string value) { using (TransactionScope transaction = new TransactionScope(mConfiguration)) { FormPropertyInstanceDataStore dataStore = new FormPropertyInstanceDataStore(transaction); FormPropertyInstance formPropertyInstance = new FormPropertyInstance(formInstance, formProperty, value); dataStore.Insert(formPropertyInstance); transaction.Commit(); return(formPropertyInstance); } }
public static void DeleteFormPropertyInstance(FormPropertyInstance formPropertyInstance) { Provider.DeleteFormPropertyInstance(formPropertyInstance); }
public static void UpdateFormPropertyInstance(FormPropertyInstance formPropertyInstance) { Provider.UpdateFormPropertyInstance(formPropertyInstance); }
public abstract void DeleteFormPropertyInstance(FormPropertyInstance formPropertyInstance);
public abstract void UpdateFormPropertyInstance(FormPropertyInstance formPropertyInstance);