Exemple #1
0
        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());
        }
Exemple #2
0
        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);
        }
Exemple #3
0
 public static List <XIOT.Data.Objects.LU_LogSource> Select(XIOT.Data.Objects.LU_LogSource qbe)
 {
     return(new LU_LogSourceFactory().Select(qbe));
 }
Exemple #4
0
 public virtual int Delete(XIOT.Data.Objects.LU_LogSource theLU_LogSource)
 {
     return(ExecuteAction(theLU_LogSource, theLU_LogSource, "Select", "Delete", DeleteView));
 }
Exemple #5
0
 public virtual int Insert(XIOT.Data.Objects.LU_LogSource theLU_LogSource)
 {
     return(ExecuteAction(theLU_LogSource, new LU_LogSource(), "New", "Insert", InsertView));
 }
Exemple #6
0
 public virtual int Update(XIOT.Data.Objects.LU_LogSource theLU_LogSource)
 {
     return(Update(theLU_LogSource, SelectSingle(theLU_LogSource.LogSourceID)));
 }
Exemple #7
0
 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));
 }
Exemple #8
0
 public List <XIOT.Data.Objects.LU_LogSource> Select(XIOT.Data.Objects.LU_LogSource qbe)
 {
     return(Select(qbe.LogSourceID, qbe.Code, qbe.DateCreated, qbe.DateModified));
 }