/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromAbcclasscriteria(ref DataRow row, Abcclasscriteria entity) { row.SetField("co_num", entity.coNum); row.SetField("wh_num", entity.whNum); row.SetField("abcclassuserfield", entity.abcclassuserfield); row.SetField("userfield", entity.userfield); }
public static Abcclasscriteria BuildAbcclasscriteriaFromRow(DataRow row) { Abcclasscriteria entity = new Abcclasscriteria(); 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.abcclassuserfield = row.IsNull("abcclassuserfield") ? string.Empty : row.Field <string>("abcclassuserfield"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }