protected virtual FieldValue[] CreateFieldValues(VSM.Data.Objects.M_Localization_Country theM_Localization_Country, VSM.Data.Objects.M_Localization_Country original_M_Localization_Country) { List <FieldValue> values = new List <FieldValue>(); values.Add(new FieldValue("Locale_Code", original_M_Localization_Country.Locale_Code, theM_Localization_Country.Locale_Code)); values.Add(new FieldValue("Locale_Locale_Name", original_M_Localization_Country.Locale_Locale_Name, theM_Localization_Country.Locale_Locale_Name, true)); values.Add(new FieldValue("Country_Code", original_M_Localization_Country.Country_Code, theM_Localization_Country.Country_Code)); values.Add(new FieldValue("Country_Country_Name_Locale", original_M_Localization_Country.Country_Country_Name_Locale, theM_Localization_Country.Country_Country_Name_Locale, true)); values.Add(new FieldValue("CreatedBy", original_M_Localization_Country.CreatedBy, theM_Localization_Country.CreatedBy)); values.Add(new FieldValue("CreatedOn", original_M_Localization_Country.CreatedOn, theM_Localization_Country.CreatedOn)); values.Add(new FieldValue("ModifiedBy", original_M_Localization_Country.ModifiedBy, theM_Localization_Country.ModifiedBy)); values.Add(new FieldValue("ModifiedOn", original_M_Localization_Country.ModifiedOn, theM_Localization_Country.ModifiedOn)); return(values.ToArray()); }
protected virtual int ExecuteAction(VSM.Data.Objects.M_Localization_Country theM_Localization_Country, VSM.Data.Objects.M_Localization_Country original_M_Localization_Country, string lastCommandName, string commandName, string dataView) { ActionArgs args = new ActionArgs(); args.Controller = "M_Localization_Country"; args.View = dataView; args.Values = CreateFieldValues(theM_Localization_Country, original_M_Localization_Country); args.LastCommandName = lastCommandName; args.CommandName = commandName; ActionResult result = ControllerFactory.CreateDataController().Execute("M_Localization_Country", dataView, args); result.RaiseExceptionIfErrors(); result.AssignTo(theM_Localization_Country); return(result.RowsAffected); }
public virtual int Delete(VSM.Data.Objects.M_Localization_Country theM_Localization_Country) { return(ExecuteAction(theM_Localization_Country, theM_Localization_Country, "Select", "Delete", DeleteView)); }
public virtual int Insert(VSM.Data.Objects.M_Localization_Country theM_Localization_Country) { return(ExecuteAction(theM_Localization_Country, new M_Localization_Country(), "New", "Insert", InsertView)); }
public virtual int Update(VSM.Data.Objects.M_Localization_Country theM_Localization_Country) { return(Update(theM_Localization_Country, SelectSingle(theM_Localization_Country.Locale_Code, theM_Localization_Country.Country_Code))); }
public virtual int Update(VSM.Data.Objects.M_Localization_Country theM_Localization_Country, VSM.Data.Objects.M_Localization_Country original_M_Localization_Country) { return(ExecuteAction(theM_Localization_Country, original_M_Localization_Country, "Edit", "Update", UpdateView)); }
public List <VSM.Data.Objects.M_Localization_Country> Select(VSM.Data.Objects.M_Localization_Country qbe) { return(Select(qbe.Locale_Code, qbe.Locale_Locale_Name, qbe.Country_Code, qbe.Country_Country_Name_Locale, qbe.CreatedBy, qbe.CreatedOn, qbe.ModifiedBy, qbe.ModifiedOn)); }
public static List <VSM.Data.Objects.M_Localization_Country> Select(VSM.Data.Objects.M_Localization_Country qbe) { return(new M_Localization_CountryFactory().Select(qbe)); }