/* Options:
Date: 2025-01-06 02:42:07
Version: 8.51
Tip: To override a DTO option, remove "//" prefix before updating
BaseUrl: https://blazor-gallery.servicestack.net

//GlobalNamespace: 
//MakePartial: True
//MakeVirtual: True
//MakeInternal: False
//MakeDataContractsExtensible: False
//AddNullableAnnotations: False
//AddReturnMarker: True
//AddDescriptionAsComments: True
//AddDataContractAttributes: False
//AddIndexesToDataMembers: False
//AddGeneratedCodeAttributes: False
//AddResponseStatus: False
//AddImplicitVersion: 
//InitializeCollections: False
//ExportValueTypes: False
IncludeTypes: UpdateGameItem.*
//ExcludeTypes: 
//AddNamespaces: 
//AddDefaultXmlNamespace: http://schemas.servicestack.net/types
*/

using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using MyApp.ServiceModel;

namespace MyApp.ServiceModel
{
    public partial class GameItem
        : AuditBase
    {
        [StringLength(50)]
        public virtual string Name { get; set; }

        public virtual string ImageUrl { get; set; }
        [StringLength(int.MaxValue)]
        public virtual string Description { get; set; }

        public virtual DateTime DateAdded { get; set; }
    }

    public partial class UpdateGameItem
        : IReturn<IdResponse>, IPatchDb<GameItem>
    {
        [Validate("NotEmpty")]
        public virtual string Name { get; set; }

        [Validate("NotEmpty")]
        public virtual string Description { get; set; }

        public virtual string ImageUrl { get; set; }
    }

}