4
Size: a a a
4
DT
class Image
{
public string Id { get; set; }
public string Title { get; set; }
public string FullSizeUrl { get; set; }
public string PreviewUrl { get; set; }
public List<string> Tags { get; set; }
public Image(string id, string title, string fullSizeUrl, string previewUrl, List<string> tags)
{
Id = id;
Title = title;
FullSizeUrl = fullSizeUrl;
PreviewUrl = previewUrl;
Tags = tags;
}
public Image() {}
}
4
4
DT
4
4
4
var client = new CosmosClient(connectionString);
var database = client.GetDatabase("
db");
var container = database.GetContainer("
container");
var image = new Image(
...);
var response = await container.CreateItemAsync(image);
DT
4
4
DT
4
4
DT
4
4
DT
DT
class Image
{
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }