public static Apshipfromvalidatedelete BuildApshipfromvalidatedeleteFromRow(DataRow row) { Apshipfromvalidatedelete entity = new Apshipfromvalidatedelete(); entity.vendno = row.IsNull("vendno") ? decimal.Zero : row.Field <decimal>("vendno"); entity.shipfmno = row.IsNull("shipfmno") ? 0 : row.Field <int>("shipfmno"); 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 UpdateRowFromApshipfromvalidatedelete(ref DataRow row, Apshipfromvalidatedelete entity) { row.SetField("vendno", entity.vendno); row.SetField("shipfmno", entity.shipfmno); row.SetField("userfield", entity.userfield); }