Add project files.
This commit is contained in:
		
							
								
								
									
										16
									
								
								Core.Blueprint.DAL.Infrastrcture/Context/SqlServerContext.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								Core.Blueprint.DAL.Infrastrcture/Context/SqlServerContext.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| using Core.Blueprint.Domain.Entities; | ||||
| using Microsoft.EntityFrameworkCore; | ||||
|  | ||||
| namespace Core.Blueprint.DAL.Infrastructure.Context | ||||
| { | ||||
|     public sealed class SqlServerContext : DbContext | ||||
|     { | ||||
|         public SqlServerContext(DbContextOptions options) : base(options) { } | ||||
|         public DbSet<SampleItem> BlueprintTests { get; set; } | ||||
|         protected override void OnModelCreating(ModelBuilder modelBuilder) | ||||
|         { | ||||
|             base.OnModelCreating(modelBuilder); | ||||
|             modelBuilder.Entity<SampleItem>().Property(p => p.Id).HasConversion(a => a, b => b); | ||||
|         } | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Sergio Matias Urquin
					Sergio Matias Urquin