public static Invdisclistsummary BuildInvdisclistsummaryFromRow(DataRow row) { Invdisclistsummary entity = new Invdisclistsummary(); entity.lowDate = row.Field <DateTime?>("low_date"); 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 UpdateRowFromInvdisclistsummary(ref DataRow row, Invdisclistsummary entity) { row.SetField("low_date", entity.lowDate); row.SetField("userfield", entity.userfield); }