collection_name for ndb.KeyProperty

时间:2017-01-04 00:45:23

标签: google-app-engine

db.ReferenceProperty允许collection_name参数指定参考对象R如何查询包含R作为参考的对象。

我没有看到ndb.KeyProperty的类似论点。人们如何解决这个问题?

1 个答案:

答案 0 :(得分:1)

当我切换到# Load the TFS assemblies [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.TeamFoundation.Client") $ws = $vcServer.QueryWorkspaces("<WORKSPACENAME>", $null, $null); # Specify properties of intended workspace get $recursionType = [Microsoft.TeamFoundation.VersionControl.Client.RecursionType]::Full $latestVersion = [Microsoft.TeamFoundation.VersionControl.Client.VersionSpec]::Latest $getOptions = [Microsoft.TeamFoundation.VersionControl.Client.GetOptions]::GetAll # Get what I want! $ws.Get("$/Remote/Folder", $latestVersion, $recursionType, $getOptions) 时,我已经习惯了一点,但它实际上更简单。 ndb只是查询的语法糖,您可以自己进行查询:

collection_name