Quick start
From a database to working C# code in five steps. Each step links to the page that explains it in full.
-
1
Download and run the app
Download takes you to the latest release on GitHub. Pick the file for your system, unzip it and run it: it is self-contained, with no .NET install and no account.
- Windows: TheSharpFactory-win-x64.zip (win-arm64 on ARM)
- macOS: TheSharpFactory-osx-arm64.zip for Apple silicon (osx-x64 on Intel). The app is not signed yet: open it once, then choose Open Anyway in System Settings > Privacy & Security (on macOS 14 or earlier, right-click the app and choose Open).
- Linux: TheSharpFactory-linux-x64.tar.gz
-
2
Create a model from your database
Choose New, connect to SQL Server, pick the tables, views, procedures, functions and sequences you want, and save the model file. No database to try it on? Create the sample database: the documentation and the walkthroughs use it.
Model generation → -
3
Sync into your solution
Open Sync and pick your .sln or .slnx (or create one): the page shows every file that would change. Then click Sync. The same works from the command line:
$ sharpfactory sync model.edmj MyApp.slnx --preview -
4
Set up your project
Reference the generated code, register the connection string and create the repository container. Project setup has the commands and a complete first program to paste.
Your first program → -
5
Write your first query
Use the repositories to create, read, update and delete, and the Query class to filter, sort and page.
Query syntax →
Prefer to watch?
Short walkthroughs of the current app: its real screens, and code that ran against a real database, with the SQL it sent.