mirror of
				https://github.com/Kareadita/Kavita.git
				synced 2025-10-31 02:27:04 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			487 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			487 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| namespace API.Entities.Interfaces
 | |
| {
 | |
|     /// <summary>
 | |
|     /// An interface abstracting an entity that has a concurrency token.
 | |
|     /// </summary>
 | |
|     public interface IHasConcurrencyToken
 | |
|     {
 | |
|         /// <summary>
 | |
|         /// Gets the version of this row. Acts as a concurrency token.
 | |
|         /// </summary>
 | |
|         uint RowVersion { get; }
 | |
| 
 | |
|         /// <summary>
 | |
|         /// Called when saving changes to this entity.
 | |
|         /// </summary>
 | |
|         void OnSavingChanges();
 | |
| 
 | |
|     }
 | |
| } |