public static Wtesfinalupdate BuildWtesfinalupdateFromRow(DataRow row) { Wtesfinalupdate entity = new Wtesfinalupdate(); entity.errorwtno = row.IsNull("errorwtno") ? 0 : row.Field <int>("errorwtno"); entity.errorwtsuf = row.IsNull("errorwtsuf") ? 0 : row.Field <int>("errorwtsuf"); 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 UpdateRowFromWtesfinalupdate(ref DataRow row, Wtesfinalupdate entity) { row.SetField("errorwtno", entity.errorwtno); row.SetField("errorwtsuf", entity.errorwtsuf); row.SetField("userfield", entity.userfield); }