public async Task SelectInheritedReference() { Container container = GetODataContainer(); int orderId = (await container.Order .Where(t => t.Date == new DateTimeOffset(new DateTime(2018, 01, 22, 10, 00, 01))) .FirstAsync()).ID; BaseDocument parentDoc = await container.Order.ByKey(orderId).ParentDocument.GetValueAsync(); Assert.IsNotNull(parentDoc); Assert.AreEqual(typeof(Contract), parentDoc.GetType()); Assert.AreEqual("2018-0001", ((Contract)parentDoc).Number); }