mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 01:05:27 +08:00 
			
		
		
		
	源代码改用vs默认格式化
This commit is contained in:
		@@ -1,18 +1,21 @@
 | 
			
		||||
using efcore_to_freesql.Entitys;
 | 
			
		||||
using Microsoft.EntityFrameworkCore;
 | 
			
		||||
 | 
			
		||||
namespace efcore_to_freesql.DBContexts {
 | 
			
		||||
namespace efcore_to_freesql.DBContexts
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
	public class Topic2Context : BaseDBContext {
 | 
			
		||||
    public class Topic2Context : BaseDBContext
 | 
			
		||||
    {
 | 
			
		||||
 | 
			
		||||
		public DbSet<Topic2> Topic2s { get; set; }
 | 
			
		||||
        public DbSet<Topic2> Topic2s { get; set; }
 | 
			
		||||
 | 
			
		||||
		protected override void OnModelCreating(ModelBuilder modelBuilder) {
 | 
			
		||||
        protected override void OnModelCreating(ModelBuilder modelBuilder)
 | 
			
		||||
        {
 | 
			
		||||
 | 
			
		||||
			modelBuilder.Entity<Topic2>().ToTable("topic2_sss");
 | 
			
		||||
			modelBuilder.Entity<Topic2>().Property(a => a.Id).HasColumnName("topic2_id");
 | 
			
		||||
            modelBuilder.Entity<Topic2>().ToTable("topic2_sss");
 | 
			
		||||
            modelBuilder.Entity<Topic2>().Property(a => a.Id).HasColumnName("topic2_id");
 | 
			
		||||
 | 
			
		||||
			base.OnModelCreating(modelBuilder);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
            base.OnModelCreating(modelBuilder);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user