17 lines
349 B
C#
17 lines
349 B
C#
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace MusicStore.Models
|
|
{
|
|
public class Genre
|
|
{
|
|
public int GenreId { get; set; }
|
|
|
|
[Required]
|
|
public string Name { get; set; }
|
|
|
|
public string Description { get; set; }
|
|
|
|
public List<Album> Albums { get; set; }
|
|
}
|
|
} |