public override void UpdateFormProperty(FormProperty formProperty) { using (TransactionScope transaction = new TransactionScope(mConfiguration)) { FormPropertyDataStore dataStore = new FormPropertyDataStore(transaction); dataStore.Update(formProperty); transaction.Commit(); } }
public override FormProperty GetFormProperty(string id) { using (TransactionScope transaction = new TransactionScope(mConfiguration)) { FormPropertyDataStore dataStore = new FormPropertyDataStore(transaction); FormProperty formProperty = dataStore.FindByKey(id); //if (formDefinition == null) // throw new FormNotFoundException(id); return(formProperty); } }
public override FormProperty CreateFormProperty(FormDefinition formDefinition, string name, string datatype, int sequenceNo) { using (TransactionScope transaction = new TransactionScope(mConfiguration)) { FormPropertyDataStore dataStore = new FormPropertyDataStore(transaction); FormProperty formProperty = new FormProperty(formDefinition, name, datatype, sequenceNo); dataStore.Insert(formProperty); transaction.Commit(); return(formProperty); } }
public override FormProperty GetFormPropertyByName(string name, bool throwIfNotFound) { using (TransactionScope transaction = new TransactionScope(mConfiguration)) { FormPropertyDataStore dataStore = new FormPropertyDataStore(transaction); FormProperty formProperty = dataStore.FindByName(name); //if (formDefinition == null && throwIfNotFound) // throw new FormNotFoundException(name); //else if (formDefinition == null) // return null; return(formProperty); } }
public override FormPropertyInstance GetFormPropertyInstanceByKeys(FormInstance formInstance, FormProperty formProperty, bool throwIfNotFound) { using (TransactionScope transaction = new TransactionScope(mConfiguration)) { throw new NotImplementedException("GetFormPropertyInstanceByKeys not implemented"); //FormPropertyInstanceDataStore dataStore = new FormPropertyInstanceDataStore(transaction); //FormPropertyInstance formPropertyInstance = dataStore.find.FindByName(name); //if (formDefinition == null && throwIfNotFound) // throw new FormNotFoundException(name); //else if (formDefinition == null) // return null; //return formPropertyInstance; //return null; } }
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 UpdateFormProperty(FormProperty formProperty) { Provider.UpdateFormProperty(formProperty); }
public static void DeleteFormProperty(FormProperty formProperty) { Provider.DeleteFormProperty(formProperty); }
public static FormPropertyInstance CreateFormPropertyInstance(FormInstance formInstance, FormProperty formProperty, string value) { return(Provider.CreateFormPropertyInstance(formInstance, formProperty, value)); }
public abstract FormPropertyInstance GetFormPropertyInstanceByKeys(FormInstance formInstance, FormProperty formProperty, bool throwIfNotFound);
public abstract FormPropertyInstance CreateFormPropertyInstance(FormInstance formInstance, FormProperty formProperty, string value);
public abstract void DeleteFormProperty(FormProperty formProperty);
public abstract void UpdateFormProperty(FormProperty formProperty);
public FormPropertyInstance(FormInstance formInstance, FormProperty formProperty, string value) { this.FormInstance = formInstance; this.FormProperty = formProperty; this.Value = value; }