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