public static Syspadate BuildSyspadateFromRow(DataRow row) { Syspadate entity = new Syspadate(); entity.parameterDate = row.Field <DateTime?>("parameter_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 UpdateRowFromSyspadate(ref DataRow row, Syspadate entity) { row.SetField("parameter_date", entity.parameterDate); row.SetField("userfield", entity.userfield); }