protected virtual FieldValue[] CreateFieldValues(VSM.Data.Objects.M_Radius_Server_Interface theM_Radius_Server_Interface, VSM.Data.Objects.M_Radius_Server_Interface original_M_Radius_Server_Interface)
        {
            List <FieldValue> values = new List <FieldValue>();

            values.Add(new FieldValue("RadiusServer_Code", original_M_Radius_Server_Interface.RadiusServer_Code, theM_Radius_Server_Interface.RadiusServer_Code));
            values.Add(new FieldValue("RadiusServer_RadiusServer_Name", original_M_Radius_Server_Interface.RadiusServer_RadiusServer_Name, theM_Radius_Server_Interface.RadiusServer_RadiusServer_Name, true));
            values.Add(new FieldValue("Interface_Code", original_M_Radius_Server_Interface.Interface_Code, theM_Radius_Server_Interface.Interface_Code));
            values.Add(new FieldValue("Interface_Interface_Name", original_M_Radius_Server_Interface.Interface_Interface_Name, theM_Radius_Server_Interface.Interface_Interface_Name, true));
            values.Add(new FieldValue("CreatedBy", original_M_Radius_Server_Interface.CreatedBy, theM_Radius_Server_Interface.CreatedBy));
            values.Add(new FieldValue("CreatedOn", original_M_Radius_Server_Interface.CreatedOn, theM_Radius_Server_Interface.CreatedOn));
            values.Add(new FieldValue("ModifiedBy", original_M_Radius_Server_Interface.ModifiedBy, theM_Radius_Server_Interface.ModifiedBy));
            values.Add(new FieldValue("ModifiedOn", original_M_Radius_Server_Interface.ModifiedOn, theM_Radius_Server_Interface.ModifiedOn));
            return(values.ToArray());
        }
        protected virtual int ExecuteAction(VSM.Data.Objects.M_Radius_Server_Interface theM_Radius_Server_Interface, VSM.Data.Objects.M_Radius_Server_Interface original_M_Radius_Server_Interface, string lastCommandName, string commandName, string dataView)
        {
            ActionArgs args = new ActionArgs();

            args.Controller      = "M_Radius_Server_Interface";
            args.View            = dataView;
            args.Values          = CreateFieldValues(theM_Radius_Server_Interface, original_M_Radius_Server_Interface);
            args.LastCommandName = lastCommandName;
            args.CommandName     = commandName;
            ActionResult result = ControllerFactory.CreateDataController().Execute("M_Radius_Server_Interface", dataView, args);

            result.RaiseExceptionIfErrors();
            result.AssignTo(theM_Radius_Server_Interface);
            return(result.RowsAffected);
        }
 public virtual int Delete(VSM.Data.Objects.M_Radius_Server_Interface theM_Radius_Server_Interface)
 {
     return(ExecuteAction(theM_Radius_Server_Interface, theM_Radius_Server_Interface, "Select", "Delete", DeleteView));
 }
 public virtual int Insert(VSM.Data.Objects.M_Radius_Server_Interface theM_Radius_Server_Interface)
 {
     return(ExecuteAction(theM_Radius_Server_Interface, new M_Radius_Server_Interface(), "New", "Insert", InsertView));
 }
 public virtual int Update(VSM.Data.Objects.M_Radius_Server_Interface theM_Radius_Server_Interface)
 {
     return(Update(theM_Radius_Server_Interface, SelectSingle(theM_Radius_Server_Interface.RadiusServer_Code, theM_Radius_Server_Interface.Interface_Code)));
 }
 public virtual int Update(VSM.Data.Objects.M_Radius_Server_Interface theM_Radius_Server_Interface, VSM.Data.Objects.M_Radius_Server_Interface original_M_Radius_Server_Interface)
 {
     return(ExecuteAction(theM_Radius_Server_Interface, original_M_Radius_Server_Interface, "Edit", "Update", UpdateView));
 }
 public List <VSM.Data.Objects.M_Radius_Server_Interface> Select(VSM.Data.Objects.M_Radius_Server_Interface qbe)
 {
     return(Select(qbe.RadiusServer_Code, qbe.RadiusServer_RadiusServer_Name, qbe.Interface_Code, qbe.Interface_Interface_Name, qbe.CreatedBy, qbe.CreatedOn, qbe.ModifiedBy, qbe.ModifiedOn));
 }
 public static List <VSM.Data.Objects.M_Radius_Server_Interface> Select(VSM.Data.Objects.M_Radius_Server_Interface qbe)
 {
     return(new M_Radius_Server_InterfaceFactory().Select(qbe));
 }