public static Argroupvalidateselltype BuildArgroupvalidateselltypeFromRow(DataRow row) { Argroupvalidateselltype entity = new Argroupvalidateselltype(); entity.groupid = row.IsNull("groupid") ? string.Empty : row.Field <string>("groupid"); entity.selltype = row.IsNull("selltype") ? string.Empty : row.Field <string>("selltype"); 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 UpdateRowFromArgroupvalidateselltype(ref DataRow row, Argroupvalidateselltype entity) { row.SetField("groupid", entity.groupid); row.SetField("selltype", entity.selltype); row.SetField("userfield", entity.userfield); }