Commit Graph

14 Commits

Author SHA1 Message Date
david.nguyen 661f5b4b1c Fix GrpcGenerator type mapping for commands and nullable primitives
- Add proper complex type mapping for command results (same as queries already had)
- Handle nullable primitives (long?, int?, etc.) with default value fallback
- Fixes CS0029 and CS0266 compilation errors in generated gRPC service implementations

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-06 11:29:32 -05:00
david.nguyen 99aebcf314 Fix proto generation for collection types (NpgsqlPolygon, etc.)
- Add IsCollectionTypeByInterface() to detect types implementing IList<T>, ICollection<T>, IEnumerable<T>
- Add GetCollectionElementTypeByInterface() to extract element type from collection interfaces
- Add IsCollectionInternalProperty() to filter out Count, Capacity, IsReadOnly, etc.
- Update GenerateComplexTypeMessage to generate `repeated T items` for collection types
- Filter out indexers (!p.IsIndexer) and collection-internal properties from all property extraction

This fixes the invalid proto syntax where C# indexers (this[]) were being generated
as proto fields, causing proto compilation errors.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-06 10:33:55 -05:00
Mathias Beaulieu-Duncan f76dbb1a97 fix: add Guid to string conversion in gRPC source generator
The MapToProtoModel function was silently failing when mapping Guid
properties to proto string fields, causing IDs to be empty in gRPC
responses. Added explicit Guid → string conversion handling.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-27 19:06:18 -05:00
Mathias Beaulieu-Duncan 9b9e2cbdbe added domain events, fix IQueryalbeProvider abstraction, added support for sagas and RabbitMQ 2025-12-20 15:13:05 -05:00
mathias 898aca0905 fix nuget package for Generator assembly?
Publish NuGets / build (release) Successful in 46s
2025-11-07 12:48:00 -05:00
mathias 24a08c314a prepare for publishing 2025-11-07 12:02:33 -05:00
mathias 2ee65b8dad yes 2025-11-04 16:45:54 -05:00
mathias facc8d7851 mega cleanup :D 2025-11-03 16:00:13 -05:00
mathias ed01f58a0c checkpoint 2025-11-03 11:19:50 -05:00
mathias a0426aa0d1 yessir 2025-11-03 07:44:17 -05:00
mathias d2a4639c0e yes 2025-11-02 20:44:47 -05:00
mathias ccfaa35c1d wip proto file generation 2025-11-02 11:22:28 -05:00
mathias 4824c0d31d first grpc and minimal api preview :) 2025-11-02 03:14:38 -05:00
mathias f6dccf46d7 cat on a spaceship 2025-11-01 22:38:46 -04:00