/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromSaabncriteria(ref DataRow row, Saabncriteria entity) { row.SetField("noun", entity.noun); row.SetField("syncbodfl", entity.syncbodfl); row.SetField("processbodfl", entity.processbodfl); row.SetField("userfield", entity.userfield); }
public static Saabncriteria BuildSaabncriteriaFromRow(DataRow row) { Saabncriteria entity = new Saabncriteria(); entity.noun = row.IsNull("noun") ? string.Empty : row.Field <string>("noun"); entity.syncbodfl = row.Field <bool>("syncbodfl"); entity.processbodfl = row.Field <bool>("processbodfl"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }