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