コード例 #1
0
 public override void UpdateFormPropertyInstance(FormPropertyInstance formPropertyInstance)
 {
     using (TransactionScope transaction = new TransactionScope(mConfiguration))
     {
         FormPropertyInstanceDataStore dataStore = new FormPropertyInstanceDataStore(transaction);
         dataStore.Update(formPropertyInstance);
         transaction.Commit();
     }
 }
コード例 #2
0
 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);
     }
 }
コード例 #3
0
 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);
     }
 }
コード例 #4
0
 public static void DeleteFormPropertyInstance(FormPropertyInstance formPropertyInstance)
 {
     Provider.DeleteFormPropertyInstance(formPropertyInstance);
 }
コード例 #5
0
 public static void UpdateFormPropertyInstance(FormPropertyInstance formPropertyInstance)
 {
     Provider.UpdateFormPropertyInstance(formPropertyInstance);
 }
コード例 #6
0
 public abstract void DeleteFormPropertyInstance(FormPropertyInstance formPropertyInstance);
コード例 #7
0
 public abstract void UpdateFormPropertyInstance(FormPropertyInstance formPropertyInstance);