zoukankan      html  css  js  c++  java
  • Class

    using System;
    using System.Collections.Generic;
    using System.Data.Entity;
    using System.Linq;
    using System.Web;
    
    namespace MvcMusic.Models
    {
        public class Album
        {
            public int AlbumID { get; set; }
            public virtual int GenreId { get; set; }
            public virtual int ArtistId { get; set; }
            public int Title { get; set; }
            public decimal Price { get; set; }
            public string AlbumArtUrl { get; set; }
    
            public virtual Artist Artist { get; set; }
            public virtual Genre Genre { get; set; }
        }
    
        public class Genre
        {
            public virtual int GenreId { get; set; }
            public virtual string Name { get; set; }
            public virtual string Description { get; set; }
            public virtual List<Album> Albums { get; set; }
        }
    
    
        public class Artist 
        {
            public virtual int ArtistId { get; set; }
            public virtual string Name { get; set; }
        }
    
        public class MusicStoreDB : DbContext
        {
            public DbSet<Album> Albums { get; set; }
            public DbSet<Genre> Genres { get; set; }
            public DbSet<Artist> Artists { get; set; }
        }
    }
  • 相关阅读:
    观察者模式
    php中compact,extract,list函数的使用
    加密解密
    python 线程池proxypool
    python qq音乐下载
    python 网易云音乐
    python 知识点
    python 格式化 header
    python 爬取百度图片
    php 过滤掉多维数组空值
  • 原文地址:https://www.cnblogs.com/MarchThree/p/3669845.html
Copyright © 2011-2022 走看看