mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Initial state
This commit is contained in:
21
samples/angular/MusicStore/Apis/Models/CartItem.cs
Normal file
21
samples/angular/MusicStore/Apis/Models/CartItem.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user