SetDefaultDateTimeKind
This commit is contained in:
		
							parent
							
								
									c0b77acb42
								
							
						
					
					
						commit
						d2959cac31
					
				| @ -1,4 +1,5 @@ | ||||
| using EnotaryoPH.Data.Entities; | ||||
| using EnotaryoPH.Data.Extensions; | ||||
| using Microsoft.EntityFrameworkCore; | ||||
| using Microsoft.Extensions.Configuration; | ||||
| 
 | ||||
| @ -12,6 +13,12 @@ namespace EnotaryoPH.Data | ||||
| 
 | ||||
|         protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) => optionsBuilder.UseNpgsql(_configuration.GetConnectionString("NotaryoDatabase")); | ||||
| 
 | ||||
|         protected override void OnModelCreating(ModelBuilder modelBuilder) | ||||
|         { | ||||
|             modelBuilder.SetDefaultDateTimeKind(DateTimeKind.Utc); | ||||
|             base.OnModelCreating(modelBuilder); | ||||
|         } | ||||
| 
 | ||||
|         public DbSet<ErrorLog>? ErrorLogs { get; set; } | ||||
|         public DbSet<EventLog>? EventLogs { get; set; } | ||||
|         public DbSet<IdentificationDocument>? IdentificationDocuments { get; set; } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user