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);
     }
 }
Ejemplo n.º 4
0
 public static void DeleteFormPropertyInstance(FormPropertyInstance formPropertyInstance)
 {
     Provider.DeleteFormPropertyInstance(formPropertyInstance);
 }
Ejemplo n.º 5
0
 public static void UpdateFormPropertyInstance(FormPropertyInstance formPropertyInstance)
 {
     Provider.UpdateFormPropertyInstance(formPropertyInstance);
 }
Ejemplo n.º 6
0
 public abstract void DeleteFormPropertyInstance(FormPropertyInstance formPropertyInstance);
Ejemplo n.º 7
0
 public abstract void UpdateFormPropertyInstance(FormPropertyInstance formPropertyInstance);