mirror of https://github.com/abpframework/abp
				
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							28 lines
						
					
					
						
							682 B
						
					
					
				
			
		
		
	
	
							28 lines
						
					
					
						
							682 B
						
					
					
				| using AbpPerfTest.WithoutAbp.Entities;
 | |
| using Microsoft.EntityFrameworkCore;
 | |
| 
 | |
| namespace AbpPerfTest.WithoutAbp.EntityFramework
 | |
| {
 | |
|     public class BookDbContext : DbContext
 | |
|     {
 | |
|         public DbSet<Book> Books { get; set; }
 | |
| 
 | |
|         public BookDbContext(DbContextOptions<BookDbContext> builderOptions)
 | |
|             : base(builderOptions)
 | |
|         {
 | |
| 
 | |
|         }
 | |
| 
 | |
|         protected override void OnModelCreating(ModelBuilder modelBuilder)
 | |
|         {
 | |
|             base.OnModelCreating(modelBuilder);
 | |
| 
 | |
|             modelBuilder.Entity<Book>(b =>
 | |
|             {
 | |
|                 b.ToTable("Books");
 | |
|                 b.Property(x => x.Name).HasMaxLength(128);
 | |
|             });
 | |
|         }
 | |
|     }
 | |
| }
 |