Rinku Power ToolsGenerate strongly typed ADO.NET code directly from SQL in Visual Studio. Rinku Power Tools lets you define SQL queries, stored procedures, and SQL files using a Visual Studio interface. It generates C# methods that create fully configured This removes repetitive ADO.NET boilerplate while keeping your SQL explicit and under your control. How it works
For example, a query named
The method creates the command, sets the SQL text, and adds the required parameters automatically. Generated result typesWhen a query returns multiple columns, a strongly typed result record is generated for the first result set:
You can use the generated record directly, or generate a reusable C# class from the result shape when you need your own model type. Query sourcesRinku Power Tools supports:
Automatic parametersParameters are inferred from the SQL whenever possible. Optional overrides let you refine the generated signature when database metadata is ambiguous or does not match your intended API. For example, you can:
Connection resolutionThe extension can resolve database connections from common .NET project sources, including:
Works with or without RinkuRinku Power Tools is designed to work with the Rinku NuGet package, which provides mapping, materialization, and query execution features. The generated code also works with plain ADO.NET and any Learn more |