public static Iceuloaddetailssingle BuildIceuloaddetailssingleFromRow(DataRow row) { Iceuloaddetailssingle entity = new Iceuloaddetailssingle(); entity.wlwhsefl = row.Field <bool>("wlwhsefl"); entity.wlesbfl = row.Field <bool>("wlesbfl"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromIceuloaddetailssingle(ref DataRow row, Iceuloaddetailssingle entity) { row.SetField("wlwhsefl", entity.wlwhsefl); row.SetField("wlesbfl", entity.wlesbfl); row.SetField("userfield", entity.userfield); }