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