Provides Dapper type handlers for the UUID library, enabling seamless integration with database operations. Features include binary and string storage options, thread-safe implementation, comprehensive error handling, and efficient database type mapping. Optimized for both performance and flexibility across different .NET platforms and database systems.
$ dotnet add package UUID.Serialization.DapperDapper type handlers for UUID, enabling seamless integration with database operations.
// Register the binary handler (recommended for storage efficiency)
Dapper.SqlMapper.AddTypeHandler(new BinaryUUIDHandler());
// Or register the string handler (if you need human-readable values)
Dapper.SqlMapper.AddTypeHandler(new StringUUIDHandler());
This project is licensed under the MIT License.