Which code segment should you insert at line 14?
A. int FldIdx = 0; EntityKey key = record.GetValue(FldIdx) as EntityKey;foreach (EntityKeyMember keyMember in key.EntityKeyValues) { return keyMember.Key + ” : ” + keyMember.Value; }
B. IExtendedDataRecord record = rdr[“EmailPhone”]as IExtendedDataRecord; int FldIdx = 0; return record.GetValue(FldIdx);
C. DbDataRecord nestedRecord = rdr[“EmailPhoneComplexProperty”] as DbDataRecord; return nestedRecord;
D. int fieldCount = rdr[“EmailPhone”].DataRecordInfo.FieldMetadata.Count;for (int FldIdx = 0; FldIdx < fieldCount; FldIdx++){rdr.GetName(FldIdx); if (rdr.IsDBNull (FldIdx) == false){return rdr[“EmailPhone”].GetValue(FldIdx).ToString();}}
Answer:C
Which code segment should you insert at line 14?
A. int FldIdx = 0; EntityKey key = record.GetValue(FldIdx) as EntityKey;foreach (EntityKeyMember keyMember in key.EntityKeyValues) { return keyMember.Key + ” : ” + keyMember.Value; } B. IExtendedDataRecord record = rdr[“EmailPhone”]as IExtendedDataRecord; int FldIdx = 0; return record.GetValue(FldIdx); C. DbDataRecord nestedRecord = rdr[“EmailPhoneComplexProperty”] as DbDataRecord; return nestedRecord; D. int fieldCount = rdr[“EmailPhone”].DataRecordInfo.FieldMetadata.Count;for (int FldIdx = 0; FldIdx < fieldCount; FldIdx++){rdr.GetName(FldIdx); if (rdr.IsDBNull (FldIdx) == false){return rdr[“EmailPhone”].GetValue(FldIdx).ToString();}}