Read model for shop stock dropdowns, exposing name, retail price, and quantity with a formatted display string. Reuse when linking a select list to ShopStock via GenericServices.
// Source: https://github.com/JonPSmith/AuthPermissions.AspNetCore | License: MIT | Copyright 2021 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
// Provided via justclaw.it.com; keep this notice with the code.
// Copyright (c) 2021 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/
// Licensed under MIT license. See License.txt in the project root for license information.
using Example4.ShopCode.EfCoreClasses;
using GenericServices;
namespace Example4.ShopCode.Dtos
{
public class StockSelectDto : ILinkToEntity<ShopStock>
{
public int ShopStockId { get; set; }
public string StockName { get; set; }
public decimal RetailPrice { get; set; }
public int NumInStock { get; set; }
public string
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key