/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromIceanchgbinloccheckresults(ref DataRow row, Iceanchgbinloccheckresults entity) { row.SetField("oeprompt", entity.oeprompt); row.SetField("oepromptmess", entity.oepromptmess); row.SetField("wtprompt", entity.wtprompt); row.SetField("wtpromptmess", entity.wtpromptmess); row.SetField("userfield", entity.userfield); }
public static Iceanchgbinloccheckresults BuildIceanchgbinloccheckresultsFromRow(DataRow row) { Iceanchgbinloccheckresults entity = new Iceanchgbinloccheckresults(); entity.oeprompt = row.Field <bool>("oeprompt"); entity.oepromptmess = row.IsNull("oepromptmess") ? string.Empty : row.Field <string>("oepromptmess"); entity.wtprompt = row.Field <bool>("wtprompt"); entity.wtpromptmess = row.IsNull("wtpromptmess") ? string.Empty : row.Field <string>("wtpromptmess"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }