public static Reptwizardfinishoptions BuildReptwizardfinishoptionsFromRow(DataRow row) { Reptwizardfinishoptions entity = new Reptwizardfinishoptions(); entity.optionnumber = row.IsNull("optionnumber") ? 0 : row.Field <int>("optionnumber"); entity.optionname = row.IsNull("optionname") ? string.Empty : row.Field <string>("optionname"); entity.optionvalue = row.IsNull("optionvalue") ? string.Empty : row.Field <string>("optionvalue"); return(entity); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromReptwizardfinishoptions(ref DataRow row, Reptwizardfinishoptions entity) { row.SetField("optionnumber", entity.optionnumber); row.SetField("optionname", entity.optionname); row.SetField("optionvalue", entity.optionvalue); }