mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	源代码改用vs默认格式化
This commit is contained in:
		@@ -3,50 +3,55 @@ using FreeSql.DataAnnotations;
 | 
			
		||||
using System;
 | 
			
		||||
using System.Collections.Generic;
 | 
			
		||||
 | 
			
		||||
namespace dbcontext_01 {
 | 
			
		||||
namespace dbcontext_01
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
	public class SongContext : DbContext {
 | 
			
		||||
    public class SongContext : DbContext
 | 
			
		||||
    {
 | 
			
		||||
 | 
			
		||||
		public DbSet<Song> Songs { get; set; }
 | 
			
		||||
		public DbSet<Tag> Tags { get; set; }
 | 
			
		||||
        public DbSet<Song> Songs { get; set; }
 | 
			
		||||
        public DbSet<Tag> Tags { get; set; }
 | 
			
		||||
 | 
			
		||||
		//protected override void OnConfiguring(DbContextOptionsBuilder builder) {
 | 
			
		||||
		//	builder.UseFreeSql(dbcontext_01.Startup.Fsql);
 | 
			
		||||
		//}
 | 
			
		||||
	}
 | 
			
		||||
        //protected override void OnConfiguring(DbContextOptionsBuilder builder) {
 | 
			
		||||
        //	builder.UseFreeSql(dbcontext_01.Startup.Fsql);
 | 
			
		||||
        //}
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	public class Song {
 | 
			
		||||
		[Column(IsIdentity = true)]
 | 
			
		||||
		public int Id { get; set; }
 | 
			
		||||
		public DateTime? Create_time { get; set; }
 | 
			
		||||
		public bool? Is_deleted { get; set; }
 | 
			
		||||
		public string Title { get; set; }
 | 
			
		||||
		public string Url { get; set; }
 | 
			
		||||
    public class Song
 | 
			
		||||
    {
 | 
			
		||||
        [Column(IsIdentity = true)]
 | 
			
		||||
        public int Id { get; set; }
 | 
			
		||||
        public DateTime? Create_time { get; set; }
 | 
			
		||||
        public bool? Is_deleted { get; set; }
 | 
			
		||||
        public string Title { get; set; }
 | 
			
		||||
        public string Url { get; set; }
 | 
			
		||||
 | 
			
		||||
		public virtual ICollection<Tag> Tags { get; set; }
 | 
			
		||||
        public virtual ICollection<Tag> Tags { get; set; }
 | 
			
		||||
 | 
			
		||||
		[Column(IsVersion = true)]
 | 
			
		||||
		public long versionRow { get; set; }
 | 
			
		||||
	}
 | 
			
		||||
	public class Song_tag {
 | 
			
		||||
		public int Song_id { get; set; }
 | 
			
		||||
		public virtual Song Song { get; set; }
 | 
			
		||||
        [Column(IsVersion = true)]
 | 
			
		||||
        public long versionRow { get; set; }
 | 
			
		||||
    }
 | 
			
		||||
    public class Song_tag
 | 
			
		||||
    {
 | 
			
		||||
        public int Song_id { get; set; }
 | 
			
		||||
        public virtual Song Song { get; set; }
 | 
			
		||||
 | 
			
		||||
		public int Tag_id { get; set; }
 | 
			
		||||
		public virtual Tag Tag { get; set; }
 | 
			
		||||
	}
 | 
			
		||||
        public int Tag_id { get; set; }
 | 
			
		||||
        public virtual Tag Tag { get; set; }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
	public class Tag {
 | 
			
		||||
		[Column(IsIdentity = true)]
 | 
			
		||||
		public int Id { get; set; }
 | 
			
		||||
		public int? Parent_id { get; set; }
 | 
			
		||||
		public virtual Tag Parent { get; set; }
 | 
			
		||||
    public class Tag
 | 
			
		||||
    {
 | 
			
		||||
        [Column(IsIdentity = true)]
 | 
			
		||||
        public int Id { get; set; }
 | 
			
		||||
        public int? Parent_id { get; set; }
 | 
			
		||||
        public virtual Tag Parent { get; set; }
 | 
			
		||||
 | 
			
		||||
		public decimal? Ddd { get; set; }
 | 
			
		||||
		public string Name { get; set; }
 | 
			
		||||
        public decimal? Ddd { get; set; }
 | 
			
		||||
        public string Name { get; set; }
 | 
			
		||||
 | 
			
		||||
		public virtual ICollection<Song> Songs { get; set; }
 | 
			
		||||
		public virtual ICollection<Tag> Tags { get; set; }
 | 
			
		||||
	}
 | 
			
		||||
        public virtual ICollection<Song> Songs { get; set; }
 | 
			
		||||
        public virtual ICollection<Tag> Tags { get; set; }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user