C#
C# is a language in the .NET platform. It can build applications and services that apply business rules or exchange data with other systems.
What you can build or improve
Approvals and business rules
Implement spending limits, review steps, and a history of who approved each request.
Extensions to .NET systems
Add an integration or API without replacing the parts of the system your team already maintains.
When we’d choose it
We’d consider it for extending a system your team already maintains in .NET or for a service with business rules that change over time.
Why use it
C# types let us model concepts such as amounts, status, and permissions explicitly. We can test those rules apart from the code that talks to the database or displays a screen.
What to consider
We’d check which .NET versions your team can maintain and what dependencies need updates, especially when integrating with older software.
Illustrative example
Purchase approvals
A service decides whether a request needs a second approval based on its amount, records the decision maker, and notifies the purchasing system.
Official documentation
Tools and how they fit together
In .NET, business rules can be tested separately from the web service and database.
Services and business rules
Services and business rules
ASP.NET Core exposes actions such as approving a request. C# lets you express rules about amounts and approvers separately from the route.
- C#
- ASP.NET Core
Data access
Data access
Entity Framework Core can map records to objects and manage schema changes when the app owns the database. For an existing database, first review its constraints.
- Entity Framework Core
- SQL Server
- PostgreSQL
Testing the rules
Testing the rules
Check what happens just below and above an approval threshold. Test separately how the API responds to a user without permission.
- dotnet test
- xUnit
Questions before you decide
Does C# require SQL Server?
No. The choice of database depends on existing systems, the data model, and who will operate it.
Can we extend a .NET system without rewriting it?
Often, an API, background job, or screen can be added separately. It depends on the version, access to the code, and what data the modules share.
Can it run outside Windows?
Modern .NET applications can run on Linux. An older system or a Windows-specific dependency may change that decision.