protected virtual FieldValue[] CreateFieldValues(XIOT.Data.Objects.LU_ObjectType theLU_ObjectType, XIOT.Data.Objects.LU_ObjectType original_LU_ObjectType) { List <FieldValue> values = new List <FieldValue>(); values.Add(new FieldValue("ObjectTypeID", original_LU_ObjectType.ObjectTypeID, theLU_ObjectType.ObjectTypeID)); values.Add(new FieldValue("Code", original_LU_ObjectType.Code, theLU_ObjectType.Code)); values.Add(new FieldValue("DateCreated", original_LU_ObjectType.DateCreated, theLU_ObjectType.DateCreated)); values.Add(new FieldValue("DateModified", original_LU_ObjectType.DateModified, theLU_ObjectType.DateModified)); return(values.ToArray()); }
protected virtual int ExecuteAction(XIOT.Data.Objects.LU_ObjectType theLU_ObjectType, XIOT.Data.Objects.LU_ObjectType original_LU_ObjectType, string lastCommandName, string commandName, string dataView) { ActionArgs args = new ActionArgs(); args.Controller = "LU_ObjectType"; args.View = dataView; args.Values = CreateFieldValues(theLU_ObjectType, original_LU_ObjectType); args.LastCommandName = lastCommandName; args.CommandName = commandName; ActionResult result = ControllerFactory.CreateDataController().Execute("LU_ObjectType", dataView, args); result.RaiseExceptionIfErrors(); result.AssignTo(theLU_ObjectType); return(result.RowsAffected); }
public static List <XIOT.Data.Objects.LU_ObjectType> Select(XIOT.Data.Objects.LU_ObjectType qbe) { return(new LU_ObjectTypeFactory().Select(qbe)); }
public virtual int Delete(XIOT.Data.Objects.LU_ObjectType theLU_ObjectType) { return(ExecuteAction(theLU_ObjectType, theLU_ObjectType, "Select", "Delete", DeleteView)); }
public virtual int Insert(XIOT.Data.Objects.LU_ObjectType theLU_ObjectType) { return(ExecuteAction(theLU_ObjectType, new LU_ObjectType(), "New", "Insert", InsertView)); }
public virtual int Update(XIOT.Data.Objects.LU_ObjectType theLU_ObjectType) { return(Update(theLU_ObjectType, SelectSingle(theLU_ObjectType.ObjectTypeID))); }
public virtual int Update(XIOT.Data.Objects.LU_ObjectType theLU_ObjectType, XIOT.Data.Objects.LU_ObjectType original_LU_ObjectType) { return(ExecuteAction(theLU_ObjectType, original_LU_ObjectType, "Edit", "Update", UpdateView)); }
public List <XIOT.Data.Objects.LU_ObjectType> Select(XIOT.Data.Objects.LU_ObjectType qbe) { return(Select(qbe.ObjectTypeID, qbe.Code, qbe.DateCreated, qbe.DateModified)); }