public static Oeehrecentvisit BuildOeehrecentvisitFromRow(DataRow row) { Oeehrecentvisit entity = new Oeehrecentvisit(); entity.headerkey = row.IsNull("headerkey") ? string.Empty : row.Field <string>("headerkey"); 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 UpdateRowFromOeehrecentvisit(ref DataRow row, Oeehrecentvisit entity) { row.SetField("headerkey", entity.headerkey); row.SetField("userfield", entity.userfield); }