mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 04:18:16 +08:00
add examples domain_01
This commit is contained in:
25
Examples/domain_01/Entitys/Song.cs
Normal file
25
Examples/domain_01/Entitys/Song.cs
Normal file
@ -0,0 +1,25 @@
|
||||
using FreeSql.DataAnnotations;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace domain_01.Entitys {
|
||||
|
||||
/// <summary>
|
||||
/// 歌曲
|
||||
/// </summary>
|
||||
public class Song {
|
||||
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public Guid SingerId { get; set; }
|
||||
public virtual Guid Singer { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public string Url { get; set; }
|
||||
|
||||
public virtual ICollection<Album> Albums { get; set; }
|
||||
|
||||
public DateTime RegTime { get; set; } = DateTime.Now;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user