18 lines
		
	
	
		
			469 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			469 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| namespace Core.Blueprint.Domain.Contexts.SQLServer.BaseConfig
 | |
| {
 | |
|     public abstract class BaseSQLEntity
 | |
|     {
 | |
|         public Guid Id { get; set; } = Guid.NewGuid();
 | |
| 
 | |
|         public Guid TransactionalId { get; private set; }
 | |
|         public DateTime Created = DateTime.Now;
 | |
|         public DateTime Update { get; private set; }
 | |
| 
 | |
| 
 | |
|         public void IsUpdate()
 | |
|         {
 | |
|             TransactionalId = Guid.NewGuid();
 | |
|             Update = DateTime.Now;
 | |
|         }
 | |
|     }
 | |
| } | 
