mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
21 lines
472 B
C#
21 lines
472 B
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace MusicStore.Models
|
|
{
|
|
public class CartItem
|
|
{
|
|
[Key]
|
|
public int CartItemId { get; set; }
|
|
|
|
[Required]
|
|
public string CartId { get; set; }
|
|
public int AlbumId { get; set; }
|
|
public int Count { get; set; }
|
|
|
|
[DataType(DataType.DateTime)]
|
|
public DateTime DateCreated { get; set; }
|
|
|
|
public virtual Album Album { get; set; }
|
|
}
|
|
} |