entityCollection.Entities[0].GetAttributeValue<EntityReference>("字段").Id
Often forget about the record