protected virtual int ExecuteAction(XIOT.Data.Objects.CB_TestPopulation theCB_TestPopulation, XIOT.Data.Objects.CB_TestPopulation original_CB_TestPopulation, string lastCommandName, string commandName, string dataView) { ActionArgs args = new ActionArgs(); args.Controller = "CB_TestPopulation"; args.View = dataView; args.Values = CreateFieldValues(theCB_TestPopulation, original_CB_TestPopulation); args.LastCommandName = lastCommandName; args.CommandName = commandName; ActionResult result = ControllerFactory.CreateDataController().Execute("CB_TestPopulation", dataView, args); result.RaiseExceptionIfErrors(); result.AssignTo(theCB_TestPopulation); return(result.RowsAffected); }
protected virtual FieldValue[] CreateFieldValues(XIOT.Data.Objects.CB_TestPopulation theCB_TestPopulation, XIOT.Data.Objects.CB_TestPopulation original_CB_TestPopulation) { List <FieldValue> values = new List <FieldValue>(); values.Add(new FieldValue("TestPopulationID", original_CB_TestPopulation.TestPopulationID, theCB_TestPopulation.TestPopulationID)); values.Add(new FieldValue("TestID", original_CB_TestPopulation.TestID, theCB_TestPopulation.TestID)); values.Add(new FieldValue("TestTestName", original_CB_TestPopulation.TestTestName, theCB_TestPopulation.TestTestName)); values.Add(new FieldValue("PersonOrGroup", original_CB_TestPopulation.PersonOrGroup, theCB_TestPopulation.PersonOrGroup)); values.Add(new FieldValue("PeopleID", original_CB_TestPopulation.PeopleID, theCB_TestPopulation.PeopleID)); values.Add(new FieldValue("PeopleName", original_CB_TestPopulation.PeopleName, theCB_TestPopulation.PeopleName)); values.Add(new FieldValue("GroupID", original_CB_TestPopulation.GroupID, theCB_TestPopulation.GroupID)); values.Add(new FieldValue("GroupGroupCode", original_CB_TestPopulation.GroupGroupCode, theCB_TestPopulation.GroupGroupCode)); values.Add(new FieldValue("IsPass", original_CB_TestPopulation.IsPass, theCB_TestPopulation.IsPass)); values.Add(new FieldValue("DateCreated", original_CB_TestPopulation.DateCreated, theCB_TestPopulation.DateCreated)); values.Add(new FieldValue("DateModified", original_CB_TestPopulation.DateModified, theCB_TestPopulation.DateModified)); return(values.ToArray()); }
public virtual int Delete(XIOT.Data.Objects.CB_TestPopulation theCB_TestPopulation) { return(ExecuteAction(theCB_TestPopulation, theCB_TestPopulation, "Select", "Delete", DeleteView)); }
public virtual int Insert(XIOT.Data.Objects.CB_TestPopulation theCB_TestPopulation) { return(ExecuteAction(theCB_TestPopulation, new CB_TestPopulation(), "New", "Insert", InsertView)); }
public virtual int Update(XIOT.Data.Objects.CB_TestPopulation theCB_TestPopulation) { return(Update(theCB_TestPopulation, SelectSingle(theCB_TestPopulation.TestPopulationID))); }
public virtual int Update(XIOT.Data.Objects.CB_TestPopulation theCB_TestPopulation, XIOT.Data.Objects.CB_TestPopulation original_CB_TestPopulation) { return(ExecuteAction(theCB_TestPopulation, original_CB_TestPopulation, "Edit", "Update", UpdateView)); }
public List <XIOT.Data.Objects.CB_TestPopulation> Select(XIOT.Data.Objects.CB_TestPopulation qbe) { return(Select(qbe.TestPopulationID, qbe.TestID, qbe.TestTestName, qbe.PersonOrGroup, qbe.PeopleID, qbe.PeopleName, qbe.GroupID, qbe.GroupGroupCode, qbe.IsPass, qbe.DateCreated, qbe.DateModified)); }
public static List <XIOT.Data.Objects.CB_TestPopulation> Select(XIOT.Data.Objects.CB_TestPopulation qbe) { return(new CB_TestPopulationFactory().Select(qbe)); }