chat: add database types and auth middleware
This commit is contained in:
		
							parent
							
								
									656eec81d8
								
							
						
					
					
						commit
						6f6e19bbb5
					
				
					 24 changed files with 1165 additions and 15 deletions
				
			
		
							
								
								
									
										9
									
								
								Foxchat.Core/Database/UlidConverter.cs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								Foxchat.Core/Database/UlidConverter.cs
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,9 @@
 | 
			
		|||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 | 
			
		||||
using NUlid;
 | 
			
		||||
 | 
			
		||||
namespace Foxchat.Core;
 | 
			
		||||
 | 
			
		||||
public class UlidConverter() : ValueConverter<Ulid, Guid>(
 | 
			
		||||
    convertToProviderExpression: x => x.ToGuid(),
 | 
			
		||||
    convertFromProviderExpression: x => new Ulid(x)
 | 
			
		||||
);
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue