Exemplo n.º 1
0
 /// <summary>
 /// Creates a <see cref="DatastoreDb"/> to operate on the partition identified by <paramref name="projectId"/>
 /// and <paramref name="namespaceId"/>, using the <paramref name="client"/> to perform remote operations.
 /// </summary>
 /// <param name="projectId">The project ID to use in all operations.</param>
 /// <param name="namespaceId">The namespace ID to use in operations requiring a partition.</param>
 /// <param name="client">The client to use for remote operations. If this is null, an instance will be created
 /// using default settings.</param>
 /// <returns>A <see cref="DatastoreDb"/> operating on the specified partition.</returns>
 public static DatastoreDb Create(string projectId, string namespaceId = "", DatastoreClient client = null) =>
 new DatastoreDbImpl(projectId, namespaceId, client ?? DatastoreClient.Create());