0
다른 모델 유형을 상속 한 모델이있는 Cosmos DB에 모델이 유지됩니다. 같은 뭔가 : Linq에와 Parent.propertyB = 'someValue와'는, 내가 코스모스 DB .NET 클라이언트에 대해서 typeof <>를 사용할 수 있다는 것을 발견 어디 모든 ThirdType 문서를 조회하려고
class ParentType {
public string name;
}
class ChieldTypeOne : ParentType {
public string propertyA;
}
class ChieldTypeTwo : ParentType {
public string propertyB;
}
class ThirdType {
public List<ParentType> Parents;
}
. 나는 SQL을 사용해 보았지만 $ types 필드를 쿼리하기 위해 $로 시작하는 필드를 쿼리하는 방법을 모른다.이 필드는 Json.NET이 문서 유형을 구분하기 위해 만든 필드이다.
일부 상황이 발생하여 해결책을 찾았습니까?
Thks,
루이스