public static Oemultilinecreateresults BuildOemultilinecreateresultsFromRow(DataRow row) { Oemultilinecreateresults entity = new Oemultilinecreateresults(); entity.pono = row.IsNull("pono") ? 0 : row.Field <int>("pono"); entity.wtno = row.IsNull("wtno") ? 0 : row.Field <int>("wtno"); return(entity); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromOemultilinecreateresults(ref DataRow row, Oemultilinecreateresults entity) { row.SetField("pono", entity.pono); row.SetField("wtno", entity.wtno); }