示例#1
0
 public static MarketplaceItemEntity ToEntity(MarketplaceItemModel model) =>
 new MarketplaceItemEntity
 {
     Id          = model.Id,
     Image       = model.Image,
     Name        = model.Name,
     Description = model.Description,
     OwnerId     = model.OwnerId,
     Price       = model.Price
 };
 public OrderModel(
     int id,
     OrderStatusModel status,
     DateTime orderTime,
     MarketplaceItemModel itemId,
     UserModel?recipient
     ) : base(id, status, orderTime)
 {
     Recipient = recipient;
     Item      = itemId;
 }