/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromOmorderzeroshipcriteria(ref DataRow row, Omorderzeroshipcriteria entity) { row.SetField("co_num", entity.coNum); row.SetField("wh_num", entity.whNum); row.SetField("user_id", entity.userId); row.SetField("userfield", entity.userfield); }
public static Omorderzeroshipcriteria BuildOmorderzeroshipcriteriaFromRow(DataRow row) { Omorderzeroshipcriteria entity = new Omorderzeroshipcriteria(); entity.coNum = row.IsNull("co_num") ? string.Empty : row.Field <string>("co_num"); entity.whNum = row.IsNull("wh_num") ? string.Empty : row.Field <string>("wh_num"); entity.userId = row.IsNull("user_id") ? string.Empty : row.Field <string>("user_id"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }