build立与实体的多重关系

我们正在研究Google Cloud Datastore,并使用“Google.Cloud.Datastore.V1”API创build了项目。 现在,我们想要的是我们需要与多个实体build立多重关系。

我在C#中使用以下格式:

var ckey = new KeyFactory(clientkey, CommonHelper.FunctionEnum.Client.ToString()).CreateKey(guest.ClientId); var rkey = new KeyFactory(roomkey, CommonHelper.FunctionEnum.Room.ToString()).CreateKey(guest.RoomId); var gkey = new KeyFactory(bookingkey, CommonHelper.FunctionEnum.Reservation.ToString()).CreateKey(guest.BookingId); entity.Key = new KeyFactory(gkey, CommonHelper.FunctionEnum.Guest.ToString()).CreateKey(guest.Id); 

但是,我无法build立它们之间的关系。 请指导我如何实现它。 注意:使用.NET Framework 4.5和C#语言的平台 – 让我们只有相关的build议。