Repository navigation
Version 7.0.1 - 11.17.2026: I fixed a bug where if you create a Find By Field custom method, and a table had a string primary key it was creating a 0 as the primary key value. It now passes in an empty string for the first parameter.
--
Version 7.0.0 - 11.13.2026: This project now supports .NET 11 projects and the project templates have been updated.
.NET 11 is less tested so far, but I will test more this weekend.
Version 6.7.0 - 10.23.2026: This update has a new feature. You can now choose to not build certain methods for a table.
New properties added to a DataTable and DTNTable -
ExcludeDelete
ExcludeFind
ExcludeFetchAll
ExcludeInsert
ExcludeUpdate
I needed Exclude Delete for a work project, so I did all 5 methods.
Version 6.6.0 - 10.11.2026: This was a major update. The engine of this project, DataJuggler.Net for .NET Framework 4.8 was updated from the .NET 10 version. The only two classes that didn't come from the .NET 10 version were DataManager and CSharpClassWriter were actually newer in the .NET Framework version.
New:
Support for Long (SQL Big Int)
Support for datetime2
Possible breaking change. Decimals and Money were doubles in the previous version. Now these map to Decimal.
This could cause some errors in some client apps, but Decimals map better to SQL Decimal or Money fields.
This should be a stable version. I will be testing this release more in the coming weeks.
--
Version 6..5.6 - 9.26.2026:
Some database field sizes were increased as the stored procedure names were not long enough in some cases.
FYI: If you need to update an existing database, DB Compare has just been updated and will make it simple.
Create a temp version of DataTier.NET.Database2 or some name to make it unique.
Run DB Compare to compare the new database against your existing one. After the comparison report is generated,
click the Generate Scripts button and the SQL to update your database will be copied to the clipboard.
DB Compare uses the same NuGet package that powers DataTier.NET, although it uses a .NET 10 version
called DataTier.NET.Data. Claude just helped me update and it should create all the scripts to keep your database in sync.
--
Version 6.5.5 - 9.23.2026:
I fixed a bug the Custom Method Editors have been ignoring Top Rows and Custom Where Clause.
This affects Find & Fetch All methods.
Update 8.29.2026: Some new code I wrote last week has a flaw.
See if you can spot the flaw:
set
{
// if Value isn't null
if (value != null)
{
// set the objectRefrencesSEt
objectReferencesSet = value;
}
else if (!ListHelper.HasOneOrMoreItems(value.References))
{
// recreate them
// Create the default references
CreateObjectLibraryDefaultReferences();
}
value is null above and I referred to value.References. I moved the code into the value != null block.
// if Value isn't null
if (value != null)
{
// set the objectRefrencesSEt
objectReferencesSet = value;
// if there are one or more references
if (!ListHelper.HasOneOrMoreItems(value.References))
{
// recreate them
// Create the default references
CreateObjectLibraryDefaultReferences();
}
}
Also the database has been updated to increase the size of some fields and the Custom Method Editor and a few others controls were made bigger so you can see long stored procedure names.
Version 6.5.4
Release Date: 8.29.2026:
I added some code last week that had a bug opening an existing project. Sorry, I have less time to test during the work week.
This should be fixed now. Will do some more testing.
--
Version 6.5.3
Update 8.26.2026: I fixed a bug where a new project didn't have valid references (by recreating them).
Also the ReferencesSet.References was switched to an ObservableCollection, and the method EnsureReferences was fixed.
The EnsureReferences was actually what ensured it didn't work. Fun, Funner, Funnest code is when your fix is the culprit.
Another fix is I found a test message box I had added and meant to take out. So new installs will not show an error now. I am guilty of not testing a complete new database often.
--
Version 6.5.2 (Unpublished)
Update 8.24.2026: I fixed a bug where the Gateway.cs file could be not found in the Confirm Changes Control.
Update 8.22.2026: I fixed a bug that when Custom Methods are written when you build the fields were not in alphabetical order.
The readers have the fields in alphabetical order so this was really bad.
--
Version 6.5.1
Update 8.22.2026: I fixed a bug where Custom Methods were written when you build, the fields were not in alphabetical order.
The readers have the fields in alphabetical order so this was really bad.
--
Version 6.5.0
Update 8.20.2026:
Today I modified the DataTier.NET Database. If you have existing projects, to update your database.
Open the database in SSMS. Select the DataTier.NET.Database and the following query
Alter Table Project
Add GatewayNamespace nvarchar(100) null,
Go
Alter Table Project
Add GatewayPath nvarchar(255) null,
Go
Update Project
Set GatewayNamespace = 'DataGateway',
GatewayPath = '(Paste in the path to your Gateway file)' -- Update your path here before running
Go
The reason for the update is when adding two DataTier.NET data tiers to a project, you need them to be uniquely named.
There is a new Gateway Editor in the Project Wizard. This defaults to DataAccessComponent\DataGateway\Gateway.cs, but you can
now change the name of the Gateway file. Sorry if this breaks anyone, but hardcoded paths and name are bad.
After 15 years it's time to change them.
If you have a lot of projects to update, there is a fine in the SQL Scripts folder of this repo:
If you have a lot of projects, this script should update them or set them to NULL if the project path can't be found
C:\Projects\GitHub\DataTier.Net\DataTier.Net\Database\SQL Scripts\UpdateGatewayPath.sql
Version 6.4.3 - 8.14.2026: A bunch of Microsoft NuGet packages were updated, and System.Data.SqlClient was completely removed. This only affects legacy projects like my day job project. Everything has been replaced with Microsoft.Data.SqlClient.
A couple of changes were made to the Databases tab of the Project Wizard Control. The connection string is now populated last in Display Selected Database method. A connection string is built as the database name, server name or user name and password changes, this now populates Connection String Text Box last in case you want to paste in a connection string. I needed to this to connect to
some cloud databases for my job. Also connection string field size was increased from 255 to 512.
Existing users
Alter Table DTNDatabase
Alter Column ConnectionString nvarchar(512) null
Also, these stored procedures were updated with the new length
DTNDatabase_Insert
DTNDatabase_Update
The SQL Script DataTier.Net.Database.Schema.sql in the folder DataTier.Net\DataTier.Net\Database\ was updated to include
the new ConnectionString length of 512 characters.
Version 6.4.2 - 8.4.2026: I fixed a bug in the WriteFindMethod of the GatewayCreator.cs was adding an extra region due to insert index was getting messed up. I created a SmartList that increments the index for me and it worked! With only 1 table the Gateway would compile, but with multiple tables the regions could mess up insert indexes.
Version 6.4.0 - 4.22.2026: I created a new feature. You can now create custom stored procedures for views. I have wanted this feature for 15 years. Five weeks ago I thought it would take 2 - 3 hours. I was only off by 100 - 120 hours. I have tested this, but not as thoroughly as the rest of the app.
Version 6.3.0 - 3.10.2026: I broke existing projects with this release, but it's for the better. I deleted a class called Nullable Boolean. This class was created 15 years ago and complicated all the code generation. The new templates install a new Polymorphic object that uses result.Success. .NET 10 is the only supported worked framework for now. I may fix some of the older versions if I have time. I also will be a converter to fix old projects.
Version 6.2.1 - 2.24.2026: I fixed the project Templates for .NET 10. .NET 10 is recommended for all new projects. Older versions might work, but you might have to fix some bugs on the created projects. .NET 10 is the only version supported going forward.
Version 6.2.0 - 2.15.2026 - I discovered Microsoft.VisualStudio.Interop was not being installed. This caused the project updater of the installed version to quit working. This has been fixed. Also, the Project Updater now bypasses Visual Studio (COM), making it much faster. I write to the files to the project file. This is only for .NET Framework projects, which my work project is still on .NET Framework is why this is done. .NET Core project automatically include the code generated files, so this is not needed.
Version 6.1.0 - 1.1.2026 - A new feature was added AddIGridValueInterface (IGridValueProvider is the name of the interface). This feature is used with DataJuggler.Blazor.Components.Grid and it is now an option on the Project editor. If you select this option was method is added to your class, GetValue and you pass in a field name. What is coming next is an addition to the GridHelper class to create GridRows automatically based on the Columns and a List so the Rows can be built without reflection.
I also fixed a few places where the larger font size needed a little more space. And finally some unneeded code was refactored or removed for Project.AllReferences and some other methods around it. Should be a pretty stable release.
Version 6.0.1 - 12.24.2025 - Couple of major changes. ChatGPT helped me find all the fonts used in the app, and convert them all to Calibri, font sizes 14.25 - 18. I manually adjusted all the controls and forms to make sure everything fits. Other major update is the project template for .NET 10 was updated and any exceptions are kept in memory at DataManager.ErrorHandler.Exceptions.
This restores the feature that used to work, that I broke, called Gateway.GetLastException. This is one of my favorite features and now it's back. Even if you don't have poor vision like I do, hopefully you will still agree the UI looks better with larger fonts.
Version 6.0.0 - 11.29.2025 - DataTier.NET can now target .NET 10. You can target .NET 5 - .NET 10, and unofficially .NET Framework still works (not recommended). .NET 10 is now the default target framework. New video coming soon.
Version 5.7.1 - 11.12.2025 - I added two new features. I build a Grid Column Builder for use with DataJuggler.Blazor.Components Grid.
I also added support for Nullable dates.
Version 5.6.0 - 9.17.2025 - I had some bugs in the Remove Table Code feature. The bug was caused when I consolidated 4 projects down to 2, and the Gateway class was being removed plus a few other files were not deleted. Seems to work pretty well.
Version 5.5.0 - 8.7.2025 - After 22 years I discovered I was not handling support for BigInt. I built a new project today called DiskJockey, and needed Big Int support.
I also have another Demo project you might find useful
Meme Vault: View MemeVault README
My twitter folder had over 300 images, now 350+, and I couldn't remember all the image names.. It started taking 10 minutes to school through my Twitter folder. So I added aliases to images.
--
Version_ 5.4.12 - 6.11.2025 - I fixed two minor warnings. In the CreateValueList method that gets code generated, the first version of this created two variables every time:
WriteLine("string comma = \",\";");
WriteLine("string singleQuote = \"'\";");
This was fine, but if a table only had 1 field or two fields with an IdentityInsert Primary Key, the comma isn't used
Same with the SingleQuote. If a table doesn't have any strings, dates or GUID's, the variable singleQuote isn't used.
This is a minor fix, but in my work project it created about 30 warnings, and this was an easy fix.
Version 5.4.11 - 4.29.2025 - I found a bug where a view was creating a Data Reader with UpdateIdentity if a field was a Primary Key.
Version 5.4.10 - 4.22.2025 - I fixed a bug in GenerateInsertScripts method that is code generated where Dates were not exporting the time.
Version 5.4.9 - 4.4.2025 - I fixed a bug where the PrimaryKey field is only included in CreateValuesList if it is not an Identity Insert field.
The GenerateInsertSQL saved me this week as I needed to move data from our production server to our test server. It's as simple as load the classes and then generate Insert SQL
// Create a new instance of a 'Gateway' object.
Gateway gateway = new Gateway(ConnectionConstants.Name);
// Load the Users for a certain company
List<AspNetUsers> users = gateway.LoadAspNetUsers().Where(x => x.CompanyId == 2).ToList();
// Create a new instance of a 'StringBuilder' object.
StringBuilder sb = new StringBuilder();
// If the users collection exists and has one or more items
if (ListHelper.HasOneOrMoreItems(users))
{
// Iterate the collection of AspNetUsers objects
foreach (AspNetUsers user in users)
{
// Change the CompanyId for users on the Test Server
user.CompanyId = 7;
// Create this SQL
string sql = user.GenerateInsertSQL();
// Add this sql
sb.Append(sql);
}
// set the results
string result = sb.ToString();
// copy
Clipboard.SetText(result);
}
Version5.4.6 - 4.1.2025: I fixed the Semicolon bug for Generate Insert SQL method.
Version 5.4.3 - 3.31.2025 (Last 1 today for sure) - I added Select Scope_Identity to the generate insert scripts in GenerateInsertSQL methods. This way you can update foreign keys with new values when moving data.
Version 5.4.2 - 3.31.2025 - Minor issue fixed from 5.4.1 release where a blank line was missing in the Create Values List method.
Version 5.4.1 - 3.31.2025 - This release fixes a bug in the CreateValuesList method, which for dates that are not set an extra single quote was added.
Version 5.4.0 - 3.30.2025: I added a new method to each table (not view) called 'GenerateInsertSQL' and 'CreateValuesList'. These methods are used to generate an insert script. The purpose of this is so I can easily move data from our production server to our dev and test servers for testing. Also fixed in this release are some recent updates didn't work on tables without an Identity Insert Primary Key. This is now fixed.
5.1.8 - 1.28.2025: I fixed two things with the Methods Editor, Confirm Changes Control and the New Stored Procedure Editor Control.
If the gateway already exists, I no long abort the update, I just show a message. You may still need to edit the stored procedure.
Also, I show the database name on the stored procedure editor. This may only effect me, but I was confused on why a procedure wasn't updating and I was inserting into the wrong database.
5.1.7 - 1.27.2025: I added a new field to ProjectReferencesView. I realized the field RefernecesId was missing from the view.
If you have an existing database you will need to add this field or create a new database. If anyone needs a script let me know.
5.1.6 - 1.26.2025: A few cosmetic things to the UI and some work is in progress for the Project Converter. The Project Converter / Project Fixer is a work in progress, but helps convert existing 4 project data tiers to the new 2 project data tier.
5.1.5 - 1.25.2025: I added some features to help fix corrupt projects and a new Project Converter located in the Tools folder.
This Project Converter is also a Project Fixer and soon will be a Project Upgrader.
5.1.4 - 1.23.2025: I removed DataOperationsManager. This class is no longer needed or used.
5.1.3 - 1.23.2025: I added a validation check when you and Build if the Project Folder does not exist a message is shown.
5.1.1 - 1.15.2025 - I realized when I converted to static methods I broke the app because the connection name was stored in the App Controller. To fix this I know pass in a Data Manager to each data method and it seems to work in my initial testing.
5.1.0 - 1.13.2025: I have streamlined the app a little more. I took out the Controller Manager and the Data Operations Manager classes.
Now more of the classes are Static methods, so there should be less memory used to a small degree.
I have broken earlier versions, when I get some time I will try and back fit older versions. For now its easier to recreate a new data tier.
I realize if you have a lot of custom methods this could be a pain.
Possible next big update is removing the Stored Procedure Classes and refactoring the Stored Procedure Manager to use XML or JSon to store the procedure names and parameters.
-- Version 5.0.4 Notes
5.0.4 - 1.11.2025: This release fixes the Remove Table Code for V2 Templates.
-- Version 5.0.3 Notes
5.0.3: This new version now plays a mild tone when a message is displayed. I took out the Message Boxes and use a Display Message.
I am working on a setting for sound, but for now if you open DataTier.Net.config in the install folder and edit it, you can set PlaySounds = false. Or run the development version using Visual Studio 2019 and modify the app.config.
<add key="PlaySound" value="false" />
The indent should be fixed for custom methods.
Existing Projects Breaking Change
Existing projects that were created prior to 5.0.0 release are broken. I will build a tool to fix it when I get some time.
The reason for the breaking change is I realized all the methods created using the Data Manager could be static methods.
I was instantiating a class for each table in the data manager and it served no benefit. The fix is to remove this.DataManager.
this.DataManager.CustomerManager.FindCustomer(
becomes
CustomerManager.FindCustomer(
Sorry for the breaking change, but running more efficiently is always better.
-- Carried over from 5.0.2
Big Update. DataTier.NET now targets .NET 9.
New project templates have been created for .NET 9 also.
Message Boxes have been replaced by a Message Display Control, making screen messages look a little nicer and without a loud noise while recording.
Note: The Blazor Data Services Control has been removed. It was a neat feature, but I realized I had not used it in all of .NET 8, so I just removed the code for the Blazor Data Services Control and related changes to the Project Editor.
The database no longer has these fields, so you must use the new database in the Database Folder of this project.
Version 2 Templates are the only templates going forward, so all new projects will only have two projects in the Data Tier.
- Data Access Component
- Object Library
Existing Projects or new projects for .NET 8 or lower will still work. It is recommended to use .NET 9 for all new projects.
All new development will be for .NET 9 unless a major bug is found in an earlier version.
Existing Users - Breaking Database Changes
The database has changed. In the Project Table, you can drop the columns:
- Enable Blazor Features
- Services Folder
Update the Stored Procedures from the file DataTier.NET.Database.sql, located in the Databasebase\SQLScripts folder of this repo.
Last Breaking Change Is All New Projects, The Data Manager folder is now called Data, so the DataManager class is not in a namespace
named DataManager. Existing projects already have the database value saved so they should not be affected.
Carried over release notes for prior versions:
(Current Release)
DataTier.Net 4.9.5 - Fixed a major bug where the Project References had duplicates. Now there is a constraint on the ProjectReferences table to not allow duplicates by ReferenceName and ProjectId. Also, now you can double click on the Project References in the References Set Editor to open.
(legacy)
DataTier.Net 4.9.3
A vulnerability was found in System.Data.SqlClient, so I update the NuGet package to 4.8.6.
DataTier.Net 4.9.2
This release was created because DataTier.Net now has a new Version 2 template structure with only two projects:
Data Access Component
Object Library
All the functionality is the same for now as the 4 project structure. Two projects makes it simpler to deploy.
The Object Library could be included in the Data Access Component, but I think it is better to separate them.
After installation, follow these steps:
Create a SQL Server Database named DataTier.Net.Database
Run DataTier.Net and follow the instructions on the Setup screen to create your SQL Server database DataTier.Net.Database.
The Setup Control will walk you through setting up DataTier.Net and and creating your connection string and Environment Variable.
Manual Installation (legacy)
The typical location of database scripts:
C:\Program Files (x86)\DataJuggler\DataTier.Net\SQL Scripts\DataTier.Net.Database.Schema.sql
Execute the script DataTier.NET.Database.Schema.sql
Create a User Level Environment Variable named DataTierNetConnection, and set the value to a connection string for your DataTier.Net.Database.
Tip: Connection Builder is installed and will have a shortcut on your desktop. Use Connection Builder to create your connection string.
Example Connection String using Windows Authentication. Replace (Server Name) with your Server Name.
Data Source=(Server Name);Initial Catalog=DataTier.Net.Database;Integrated Security=True;Encrypt=False;
Fixes
Fixed in version 4.9.2: Confirm Changes Control and Confirm Removal Control now handle the new Data Manager folder to Data for V2 projects.
Fixed in version 4.9.1: DataTier.Net Database was updated