December 2019
Intermediate to advanced
510 pages
11h 33m
English
Now we have defined which properties and objects are included in the catalog service, let's start by implementing the entities as concrete types. All domain models are conventionally stored in the Entities folder in the Catalog.Domain project. The first type we are creating is the Item class:
using System;namespace Catalog.Domain.Entities{ public class Item { public Guid Id { get; set; } public string Name { get; set; } public string Description { get; set; } public string LabelName { get; set; } public Price Price { get; set; } public string PictureUri { get; set; } public DateTimeOffset ReleaseDate { get; set; } public string Format { get; set; } public int AvailableStock { get; set; } public Genre Genre { get; set; } ...
Read now
Unlock full access