SimonCropp / StrongIdAnalyzer
PublicRoslyn analyzer that prevents primitive ID values (Guid, int, string, etc.) from being crossed between domain types at compile time
A code checker for .NET projects that prevents accidental mixing of ID values from different parts of your app during building, using simple labels without changing how your app runs.
How It Works
While building your app with customers and orders, you realize simple numbers or codes for IDs are getting swapped, causing hard-to-find bugs.
You learn about this helpful tool that watches your code and flags when IDs from different parts of your app don't match.
With one easy step, you bring this smart watcher into your project to keep an eye on all your IDs.
You add simple tags like 'Customer' to your ID spots, or just name them CustomerId so the tool understands automatically.
Change a name or add a tag right there with suggested fixes.
Everything matches perfectly, so you move on confidently.
Now your app catches ID mistakes before running, saving you from crashes and wrong data—your code feels rock-solid.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.