From 7fef961d98da8ee30322b95a2fc8cdd417a889db Mon Sep 17 00:00:00 2001 From: Jonathan Allen Date: Mon, 4 Jul 2022 23:50:27 -0700 Subject: [PATCH] Remove generated files. They are ping-ponging due to #if adding/removing methods depending on the target architecture. --- .../Tortuga.Shipwright.TraitGenerator/Logs.cs | 26 - ...rtuga.Chain.Access.AccessDataSourceBase.cs | 1265 ------------ ...rtuga.Chain.Access.AccessOpenDataSource.cs | 192 -- ...in.Access.AccessTransactionalDataSource.cs | 181 -- .../Tortuga.Chain.AccessDataSource.cs | 282 --- .../Tortuga.Chain.Access.csproj | 4 +- .../Tortuga.Shipwright.TraitGenerator/Logs.cs | 32 - ...Tortuga.Chain.MySql.MySqlDataSourceBase.cs | 1646 ---------------- ...Tortuga.Chain.MySql.MySqlOpenDataSource.cs | 192 -- ...hain.MySql.MySqlTransactionalDataSource.cs | 181 -- .../Tortuga.Chain.MySqlDataSource.cs | 282 --- .../Tortuga.Chain.MySql.csproj | 4 +- .../Tortuga.Shipwright.TraitGenerator/Logs.cs | 33 - ...ain.PostgreSql.PostgreSqlDataSourceBase.cs | 1693 ----------------- ...ain.PostgreSql.PostgreSqlOpenDataSource.cs | 192 -- ...reSql.PostgreSqlTransactionalDataSource.cs | 181 -- .../Tortuga.Chain.PostgreSqlDataSource.cs | 282 --- .../Tortuga.Chain.PostgreSql.csproj | 4 +- .../Tortuga.Shipwright.TraitGenerator/Logs.cs | 29 - ...rtuga.Chain.SQLite.SQLiteDataSourceBase.cs | 1433 -------------- ...rtuga.Chain.SQLite.SQLiteOpenDataSource.cs | 192 -- ...in.SQLite.SQLiteTransactionalDataSource.cs | 181 -- .../Tortuga.Chain.SQLiteDataSource.cs | 282 --- .../Tortuga.Chain.SQLite.csproj | 4 +- .../Tortuga.Shipwright.TraitGenerator/Logs.cs | 33 - ...Chain.SqlServer.SqlServerDataSourceBase.cs | 1693 ----------------- ...Chain.SqlServer.SqlServerOpenDataSource.cs | 192 -- ...Server.SqlServerTransactionalDataSource.cs | 181 -- .../Tortuga.Chain.SqlServerDataSource.cs | 282 --- .../Tortuga.Chain.SqlServer.MDS.csproj | 4 +- .../Tortuga.Shipwright.TraitGenerator/Logs.cs | 31 - .../Tortuga.Chain.OleDbSqlServerDataSource.cs | 282 --- ....SqlServer.OleDbSqlServerDataSourceBase.cs | 1498 --------------- ....SqlServer.OleDbSqlServerOpenDataSource.cs | 192 -- ...r.OleDbSqlServerTransactionalDataSource.cs | 181 -- .../Tortuga.Chain.SqlServer.OleDb.csproj | 4 +- .../Tortuga.Shipwright.TraitGenerator/Logs.cs | 33 - ...Chain.SqlServer.SqlServerDataSourceBase.cs | 1693 ----------------- ...Chain.SqlServer.SqlServerOpenDataSource.cs | 192 -- ...Server.SqlServerTransactionalDataSource.cs | 181 -- .../Tortuga.Chain.SqlServerDataSource.cs | 282 --- .../Tortuga.Chain.SqlServer.csproj | 4 +- 42 files changed, 14 insertions(+), 15737 deletions(-) delete mode 100644 Tortuga.Chain/Tortuga.Chain.Access/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Logs.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.Access/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.Access.AccessDataSourceBase.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.Access/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.Access.AccessOpenDataSource.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.Access/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.Access.AccessTransactionalDataSource.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.Access/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.AccessDataSource.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.MySql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Logs.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.MySql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.MySql.MySqlDataSourceBase.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.MySql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.MySql.MySqlOpenDataSource.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.MySql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.MySql.MySqlTransactionalDataSource.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.MySql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.MySqlDataSource.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.PostgreSql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Logs.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.PostgreSql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.PostgreSql.PostgreSqlDataSourceBase.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.PostgreSql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.PostgreSql.PostgreSqlOpenDataSource.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.PostgreSql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.PostgreSql.PostgreSqlTransactionalDataSource.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.PostgreSql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.PostgreSqlDataSource.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.SQLite/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Logs.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.SQLite/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SQLite.SQLiteDataSourceBase.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.SQLite/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SQLite.SQLiteOpenDataSource.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.SQLite/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SQLite.SQLiteTransactionalDataSource.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.SQLite/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SQLiteDataSource.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.SqlServer.MDS/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Logs.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.SqlServer.MDS/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.SqlServerDataSourceBase.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.SqlServer.MDS/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.SqlServerOpenDataSource.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.SqlServer.MDS/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.SqlServerTransactionalDataSource.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.SqlServer.MDS/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServerDataSource.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.SqlServer.OleDb/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Logs.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.SqlServer.OleDb/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.OleDbSqlServerDataSource.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.SqlServer.OleDb/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.OleDbSqlServerDataSourceBase.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.SqlServer.OleDb/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.OleDbSqlServerOpenDataSource.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.SqlServer.OleDb/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.OleDbSqlServerTransactionalDataSource.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.SqlServer/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Logs.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.SqlServer/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.SqlServerDataSourceBase.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.SqlServer/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.SqlServerOpenDataSource.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.SqlServer/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.SqlServerTransactionalDataSource.cs delete mode 100644 Tortuga.Chain/Tortuga.Chain.SqlServer/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServerDataSource.cs diff --git a/Tortuga.Chain/Tortuga.Chain.Access/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Logs.cs b/Tortuga.Chain/Tortuga.Chain.Access/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Logs.cs deleted file mode 100644 index 30e39f370..000000000 --- a/Tortuga.Chain/Tortuga.Chain.Access/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Logs.cs +++ /dev/null @@ -1,26 +0,0 @@ -/* -Container class: Tortuga.Chain.AccessDataSource - Adding trait: Traits.RootDataSourceTrait -Container class: Tortuga.Chain.Access.AccessDataSourceBase - Adding trait: Traits.SupportsDeleteAllTrait - Adding trait: Traits.SupportsDeleteByKeyListTrait - Adding trait: Traits.SupportsUpdateTrait - Adding trait: Traits.SupportsDeleteTrait - Adding trait: Traits.SupportsSqlQueriesTrait - Adding trait: Traits.SupportsUpdateByKeyListTrait - Adding trait: Traits.SupportsInsertTrait - Adding trait: Traits.SupportsUpdateSet - Adding trait: Traits.SupportsDeleteSet - Adding trait: Traits.SupportsFromTrait - Adding trait: Traits.SupportsGetByKeyListTrait - Adding trait: Traits.SupportsGetByColumnListTrait -Container class: Tortuga.Chain.Access.AccessOpenDataSource - Adding trait: Traits.OpenDataSourceTrait -Container class: Tortuga.Chain.Access.AccessTransactionalDataSource - Adding trait: Traits.TransactionalDataSourceTrait -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Traits.IHasExtensionCache.get_ExtensionCache -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Tortuga.Chain.DataSources.IOpenDataSource.get_AssociatedConnection -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Tortuga.Chain.DataSources.IOpenDataSource.get_AssociatedTransaction -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Tortuga.Chain.DataSources.IOpenDataSource.get_AssociatedConnection -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Tortuga.Chain.DataSources.IOpenDataSource.get_AssociatedTransaction -*/ \ No newline at end of file diff --git a/Tortuga.Chain/Tortuga.Chain.Access/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.Access.AccessDataSourceBase.cs b/Tortuga.Chain/Tortuga.Chain.Access/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.Access.AccessDataSourceBase.cs deleted file mode 100644 index 8e5385ffb..000000000 --- a/Tortuga.Chain/Tortuga.Chain.Access/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.Access.AccessDataSourceBase.cs +++ /dev/null @@ -1,1265 +0,0 @@ -//This file was generated by Tortuga Shipwright - -namespace Tortuga.Chain.Access -{ - partial class AccessDataSourceBase: Tortuga.Chain.DataSources.ISupportsDeleteAll, Tortuga.Chain.DataSources.ISupportsDeleteByKeyList, Tortuga.Chain.DataSources.ISupportsDeleteByKey, Tortuga.Chain.DataSources.ISupportsUpdate, Tortuga.Chain.DataSources.ISupportsDelete, Tortuga.Chain.DataSources.ISupportsSqlQueries, Tortuga.Chain.DataSources.ISupportsUpdateByKey, Tortuga.Chain.DataSources.ISupportsUpdateByKeyList, Tortuga.Chain.DataSources.ISupportsInsert, Tortuga.Chain.DataSources.ISupportsUpdateSet, Tortuga.Chain.DataSources.ISupportsDeleteSet, Tortuga.Chain.DataSources.ISupportsFrom, Tortuga.Chain.DataSources.ISupportsGetByKeyList, Tortuga.Chain.DataSources.ISupportsGetByKey, Tortuga.Chain.DataSources.ISupportsGetByColumnList, Tortuga.Chain.DataSources.ISupportsGetByColumn, Traits.ICommandHelper, Traits.IUpdateDeleteByKeyHelper, Traits.IUpdateDeleteHelper, Traits.IInsertHelper, Traits.IUpdateDeleteSetHelper, Traits.IFromHelper, Traits.IGetByKeyHelper - { - - private bool __TraitsRegistered; - - // These fields and/or properties hold the traits. They should not be referenced directly. - private Traits.SupportsDeleteAllTrait ___Trait0 = new(); - private Traits.SupportsDeleteAllTrait __Trait0 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait0; - } - } - private Traits.SupportsDeleteByKeyListTrait ___Trait1 = new(); - private Traits.SupportsDeleteByKeyListTrait __Trait1 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait1; - } - } - private Traits.SupportsUpdateTrait ___Trait2 = new(); - private Traits.SupportsUpdateTrait __Trait2 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait2; - } - } - private Traits.SupportsDeleteTrait ___Trait3 = new(); - private Traits.SupportsDeleteTrait __Trait3 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait3; - } - } - private Traits.SupportsSqlQueriesTrait ___Trait4 = new(); - private Traits.SupportsSqlQueriesTrait __Trait4 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait4; - } - } - private Traits.SupportsUpdateByKeyListTrait ___Trait5 = new(); - private Traits.SupportsUpdateByKeyListTrait __Trait5 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait5; - } - } - private Traits.SupportsInsertTrait ___Trait6 = new(); - private Traits.SupportsInsertTrait __Trait6 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait6; - } - } - private Traits.SupportsUpdateSet ___Trait7 = new(); - private Traits.SupportsUpdateSet __Trait7 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait7; - } - } - private Traits.SupportsDeleteSet ___Trait8 = new(); - private Traits.SupportsDeleteSet __Trait8 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait8; - } - } - private Traits.SupportsFromTrait ___Trait9 = new(); - private Traits.SupportsFromTrait __Trait9 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait9; - } - } - private Traits.SupportsGetByKeyListTrait ___Trait10 = new(); - private Traits.SupportsGetByKeyListTrait __Trait10 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait10; - } - } - private Traits.SupportsGetByColumnListTrait ___Trait11 = new(); - private Traits.SupportsGetByColumnListTrait __Trait11 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait11; - } - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDelete - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDelete.Delete(System.String tableName, TArgument argumentValue, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDelete)__Trait3).Delete(tableName, argumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDelete.Delete(TArgument argumentValue, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDelete)__Trait3).Delete(argumentValue, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDeleteAll - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsDeleteAll.DeleteAll(System.String tableName) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteAll)__Trait0).DeleteAll(tableName); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsDeleteAll.DeleteAll() - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteAll)__Trait0).DeleteAll(); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDeleteByKey - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteByKey.DeleteByKey(System.String tableName, TKey key, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteByKey)__Trait1).DeleteByKey(tableName, key, options); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteByKey.DeleteByKey(System.String tableName, System.String key, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteByKey)__Trait1).DeleteByKey(tableName, key, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDeleteByKeyList - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteByKeyList.DeleteByKeyList(System.String tableName, System.Collections.Generic.IEnumerable keys, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteByKeyList)__Trait1).DeleteByKeyList(tableName, keys, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDeleteSet - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteSet.DeleteSet(System.String tableName, System.String whereClause) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteSet)__Trait8).DeleteSet(tableName, whereClause); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteSet.DeleteSet(System.String tableName, System.String whereClause, System.Object? argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteSet)__Trait8).DeleteSet(tableName, whereClause, argumentValue); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteSet.DeleteSet(System.String tableName, System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteSet)__Trait8).DeleteSet(tableName, filterValue, filterOptions); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsFrom - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String tableOrViewName) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait9).From(tableOrViewName); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String tableOrViewName, System.String whereClause) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait9).From(tableOrViewName, whereClause); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String tableOrViewName, System.String whereClause, System.Object argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait9).From(tableOrViewName, whereClause, argumentValue); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String tableOrViewName, System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait9).From(tableOrViewName, filterValue, filterOptions); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From() - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait9).From(); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String whereClause) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait9).From(whereClause); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String whereClause, System.Object argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait9).From(whereClause, argumentValue); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.Object filterValue) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait9).From(filterValue); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsGetByColumn - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String tableName, System.String columnName, TKey key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait11).GetByColumn(tableName, columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String tableName, System.String columnName, System.String key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait11).GetByColumn(tableName, columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, TKey key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait11).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.String key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait11).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.Int16 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait11).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.Int32 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait11).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.Int64 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait11).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.Guid key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait11).GetByColumn(columnName, key); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsGetByColumnList - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String tableName, System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait11).GetByColumnList(tableName, columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait11).GetByColumnList(columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait11).GetByColumnList(columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait11).GetByColumnList(columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait11).GetByColumnList(columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait11).GetByColumnList(columnName, keys); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsGetByKey - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.String tableName, TKey key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait10).GetByKey(tableName, key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.String tableName, System.String key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait10).GetByKey(tableName, key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(TKey key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait10).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.String key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait10).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.Int16 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait10).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.Int32 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait10).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.Int64 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait10).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.Guid key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait10).GetByKey(key); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsGetByKeyList - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.String tableName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait10).GetByKeyList(tableName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait10).GetByKeyList(keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait10).GetByKeyList(keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait10).GetByKeyList(keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait10).GetByKeyList(keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait10).GetByKeyList(keys); - } - - [System.Obsolete(@"This will be replaced by GetByColumn")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.String tableName, System.String keyColumn, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait10).GetByKeyList(tableName, keyColumn, keys); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsInsert - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsInsert.Insert(System.String tableName, TArgument argumentValue, Tortuga.Chain.InsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsInsert)__Trait6).Insert(tableName, argumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsInsert.Insert(TArgument argumentValue, Tortuga.Chain.InsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsInsert)__Trait6).Insert(argumentValue, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsSqlQueries - Tortuga.Chain.CommandBuilders.IMultipleTableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsSqlQueries.Sql(System.String sqlStatement, System.Object argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsSqlQueries)__Trait4).Sql(sqlStatement, argumentValue); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpdate - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdate.Update(System.String tableName, TArgument argumentValue, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdate)__Trait2).Update(tableName, argumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdate.Update(TArgument argumentValue, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdate)__Trait2).Update(argumentValue, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpdateByKey - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateByKey.UpdateByKey(System.String tableName, TArgument newValues, TKey key, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateByKey)__Trait5).UpdateByKey(tableName, newValues, key, options); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateByKey.UpdateByKey(System.String tableName, TArgument newValues, System.String key, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateByKey)__Trait5).UpdateByKey(tableName, newValues, key, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpdateByKeyList - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateByKeyList.UpdateByKeyList(System.String tableName, TArgument newValues, System.Collections.Generic.IEnumerable keys, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateByKeyList)__Trait5).UpdateByKeyList(tableName, newValues, keys, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpdateSet - Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateSet.UpdateSet(System.String tableName, System.String updateExpression, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateSet)__Trait7).UpdateSet(tableName, updateExpression, options); - } - - Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateSet.UpdateSet(System.String tableName, System.String updateExpression, System.Object? updateArgumentValue, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateSet)__Trait7).UpdateSet(tableName, updateExpression, updateArgumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateSet.UpdateSet(System.String tableName, System.Object newValues, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateSet)__Trait7).UpdateSet(tableName, newValues, options); - } - - // Exposing trait Traits.SupportsDeleteAllTrait - - /// Deletes all records in the specified table. - /// Name of the table to clear. - /// The number of rows deleted or null if the database doesn't provide that information. - public Tortuga.Chain.ILink DeleteAll(Tortuga.Chain.Access.AccessObjectName tableName) - { - return __Trait0.DeleteAll(tableName); - } - - /// Deletes all records in the specified table. - /// This class used to determine which table to clear - /// The number of rows deleted or null if the database doesn't provide that information. - public Tortuga.Chain.ILink DeleteAll()where TObject : class - { - return __Trait0.DeleteAll(); - } - - // Exposing trait Traits.SupportsDeleteByKeyListTrait - - /// - /// Delete a record by its primary key. - /// - /// - /// Name of the table. - /// The key. - /// The options. - /// MultipleRowDbCommandBuilder<TCommand, TParameter>. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(Tortuga.Chain.Access.AccessObjectName tableName, T key, Tortuga.Chain.DeleteOptions options = 0)where T : struct - { - return __Trait1.DeleteByKey(tableName, key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Name of the table. - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(Tortuga.Chain.Access.AccessObjectName tableName, System.String key, Tortuga.Chain.DeleteOptions options = 0) - { - return __Trait1.DeleteByKey(tableName, key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Used to determine the table name - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(System.Guid key, Tortuga.Chain.DeleteOptions options = 0)where TObject : class - { - return __Trait1.DeleteByKey(key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Used to determine the table name - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(System.Int64 key, Tortuga.Chain.DeleteOptions options = 0)where TObject : class - { - return __Trait1.DeleteByKey(key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Used to determine the table name - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(System.Int32 key, Tortuga.Chain.DeleteOptions options = 0)where TObject : class - { - return __Trait1.DeleteByKey(key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Used to determine the table name - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(System.String key, Tortuga.Chain.DeleteOptions options = 0)where TObject : class - { - return __Trait1.DeleteByKey(key, options); - } - - /// - /// Delete multiple rows by key. - /// - /// The type of the t key. - /// Name of the table. - /// The keys. - /// Delete options. - /// - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteByKeyList(Tortuga.Chain.Access.AccessObjectName tableName, System.Collections.Generic.IEnumerable keys, Tortuga.Chain.DeleteOptions options = 0) - { - return __Trait1.DeleteByKeyList(tableName, keys, options); - } - - // Exposing trait Traits.SupportsDeleteSet - - /// - /// Delete multiple records using a filter object. - /// - /// Name of the table. - /// The filter value. - /// The options. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteSet(Tortuga.Chain.Access.AccessObjectName tableName, System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions = 0) - { - return __Trait8.DeleteSet(tableName, filterValue, filterOptions); - } - - /// - /// Delete multiple records using a filter object. - /// - /// The filter value. - /// The options. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteSet(System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions = 0)where TObject : class - { - return __Trait8.DeleteSet(filterValue, filterOptions); - } - - /// - /// Delete multiple records using a where expression. - /// - /// Name of the table. - /// The where clause. - /// The argument value for the where clause. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteSet(Tortuga.Chain.Access.AccessObjectName tableName, System.String whereClause, System.Object? argumentValue = default) - { - return __Trait8.DeleteSet(tableName, whereClause, argumentValue); - } - - /// - /// Delete multiple records using a where expression. - /// - /// The where clause. - /// The argument value for the where clause. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteSet(System.String whereClause, System.Object? argumentValue = default)where TObject : class - { - return __Trait8.DeleteSet(whereClause, argumentValue); - } - - // Exposing trait Traits.SupportsDeleteTrait - - /// - /// Creates a command to perform a delete operation. - /// - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Delete(Tortuga.Chain.Access.AccessObjectName tableName, TArgument argumentValue, Tortuga.Chain.DeleteOptions options = 0)where TArgument : class - { - return __Trait3.Delete(tableName, argumentValue, options); - } - - /// - /// Delete an object model from the table indicated by the class's Table attribute. - /// - /// - /// The argument value. - /// The delete options. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Delete(TArgument argumentValue, Tortuga.Chain.DeleteOptions options = 0)where TArgument : class - { - return __Trait3.Delete(argumentValue, options); - } - - // Exposing trait Traits.SupportsFromTrait - - /// - /// Creates an operation to directly query a table or view - /// - /// - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(Tortuga.Chain.Access.AccessObjectName tableOrViewName) - { - return __Trait9.From(tableOrViewName); - } - - /// - /// Creates an operation to directly query a table or view - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(Tortuga.Chain.Access.AccessObjectName tableOrViewName, System.String whereClause) - { - return __Trait9.From(tableOrViewName, whereClause); - } - - /// - /// Creates an operation to directly query a table or view - /// - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(Tortuga.Chain.Access.AccessObjectName tableOrViewName, System.String whereClause, System.Object argumentValue) - { - return __Trait9.From(tableOrViewName, whereClause, argumentValue); - } - - /// - /// Creates an operation to directly query a table or view - /// - /// Name of the table or view. - /// The filter value. - /// The filter options. - /// TableDbCommandBuilder<TCommand, TParameter, TLimitOption>. - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(Tortuga.Chain.Access.AccessObjectName tableOrViewName, System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions = 0) - { - return __Trait9.From(tableOrViewName, filterValue, filterOptions); - } - - /// - /// This is used to directly query a table or view. - /// - /// - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From()where TObject : class - { - return __Trait9.From(); - } - - /// - /// This is used to directly query a table or view. - /// - /// The type of the object. - /// The where clause. Do not prefix this clause with "WHERE". - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(System.String whereClause)where TObject : class - { - return __Trait9.From(whereClause); - } - - /// - /// This is used to directly query a table or view. - /// - /// The type of the object. - /// The where clause. Do not prefix this clause with "WHERE". - /// Optional argument value. Every property in the argument value must have a matching parameter in the WHERE clause - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(System.String whereClause, System.Object argumentValue)where TObject : class - { - return __Trait9.From(whereClause, argumentValue); - } - - /// - /// This is used to directly query a table or view. - /// - /// The type of the object. - /// The filter value is used to generate a simple AND style WHERE clause. - /// The filter options. - /// TableDbCommandBuilder<TCommand, TParameter, TLimitOption, TObject>. - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions = 0)where TObject : class - { - return __Trait9.From(filterValue, filterOptions); - } - - // Exposing trait Traits.SupportsGetByColumnListTrait - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. Used to determine which table will be read. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.Guid key)where TObject : class - { - return __Trait11.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.Int64 key)where TObject : class - { - return __Trait11.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.Int16 key)where TObject : class - { - return __Trait11.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.Int32 key)where TObject : class - { - return __Trait11.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.String key)where TObject : class - { - return __Trait11.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The type of the key. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, TKey key)where TObject : class - { - return __Trait11.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// Name of the table. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(Tortuga.Chain.Access.AccessObjectName tableName, System.String columnName, System.String key) - { - return __Trait11.GetByColumn(tableName, columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// - /// Name of the table. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(Tortuga.Chain.Access.AccessObjectName tableName, System.String columnName, TKey key) - { - return __Trait11.GetByColumn(tableName, columnName, key); - } - - /// - /// Gets a set of records by their primary key. - /// - /// - /// Name of the table. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(Tortuga.Chain.Access.AccessObjectName tableName, System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return __Trait11.GetByColumnList(tableName, columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The type of the key. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait11.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait11.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait11.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait11.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait11.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait11.GetByColumnList(columnName, keys); - } - - // Exposing trait Traits.SupportsGetByKeyListTrait - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. Used to determine which table will be read. - /// The key. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.Guid key)where TObject : class - { - return __Trait10.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The key. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.Int64 key)where TObject : class - { - return __Trait10.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The key. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.Int16 key)where TObject : class - { - return __Trait10.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The key. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.Int32 key)where TObject : class - { - return __Trait10.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The key. - /// - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.String key)where TObject : class - { - return __Trait10.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The type of the key. - /// The key. - /// - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(TKey key)where TObject : class - { - return __Trait10.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// Name of the table. - /// The key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(Tortuga.Chain.Access.AccessObjectName tableName, System.String key) - { - return __Trait10.GetByKey(tableName, key); - } - - /// - /// Gets a record by its primary key. - /// - /// - /// Name of the table. - /// The key. - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(Tortuga.Chain.Access.AccessObjectName tableName, TKey key) - { - return __Trait10.GetByKey(tableName, key); - } - - /// - /// Gets a set of records by their primary key. - /// - /// - /// Name of the table. - /// The keys. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(Tortuga.Chain.Access.AccessObjectName tableName, System.Collections.Generic.IEnumerable keys) - { - return __Trait10.GetByKeyList(tableName, keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The type of the key. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait10.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait10.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait10.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait10.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait10.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait10.GetByKeyList(keys); - } - - /// Gets a set of records by an unique key. - /// The type of the t key. - /// Name of the table. - /// Name of the key column. This should be a primary or unique key, but that's not enforced. - /// The keys. - /// IMultipleRowDbCommandBuilder. - [System.Obsolete(@"This will be replaced by GetByColumn")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.String tableName, System.String keyColumn, System.Collections.Generic.IEnumerable keys) - { - return __Trait10.GetByKeyList(tableName, keyColumn, keys); - } - - // Exposing trait Traits.SupportsInsertTrait - - /// - /// Inserts an object into the specified table. - /// - /// - /// The argument value. - /// The options for how the insert occurs. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Insert(TArgument argumentValue, Tortuga.Chain.InsertOptions options = 0)where TArgument : class - { - return __Trait6.Insert(argumentValue, options); - } - - /// - /// Creates an operation used to perform an insert operation. - /// - /// Name of the table. - /// The argument value. - /// The options. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Insert(Tortuga.Chain.Access.AccessObjectName tableName, TArgument argumentValue, Tortuga.Chain.InsertOptions options = 0)where TArgument : class - { - return __Trait6.Insert(tableName, argumentValue, options); - } - - // Exposing trait Traits.SupportsSqlQueriesTrait - - /// - /// Creates a operation based on a raw SQL statement. - /// - /// The SQL statement. - /// - public Tortuga.Chain.CommandBuilders.MultipleTableDbCommandBuilder Sql(System.String sqlStatement) - { - return __Trait4.Sql(sqlStatement); - } - - /// - /// Creates a operation based on a raw SQL statement. - /// - /// The SQL statement. - /// The argument value. - /// SqlServerSqlCall. - public Tortuga.Chain.CommandBuilders.MultipleTableDbCommandBuilder Sql(System.String sqlStatement, System.Object argumentValue) - { - return __Trait4.Sql(sqlStatement, argumentValue); - } - - // Exposing trait Traits.SupportsUpdateByKeyListTrait - - /// - /// Update a record by its primary key. - /// - /// The type of the t argument. - /// - /// Name of the table. - /// The new values to use. - /// The key. - /// The options. - /// MultipleRowDbCommandBuilder<AbstractCommand, AbstractParameter>. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder UpdateByKey(Tortuga.Chain.Access.AccessObjectName tableName, TArgument newValues, TKey key, Tortuga.Chain.UpdateOptions options = 0)where TKey : struct - { - return __Trait5.UpdateByKey(tableName, newValues, key, options); - } - - /// - /// Update a record by its primary key. - /// - /// The type of the t argument. - /// Name of the table. - /// The new values to use. - /// The key. - /// The options. - /// MultipleRowDbCommandBuilder<OleDbCommand, OleDbParameter>. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder UpdateByKey(Tortuga.Chain.Access.AccessObjectName tableName, TArgument newValues, System.String key, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait5.UpdateByKey(tableName, newValues, key, options); - } - - /// - /// Update multiple rows by key. - /// - /// The type of the t argument. - /// The type of the t key. - /// Name of the table. - /// The new values to use. - /// The keys. - /// Update options. - /// MultipleRowDbCommandBuilder<OleDbCommand, OleDbParameter>. - /// - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder UpdateByKeyList(Tortuga.Chain.Access.AccessObjectName tableName, TArgument newValues, System.Collections.Generic.IEnumerable keys, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait5.UpdateByKeyList(tableName, newValues, keys, options); - } - - // Exposing trait Traits.SupportsUpdateSet - - /// - /// Update multiple records using an update expression. - /// - /// Name of the table. - /// The update expression. - /// The argument value. - /// The update options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(Tortuga.Chain.Access.AccessObjectName tableName, System.String updateExpression, System.Object? updateArgumentValue, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait7.UpdateSet(tableName, updateExpression, updateArgumentValue, options); - } - - /// - /// Update multiple records using an update value. - /// - /// Name of the table. - /// The new values to use. - /// The options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(Tortuga.Chain.Access.AccessObjectName tableName, System.Object newValues, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait7.UpdateSet(tableName, newValues, options); - } - - /// - /// Update multiple records using an update expression. - /// - /// Name of the table. - /// The update expression. - /// The update options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(Tortuga.Chain.Access.AccessObjectName tableName, System.String updateExpression, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait7.UpdateSet(tableName, updateExpression, options); - } - - /// - /// Update multiple records using an update expression. - /// - /// Class used to determine the table name. - /// The update expression. - /// The argument for the update expression. - /// The update options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(System.String updateExpression, System.Object updateArgumentValue, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait7.UpdateSet(updateExpression, updateArgumentValue, options); - } - - /// - /// Update multiple records using an update value. - /// - /// Class used to determine the table name. - /// The new values to use. - /// The options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(System.Object newValues, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait7.UpdateSet(newValues, options); - } - - /// - /// Update multiple records using an update expression. - /// - /// Class used to determine the table name. - /// The update expression. - /// The update options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(System.String updateExpression, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait7.UpdateSet(updateExpression, options); - } - - // Exposing trait Traits.SupportsUpdateTrait - - /// - /// Update an object in the specified table. - /// - /// - /// The argument value. - /// The update options. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Update(TArgument argumentValue, Tortuga.Chain.UpdateOptions options = 0)where TArgument : class - { - return __Trait2.Update(argumentValue, options); - } - - /// - /// Update an object in the specified table. - /// - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Update(Tortuga.Chain.Access.AccessObjectName tableName, TArgument argumentValue, Tortuga.Chain.UpdateOptions options = 0)where TArgument : class - { - return __Trait2.Update(tableName, argumentValue, options); - } - - private partial Tortuga.Chain.ILink OnDeleteAll(Tortuga.Chain.Access.AccessObjectName tableName ); - - private partial Tortuga.Chain.CommandBuilders.MultipleTableDbCommandBuilder OnSql(System.String sqlStatement, System.Object? argumentValue ); - - private void __RegisterTraits() - { - __TraitsRegistered = true; - __Trait0.OnDeleteAll = OnDeleteAll; - __Trait0.DataSource = this; - __Trait1.DataSource = this; - __Trait2.DataSource = this; - __Trait3.DataSource = this; - __Trait4.OnSql = OnSql; - __Trait5.DataSource = this; - __Trait6.DataSource = this; - __Trait7.DataSource = this; - __Trait8.DataSource = this; - __Trait9.DataSource = this; - __Trait10.DataSource = this; - __Trait11.DataSource = this; - } - - } -} diff --git a/Tortuga.Chain/Tortuga.Chain.Access/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.Access.AccessOpenDataSource.cs b/Tortuga.Chain/Tortuga.Chain.Access/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.Access.AccessOpenDataSource.cs deleted file mode 100644 index 381b93554..000000000 --- a/Tortuga.Chain/Tortuga.Chain.Access/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.Access.AccessOpenDataSource.cs +++ /dev/null @@ -1,192 +0,0 @@ -//This file was generated by Tortuga Shipwright - -namespace Tortuga.Chain.Access -{ - partial class AccessOpenDataSource: Tortuga.Chain.DataSources.IOpenDataSource - { - - private bool __TraitsRegistered; - - // These fields and/or properties hold the traits. They should not be referenced directly. - private Traits.OpenDataSourceTrait ___Trait0 = new(); - private Traits.OpenDataSourceTrait __Trait0 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait0; - } - } - - // Explicit interface implementation Tortuga.Chain.DataSources.IOpenDataSource - System.Data.Common.DbConnection Tortuga.Chain.DataSources.IOpenDataSource.AssociatedConnection - { - get => ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).AssociatedConnection; - } - System.Data.Common.DbTransaction? Tortuga.Chain.DataSources.IOpenDataSource.AssociatedTransaction - { - get => ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).AssociatedTransaction; - } - void Tortuga.Chain.DataSources.IOpenDataSource.Close() - { - ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).Close(); - } - - System.Boolean Tortuga.Chain.DataSources.IOpenDataSource.TryCommit() - { - return ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).TryCommit(); - } - - System.Boolean Tortuga.Chain.DataSources.IOpenDataSource.TryRollback() - { - return ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).TryRollback(); - } - - // Exposing trait Traits.OpenDataSourceTrait - - /// - /// Returns the associated connection. - /// - /// The associated connection. - public System.Data.OleDb.OleDbConnection AssociatedConnection - { - get => __Trait0.AssociatedConnection; - } - /// - /// Returns the associated transaction. - /// - /// The associated transaction. - public System.Data.OleDb.OleDbTransaction? AssociatedTransaction - { - get => __Trait0.AssociatedTransaction; - } - /// - /// Gets or sets the cache to be used by this data source. The default is .NET's System.Runtime.Caching.MemoryCache. - /// - public override Tortuga.Chain.Core.ICacheAdapter Cache - { - get => __Trait0.Cache; - } - /// - /// Closes the connection and transaction associated with this data source. - /// - public void Close() - { - __Trait0.Close(); - } - - /// - /// Gets the database metadata. - /// - public override Tortuga.Chain.Access.AccessMetadataCache DatabaseMetadata - { - get => __Trait0.DatabaseMetadata; - } - /// - /// The extension cache is used by extensions to store data source specific information. - /// - /// - /// The extension cache. - /// - protected override System.Collections.Concurrent.ConcurrentDictionary ExtensionCache - { - get => __Trait0.ExtensionCache; - } - - private Tortuga.Chain.AccessDataSource m_BaseDataSource - { - get => __Trait0.m_BaseDataSource; - init => __Trait0.m_BaseDataSource = value; - } - - private System.Data.OleDb.OleDbConnection m_Connection - { - get => __Trait0.m_Connection; - init => __Trait0.m_Connection = value; - } - - private System.Data.OleDb.OleDbTransaction? m_Transaction - { - get => __Trait0.m_Transaction; - init => __Trait0.m_Transaction = value; - } - /// - /// Tests the connection. - /// - public override void TestConnection() - { - __Trait0.TestConnection(); - } - - /// - /// Tests the connection asynchronously. - /// - /// - public override System.Threading.Tasks.Task TestConnectionAsync() - { - return __Trait0.TestConnectionAsync(); - } - - /// - /// Tries the commit the transaction associated with this data source. - /// - /// True if there was an open transaction associated with this data source, otherwise false. - public System.Boolean TryCommit() - { - return __Trait0.TryCommit(); - } - - /// - /// Tries to rollback the transaction associated with this data source. - /// - /// True if there was an open transaction associated with this data source, otherwise false. - public System.Boolean TryRollback() - { - return __Trait0.TryRollback(); - } - - /// - /// Modifies this data source with additional audit rules. - /// - /// The additional rules. - /// - public Tortuga.Chain.Access.AccessOpenDataSource WithRules(params Tortuga.Chain.AuditRules.AuditRule[] additionalRules) - { - return __Trait0.WithRules(additionalRules); - } - - /// - /// Modifies this data source with additional audit rules. - /// - /// The additional rules. - /// - public Tortuga.Chain.Access.AccessOpenDataSource WithRules(System.Collections.Generic.IEnumerable additionalRules) - { - return __Trait0.WithRules(additionalRules); - } - - /// - /// Modifies this data source to include the indicated user. - /// - /// The user value. - /// - /// - /// This is used in conjunction with audit rules. - /// - public Tortuga.Chain.Access.AccessOpenDataSource WithUser(System.Object? userValue) - { - return __Trait0.WithUser(userValue); - } - - private partial Tortuga.Chain.Access.AccessOpenDataSource OnOverride(System.Collections.Generic.IEnumerable? additionalRules, System.Object? userValue ); - - private void __RegisterTraits() - { - __TraitsRegistered = true; - __Trait0.OnOverride = OnOverride; - __Trait0.Container = this; - __Trait0.DisposableContainer = this as Traits.IHasOnDispose; - } - - } -} diff --git a/Tortuga.Chain/Tortuga.Chain.Access/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.Access.AccessTransactionalDataSource.cs b/Tortuga.Chain/Tortuga.Chain.Access/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.Access.AccessTransactionalDataSource.cs deleted file mode 100644 index 0753d3cbe..000000000 --- a/Tortuga.Chain/Tortuga.Chain.Access/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.Access.AccessTransactionalDataSource.cs +++ /dev/null @@ -1,181 +0,0 @@ -//This file was generated by Tortuga Shipwright - -namespace Tortuga.Chain.Access -{ - partial class AccessTransactionalDataSource: Tortuga.Chain.DataSources.ITransactionalDataSource, Tortuga.Chain.DataSources.IOpenDataSource, System.IDisposable - { - - private bool __TraitsRegistered; - - // These fields and/or properties hold the traits. They should not be referenced directly. - private Traits.TransactionalDataSourceTrait ___Trait0 = new(); - private Traits.TransactionalDataSourceTrait __Trait0 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait0; - } - } - - // Explicit interface implementation System.IDisposable - void System.IDisposable.Dispose() - { - ((System.IDisposable)__Trait0).Dispose(); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.IOpenDataSource - System.Data.Common.DbConnection Tortuga.Chain.DataSources.IOpenDataSource.AssociatedConnection - { - get => ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).AssociatedConnection; - } - System.Data.Common.DbTransaction? Tortuga.Chain.DataSources.IOpenDataSource.AssociatedTransaction - { - get => ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).AssociatedTransaction; - } - void Tortuga.Chain.DataSources.IOpenDataSource.Close() - { - ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).Close(); - } - - System.Boolean Tortuga.Chain.DataSources.IOpenDataSource.TryCommit() - { - return ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).TryCommit(); - } - - System.Boolean Tortuga.Chain.DataSources.IOpenDataSource.TryRollback() - { - return ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).TryRollback(); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ITransactionalDataSource - void Tortuga.Chain.DataSources.ITransactionalDataSource.Commit() - { - ((Tortuga.Chain.DataSources.ITransactionalDataSource)__Trait0).Commit(); - } - - // Exposing trait Traits.TransactionalDataSourceTrait - - /// - /// Returns the associated connection. - /// - /// The associated connection. - public System.Data.OleDb.OleDbConnection AssociatedConnection - { - get => __Trait0.AssociatedConnection; - } - /// - /// Returns the associated transaction. - /// - /// The associated transaction. - public System.Data.OleDb.OleDbTransaction AssociatedTransaction - { - get => __Trait0.AssociatedTransaction; - } - /// - /// Gets or sets the cache to be used by this data source. The default is .NET's System.Runtime.Caching.MemoryCache. - /// - public override Tortuga.Chain.Core.ICacheAdapter Cache - { - get => __Trait0.Cache; - } - /// - /// Commits the transaction and disposes the underlying connection. - /// - public void Commit() - { - __Trait0.Commit(); - } - - /// - /// Gets the database metadata. - /// - public override Tortuga.Chain.Access.AccessMetadataCache DatabaseMetadata - { - get => __Trait0.DatabaseMetadata; - } - /// - /// Closes the current transaction and connection. If not committed, the transaction is rolled back. - /// - public void Dispose() - { - __Trait0.Dispose(); - } - - /// - /// Closes the current transaction and connection. If not committed, the transaction is rolled back. - /// - /// - protected virtual void Dispose(System.Boolean disposing) - { - __Trait0.Dispose(disposing); - } - - /// - /// The extension cache is used by extensions to store data source specific information. - /// - /// - /// The extension cache. - /// - protected override System.Collections.Concurrent.ConcurrentDictionary ExtensionCache - { - get => __Trait0.ExtensionCache; - } - - private Tortuga.Chain.AccessDataSource m_BaseDataSource - { - get => __Trait0.m_BaseDataSource; - init => __Trait0.m_BaseDataSource = value; - } - - private System.Data.OleDb.OleDbConnection m_Connection - { - get => __Trait0.m_Connection; - init => __Trait0.m_Connection = value; - } - - private System.Boolean m_Disposed - { - get => __Trait0.m_Disposed; - set => __Trait0.m_Disposed = value; - } - - private System.Data.OleDb.OleDbTransaction m_Transaction - { - get => __Trait0.m_Transaction; - init => __Trait0.m_Transaction = value; - } - /// - /// Rolls back the transaction and disposes the underlying connection. - /// - public void Rollback() - { - __Trait0.Rollback(); - } - - /// - /// Tests the connection. - /// - public override void TestConnection() - { - __Trait0.TestConnection(); - } - - /// - /// Tests the connection asynchronously. - /// - /// - public override System.Threading.Tasks.Task TestConnectionAsync() - { - return __Trait0.TestConnectionAsync(); - } - - private void __RegisterTraits() - { - __TraitsRegistered = true; - __Trait0.Container = this; - __Trait0.DisposableContainer = this as Traits.IHasOnDispose; - } - - } -} diff --git a/Tortuga.Chain/Tortuga.Chain.Access/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.AccessDataSource.cs b/Tortuga.Chain/Tortuga.Chain.Access/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.AccessDataSource.cs deleted file mode 100644 index fde40b285..000000000 --- a/Tortuga.Chain/Tortuga.Chain.Access/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.AccessDataSource.cs +++ /dev/null @@ -1,282 +0,0 @@ -//This file was generated by Tortuga Shipwright - -namespace Tortuga.Chain -{ - partial class AccessDataSource: Tortuga.Chain.DataSources.IRootDataSource, Traits.IHasExtensionCache - { - - private bool __TraitsRegistered; - - // These fields and/or properties hold the traits. They should not be referenced directly. - private Traits.RootDataSourceTrait ___Trait0 = new(); - private Traits.RootDataSourceTrait __Trait0 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait0; - } - } - - // Explicit interface implementation Traits.IHasExtensionCache - System.Collections.Concurrent.ConcurrentDictionary Traits.IHasExtensionCache.ExtensionCache - { - get => ((Traits.IHasExtensionCache)__Trait0).ExtensionCache; - } - // Explicit interface implementation Tortuga.Chain.DataSources.IRootDataSource - Tortuga.Chain.DataSources.ITransactionalDataSource Tortuga.Chain.DataSources.IRootDataSource.BeginTransaction() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).BeginTransaction(); - } - - System.Threading.Tasks.Task Tortuga.Chain.DataSources.IRootDataSource.BeginTransactionAsync() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).BeginTransactionAsync(); - } - - System.Data.Common.DbConnection Tortuga.Chain.DataSources.IRootDataSource.CreateConnection() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateConnection(); - } - - System.Threading.Tasks.Task Tortuga.Chain.DataSources.IRootDataSource.CreateConnectionAsync() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateConnectionAsync(); - } - - Tortuga.Chain.DataSources.IOpenDataSource Tortuga.Chain.DataSources.IRootDataSource.CreateOpenDataSource() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateOpenDataSource(); - } - - Tortuga.Chain.DataSources.IOpenDataSource Tortuga.Chain.DataSources.IRootDataSource.CreateOpenDataSource(System.Data.Common.DbConnection connection, System.Data.Common.DbTransaction? transaction) - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateOpenDataSource(connection, transaction); - } - - Tortuga.Chain.DataSources.IOpenDataSource Tortuga.Chain.DataSources.IRootDataSource.CreateOpenDataSource(System.Data.IDbConnection connection, System.Data.IDbTransaction? transaction) - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateOpenDataSource(connection, transaction); - } - - // Exposing trait Traits.RootDataSourceTrait - - /// - /// Creates a new transaction. - /// - /// - /// The caller of this method is responsible for closing the transaction. - public Tortuga.Chain.Access.AccessTransactionalDataSource BeginTransaction() - { - return __Trait0.BeginTransaction(); - } - - /// - /// Creates a new transaction. - /// - /// - /// - /// - /// The caller of this method is responsible for closing the transaction. - public Tortuga.Chain.Access.AccessTransactionalDataSource BeginTransaction(System.Nullable isolationLevel = default, System.Boolean forwardEvents = true) - { - return __Trait0.BeginTransaction(isolationLevel, forwardEvents); - } - - /// - /// Creates a new transaction. - /// - /// - /// - /// - /// - /// The caller of this method is responsible for closing the transaction. - public System.Threading.Tasks.Task BeginTransactionAsync(System.Nullable isolationLevel = default, System.Boolean forwardEvents = true, System.Threading.CancellationToken cancellationToken = default) - { - return __Trait0.BeginTransactionAsync(isolationLevel, forwardEvents, cancellationToken); - } - - /// - /// Creates a new transaction. - /// - /// - /// The caller of this method is responsible for closing the transaction. - public System.Threading.Tasks.Task BeginTransactionAsync() - { - return __Trait0.BeginTransactionAsync(); - } - - /// - /// Gets or sets the cache to be used by this data source. The default is .NET's System.Runtime.Caching.MemoryCache. - /// - public override Tortuga.Chain.Core.ICacheAdapter Cache - { - get => __Trait0.Cache; - } - /// - /// The composed connection string. - /// - /// This is created and cached by a ConnectionStringBuilder. - internal System.String ConnectionString - { - get => __Trait0.ConnectionString; - } - /// - /// Creates and opens a new Access connection - /// - /// - /// The caller of this method is responsible for closing the connection. - public System.Data.OleDb.OleDbConnection CreateConnection() - { - return __Trait0.CreateConnection(); - } - - /// - /// Creates the connection asynchronous. - /// - /// The cancellation token. - /// - /// - /// The caller of this method is responsible for closing the connection. - /// - public System.Threading.Tasks.Task CreateConnectionAsync(System.Threading.CancellationToken cancellationToken = default) - { - return __Trait0.CreateConnectionAsync(cancellationToken); - } - - /// - /// Creates an open data source using the supplied connection and optional transaction. - /// - /// The connection to wrap. - /// The transaction to wrap. - /// IOpenDataSource. - /// WARNING: The caller of this method is responsible for closing the connection. - public Tortuga.Chain.Access.AccessOpenDataSource CreateOpenDataSource(System.Data.OleDb.OleDbConnection connection, System.Data.OleDb.OleDbTransaction? transaction = default) - { - return __Trait0.CreateOpenDataSource(connection, transaction); - } - - /// - /// Creates an open data source with a new connection. - /// - /// WARNING: The caller of this method is responsible for closing the connection. - public Tortuga.Chain.Access.AccessOpenDataSource CreateOpenDataSource() - { - return __Trait0.CreateOpenDataSource(); - } - - /// - /// The extension cache is used by extensions to store data source specific information. - /// - /// - /// The extension cache. - /// - protected override System.Collections.Concurrent.ConcurrentDictionary ExtensionCache - { - get => __Trait0.ExtensionCache; - } - - internal Tortuga.Chain.Core.ICacheAdapter m_Cache - { - get => __Trait0.m_Cache; - set => __Trait0.m_Cache = value; - } - /// - /// This object can be used to access the database connection string. - /// - private System.Data.OleDb.OleDbConnectionStringBuilder m_ConnectionBuilder - { - get => __Trait0.m_ConnectionBuilder; - init => __Trait0.m_ConnectionBuilder = value; - } - - internal System.Collections.Concurrent.ConcurrentDictionary m_ExtensionCache - { - get => __Trait0.m_ExtensionCache; - set => __Trait0.m_ExtensionCache = value; - } - /// - /// Tests the connection. - /// - public override void TestConnection() - { - __Trait0.TestConnection(); - } - - /// - /// Tests the connection asynchronously. - /// - /// - public override System.Threading.Tasks.Task TestConnectionAsync() - { - return __Trait0.TestConnectionAsync(); - } - - /// - /// Creates a new data source with the provided cache. - /// - /// The cache. - /// - public Tortuga.Chain.AccessDataSource WithCache(Tortuga.Chain.Core.ICacheAdapter cache) - { - return __Trait0.WithCache(cache); - } - - /// - /// Creates a new data source with additional audit rules. - /// - /// The additional rules. - /// - public Tortuga.Chain.AccessDataSource WithRules(params Tortuga.Chain.AuditRules.AuditRule[] additionalRules) - { - return __Trait0.WithRules(additionalRules); - } - - /// - /// Creates a new data source with additional audit rules. - /// - /// The additional rules. - /// - public Tortuga.Chain.AccessDataSource WithRules(System.Collections.Generic.IEnumerable additionalRules) - { - return __Trait0.WithRules(additionalRules); - } - - /// - /// Creates a new data source with the indicated user. - /// - /// The user value. - /// - /// - /// This is used in conjunction with audit rules. - /// - public Tortuga.Chain.AccessDataSource WithUser(System.Object? userValue) - { - return __Trait0.WithUser(userValue); - } - - private partial Tortuga.Chain.Access.AccessTransactionalDataSource OnBeginTransaction(System.Nullable isolationLevel, System.Boolean forwardEvents ); - - private partial System.Threading.Tasks.Task OnBeginTransactionAsync(System.Nullable isolationLevel, System.Boolean forwardEvents, System.Threading.CancellationToken cancellationToken ); - - private partial Tortuga.Chain.AccessDataSource OnCloneWithOverrides(Tortuga.Chain.Core.ICacheAdapter? cache, System.Collections.Generic.IEnumerable? additionalRules, System.Object? userValue ); - - private partial System.Data.OleDb.OleDbConnection OnCreateConnection( ); - - private partial System.Threading.Tasks.Task OnCreateConnectionAsync(System.Threading.CancellationToken cancellationToken ); - - private partial Tortuga.Chain.Access.AccessOpenDataSource OnCreateOpenDataSource(System.Data.OleDb.OleDbConnection connection, System.Data.OleDb.OleDbTransaction? transaction ); - - private void __RegisterTraits() - { - __TraitsRegistered = true; - __Trait0.OnBeginTransaction = OnBeginTransaction; - __Trait0.OnBeginTransactionAsync = OnBeginTransactionAsync; - __Trait0.OnCreateConnection = OnCreateConnection; - __Trait0.OnCreateConnectionAsync = OnCreateConnectionAsync; - __Trait0.OnCreateOpenDataSource = OnCreateOpenDataSource; - __Trait0.OnCloneWithOverrides = OnCloneWithOverrides; - } - - } -} diff --git a/Tortuga.Chain/Tortuga.Chain.Access/Tortuga.Chain.Access.csproj b/Tortuga.Chain/Tortuga.Chain.Access/Tortuga.Chain.Access.csproj index 1d9112360..a00492b37 100644 --- a/Tortuga.Chain/Tortuga.Chain.Access/Tortuga.Chain.Access.csproj +++ b/Tortuga.Chain/Tortuga.Chain.Access/Tortuga.Chain.Access.csproj @@ -85,7 +85,7 @@ - true + Generated @@ -93,7 +93,7 @@ - + diff --git a/Tortuga.Chain/Tortuga.Chain.MySql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Logs.cs b/Tortuga.Chain/Tortuga.Chain.MySql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Logs.cs deleted file mode 100644 index 8f6db939e..000000000 --- a/Tortuga.Chain/Tortuga.Chain.MySql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Logs.cs +++ /dev/null @@ -1,32 +0,0 @@ -/* -Container class: Tortuga.Chain.MySqlDataSource - Adding trait: Traits.RootDataSourceTrait -Container class: Tortuga.Chain.MySql.MySqlDataSourceBase - Adding trait: Traits.SupportsDeleteAllTrait - Adding trait: Traits.SupportsTruncateTrait - Adding trait: Traits.SupportsSqlQueriesTrait - Adding trait: Traits.SupportsInsertBatchTrait> - Adding trait: Traits.SupportsDeleteByKeyListTrait - Adding trait: Traits.SupportsUpdateTrait - Adding trait: Traits.SupportsDeleteTrait - Adding trait: Traits.SupportsUpdateByKeyListTrait - Adding trait: Traits.SupportsInsertTrait - Adding trait: Traits.SupportsUpdateSet - Adding trait: Traits.SupportsDeleteSet - Adding trait: Traits.SupportsFromTrait - Adding trait: Traits.SupportsGetByKeyListTrait - Adding trait: Traits.SupportsUpsertTrait - Adding trait: Traits.SupportsInsertBulkTrait - Adding trait: Traits.SupportsScalarFunctionTrait - Adding trait: Traits.SupportsProcedureTrait - Adding trait: Traits.SupportsGetByColumnListTrait -Container class: Tortuga.Chain.MySql.MySqlOpenDataSource - Adding trait: Traits.OpenDataSourceTrait -Container class: Tortuga.Chain.MySql.MySqlTransactionalDataSource - Adding trait: Traits.TransactionalDataSourceTrait -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Traits.IHasExtensionCache.get_ExtensionCache -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Tortuga.Chain.DataSources.IOpenDataSource.get_AssociatedConnection -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Tortuga.Chain.DataSources.IOpenDataSource.get_AssociatedTransaction -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Tortuga.Chain.DataSources.IOpenDataSource.get_AssociatedConnection -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Tortuga.Chain.DataSources.IOpenDataSource.get_AssociatedTransaction -*/ \ No newline at end of file diff --git a/Tortuga.Chain/Tortuga.Chain.MySql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.MySql.MySqlDataSourceBase.cs b/Tortuga.Chain/Tortuga.Chain.MySql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.MySql.MySqlDataSourceBase.cs deleted file mode 100644 index 498795638..000000000 --- a/Tortuga.Chain/Tortuga.Chain.MySql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.MySql.MySqlDataSourceBase.cs +++ /dev/null @@ -1,1646 +0,0 @@ -//This file was generated by Tortuga Shipwright - -namespace Tortuga.Chain.MySql -{ - partial class MySqlDataSourceBase: Tortuga.Chain.DataSources.ISupportsDeleteAll, Tortuga.Chain.DataSources.ISupportsTruncate, Tortuga.Chain.DataSources.ISupportsSqlQueries, Tortuga.Chain.DataSources.ISupportsInsertBatch, Tortuga.Chain.DataSources.ISupportsDeleteByKeyList, Tortuga.Chain.DataSources.ISupportsDeleteByKey, Tortuga.Chain.DataSources.ISupportsUpdate, Tortuga.Chain.DataSources.ISupportsDelete, Tortuga.Chain.DataSources.ISupportsUpdateByKey, Tortuga.Chain.DataSources.ISupportsUpdateByKeyList, Tortuga.Chain.DataSources.ISupportsInsert, Tortuga.Chain.DataSources.ISupportsUpdateSet, Tortuga.Chain.DataSources.ISupportsDeleteSet, Tortuga.Chain.DataSources.ISupportsFrom, Tortuga.Chain.DataSources.ISupportsGetByKeyList, Tortuga.Chain.DataSources.ISupportsGetByKey, Tortuga.Chain.DataSources.ISupportsUpsert, Tortuga.Chain.DataSources.ISupportsInsertBulk, Tortuga.Chain.DataSources.ISupportsScalarFunction, Tortuga.Chain.DataSources.ISupportsProcedure, Tortuga.Chain.DataSources.ISupportsGetByColumnList, Tortuga.Chain.DataSources.ISupportsGetByColumn, Traits.ICommandHelper, Traits.IInsertBatchHelper, Traits.IUpdateDeleteByKeyHelper, Traits.IUpdateDeleteHelper, Traits.IInsertHelper, Traits.IUpdateDeleteSetHelper, Traits.IFromHelper, Traits.IGetByKeyHelper, Traits.IUpsertHelper, Traits.IInsertBulkHelper, Traits.ICommandHelper - { - - private bool __TraitsRegistered; - - // These fields and/or properties hold the traits. They should not be referenced directly. - private Traits.SupportsDeleteAllTrait ___Trait0 = new(); - private Traits.SupportsDeleteAllTrait __Trait0 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait0; - } - } - private Traits.SupportsTruncateTrait ___Trait1 = new(); - private Traits.SupportsTruncateTrait __Trait1 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait1; - } - } - private Traits.SupportsSqlQueriesTrait ___Trait2 = new(); - private Traits.SupportsSqlQueriesTrait __Trait2 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait2; - } - } - private Traits.SupportsInsertBatchTrait> ___Trait3 = new(); - private Traits.SupportsInsertBatchTrait> __Trait3 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait3; - } - } - private Traits.SupportsDeleteByKeyListTrait ___Trait4 = new(); - private Traits.SupportsDeleteByKeyListTrait __Trait4 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait4; - } - } - private Traits.SupportsUpdateTrait ___Trait5 = new(); - private Traits.SupportsUpdateTrait __Trait5 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait5; - } - } - private Traits.SupportsDeleteTrait ___Trait6 = new(); - private Traits.SupportsDeleteTrait __Trait6 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait6; - } - } - private Traits.SupportsUpdateByKeyListTrait ___Trait7 = new(); - private Traits.SupportsUpdateByKeyListTrait __Trait7 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait7; - } - } - private Traits.SupportsInsertTrait ___Trait8 = new(); - private Traits.SupportsInsertTrait __Trait8 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait8; - } - } - private Traits.SupportsUpdateSet ___Trait9 = new(); - private Traits.SupportsUpdateSet __Trait9 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait9; - } - } - private Traits.SupportsDeleteSet ___Trait10 = new(); - private Traits.SupportsDeleteSet __Trait10 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait10; - } - } - private Traits.SupportsFromTrait ___Trait11 = new(); - private Traits.SupportsFromTrait __Trait11 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait11; - } - } - private Traits.SupportsGetByKeyListTrait ___Trait12 = new(); - private Traits.SupportsGetByKeyListTrait __Trait12 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait12; - } - } - private Traits.SupportsUpsertTrait ___Trait13 = new(); - private Traits.SupportsUpsertTrait __Trait13 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait13; - } - } - private Traits.SupportsInsertBulkTrait ___Trait14 = new(); - private Traits.SupportsInsertBulkTrait __Trait14 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait14; - } - } - private Traits.SupportsScalarFunctionTrait ___Trait15 = new(); - private Traits.SupportsScalarFunctionTrait __Trait15 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait15; - } - } - private Traits.SupportsProcedureTrait ___Trait16 = new(); - private Traits.SupportsProcedureTrait __Trait16 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait16; - } - } - private Traits.SupportsGetByColumnListTrait ___Trait17 = new(); - private Traits.SupportsGetByColumnListTrait __Trait17 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait17; - } - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDelete - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDelete.Delete(System.String tableName, TArgument argumentValue, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDelete)__Trait6).Delete(tableName, argumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDelete.Delete(TArgument argumentValue, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDelete)__Trait6).Delete(argumentValue, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDeleteAll - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsDeleteAll.DeleteAll(System.String tableName) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteAll)__Trait0).DeleteAll(tableName); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsDeleteAll.DeleteAll() - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteAll)__Trait0).DeleteAll(); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDeleteByKey - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteByKey.DeleteByKey(System.String tableName, TKey key, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteByKey)__Trait4).DeleteByKey(tableName, key, options); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteByKey.DeleteByKey(System.String tableName, System.String key, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteByKey)__Trait4).DeleteByKey(tableName, key, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDeleteByKeyList - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteByKeyList.DeleteByKeyList(System.String tableName, System.Collections.Generic.IEnumerable keys, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteByKeyList)__Trait4).DeleteByKeyList(tableName, keys, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDeleteSet - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteSet.DeleteSet(System.String tableName, System.String whereClause) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteSet)__Trait10).DeleteSet(tableName, whereClause); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteSet.DeleteSet(System.String tableName, System.String whereClause, System.Object? argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteSet)__Trait10).DeleteSet(tableName, whereClause, argumentValue); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteSet.DeleteSet(System.String tableName, System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteSet)__Trait10).DeleteSet(tableName, filterValue, filterOptions); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsFrom - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String tableOrViewName) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(tableOrViewName); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String tableOrViewName, System.String whereClause) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(tableOrViewName, whereClause); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String tableOrViewName, System.String whereClause, System.Object argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(tableOrViewName, whereClause, argumentValue); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String tableOrViewName, System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(tableOrViewName, filterValue, filterOptions); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From() - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String whereClause) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(whereClause); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String whereClause, System.Object argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(whereClause, argumentValue); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.Object filterValue) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(filterValue); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsGetByColumn - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String tableName, System.String columnName, TKey key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait17).GetByColumn(tableName, columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String tableName, System.String columnName, System.String key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait17).GetByColumn(tableName, columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, TKey key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait17).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.String key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait17).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.Int16 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait17).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.Int32 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait17).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.Int64 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait17).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.Guid key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait17).GetByColumn(columnName, key); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsGetByColumnList - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String tableName, System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait17).GetByColumnList(tableName, columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait17).GetByColumnList(columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait17).GetByColumnList(columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait17).GetByColumnList(columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait17).GetByColumnList(columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait17).GetByColumnList(columnName, keys); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsGetByKey - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.String tableName, TKey key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(tableName, key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.String tableName, System.String key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(tableName, key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(TKey key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.String key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.Int16 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.Int32 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.Int64 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.Guid key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(key); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsGetByKeyList - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.String tableName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(tableName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(keys); - } - - [System.Obsolete(@"This will be replaced by GetByColumn")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.String tableName, System.String keyColumn, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(tableName, keyColumn, keys); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsInsert - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsInsert.Insert(System.String tableName, TArgument argumentValue, Tortuga.Chain.InsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsInsert)__Trait8).Insert(tableName, argumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsInsert.Insert(TArgument argumentValue, Tortuga.Chain.InsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsInsert)__Trait8).Insert(argumentValue, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsInsertBatch - Tortuga.Chain.CommandBuilders.IDbCommandBuilder Tortuga.Chain.DataSources.ISupportsInsertBatch.InsertBatch(System.Collections.Generic.IEnumerable objects, Tortuga.Chain.InsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBatch)__Trait3).InsertBatch(objects, options); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBatch.InsertMultipleBatch(System.String tableName, System.Collections.Generic.IReadOnlyList objects, Tortuga.Chain.InsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBatch)__Trait3).InsertMultipleBatch(tableName, objects, options); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBatch.InsertMultipleBatch(System.Collections.Generic.IReadOnlyList objects, Tortuga.Chain.InsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBatch)__Trait3).InsertMultipleBatch(objects, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsInsertBulk - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBulk.InsertBulk(System.String tableName, System.Data.DataTable dataTable) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBulk)__Trait14).InsertBulk(tableName, dataTable); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBulk.InsertBulk(System.String tableName, System.Data.IDataReader dataReader) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBulk)__Trait14).InsertBulk(tableName, dataReader); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBulk.InsertBulk(System.String tableName, System.Collections.Generic.IEnumerable objects) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBulk)__Trait14).InsertBulk(tableName, objects); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBulk.InsertBulk(System.Data.DataTable dataTable) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBulk)__Trait14).InsertBulk(dataTable); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBulk.InsertBulk(System.Data.IDataReader dataReader) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBulk)__Trait14).InsertBulk(dataReader); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBulk.InsertBulk(System.Collections.Generic.IEnumerable objects) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBulk)__Trait14).InsertBulk(objects); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsProcedure - Tortuga.Chain.CommandBuilders.IProcedureDbCommandBuilder Tortuga.Chain.DataSources.ISupportsProcedure.Procedure(System.String procedureName) - { - return ((Tortuga.Chain.DataSources.ISupportsProcedure)__Trait16).Procedure(procedureName); - } - - Tortuga.Chain.CommandBuilders.IProcedureDbCommandBuilder Tortuga.Chain.DataSources.ISupportsProcedure.Procedure(System.String procedureName, System.Object argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsProcedure)__Trait16).Procedure(procedureName, argumentValue); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsScalarFunction - Tortuga.Chain.CommandBuilders.IScalarDbCommandBuilder Tortuga.Chain.DataSources.ISupportsScalarFunction.ScalarFunction(System.String scalarFunctionName) - { - return ((Tortuga.Chain.DataSources.ISupportsScalarFunction)__Trait15).ScalarFunction(scalarFunctionName); - } - - Tortuga.Chain.CommandBuilders.IScalarDbCommandBuilder Tortuga.Chain.DataSources.ISupportsScalarFunction.ScalarFunction(System.String scalarFunctionName, System.Object functionArgumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsScalarFunction)__Trait15).ScalarFunction(scalarFunctionName, functionArgumentValue); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsSqlQueries - Tortuga.Chain.CommandBuilders.IMultipleTableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsSqlQueries.Sql(System.String sqlStatement, System.Object argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsSqlQueries)__Trait2).Sql(sqlStatement, argumentValue); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsTruncate - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsTruncate.Truncate(System.String tableName) - { - return ((Tortuga.Chain.DataSources.ISupportsTruncate)__Trait1).Truncate(tableName); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsTruncate.Truncate() - { - return ((Tortuga.Chain.DataSources.ISupportsTruncate)__Trait1).Truncate(); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpdate - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdate.Update(System.String tableName, TArgument argumentValue, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdate)__Trait5).Update(tableName, argumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdate.Update(TArgument argumentValue, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdate)__Trait5).Update(argumentValue, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpdateByKey - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateByKey.UpdateByKey(System.String tableName, TArgument newValues, TKey key, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateByKey)__Trait7).UpdateByKey(tableName, newValues, key, options); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateByKey.UpdateByKey(System.String tableName, TArgument newValues, System.String key, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateByKey)__Trait7).UpdateByKey(tableName, newValues, key, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpdateByKeyList - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateByKeyList.UpdateByKeyList(System.String tableName, TArgument newValues, System.Collections.Generic.IEnumerable keys, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateByKeyList)__Trait7).UpdateByKeyList(tableName, newValues, keys, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpdateSet - Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateSet.UpdateSet(System.String tableName, System.String updateExpression, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateSet)__Trait9).UpdateSet(tableName, updateExpression, options); - } - - Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateSet.UpdateSet(System.String tableName, System.String updateExpression, System.Object? updateArgumentValue, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateSet)__Trait9).UpdateSet(tableName, updateExpression, updateArgumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateSet.UpdateSet(System.String tableName, System.Object newValues, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateSet)__Trait9).UpdateSet(tableName, newValues, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpsert - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpsert.Upsert(System.String tableName, TArgument argumentValue, Tortuga.Chain.UpsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpsert)__Trait13).Upsert(tableName, argumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpsert.Upsert(TArgument argumentValue, Tortuga.Chain.UpsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpsert)__Trait13).Upsert(argumentValue, options); - } - - // Exposing trait Traits.SupportsDeleteAllTrait - - /// Deletes all records in the specified table. - /// Name of the table to clear. - /// The number of rows deleted or null if the database doesn't provide that information. - public Tortuga.Chain.ILink DeleteAll(Tortuga.Chain.MySql.MySqlObjectName tableName) - { - return __Trait0.DeleteAll(tableName); - } - - /// Deletes all records in the specified table. - /// This class used to determine which table to clear - /// The number of rows deleted or null if the database doesn't provide that information. - public Tortuga.Chain.ILink DeleteAll()where TObject : class - { - return __Trait0.DeleteAll(); - } - - // Exposing trait Traits.SupportsDeleteByKeyListTrait - - /// - /// Delete a record by its primary key. - /// - /// - /// Name of the table. - /// The key. - /// The options. - /// MultipleRowDbCommandBuilder<TCommand, TParameter>. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(Tortuga.Chain.MySql.MySqlObjectName tableName, T key, Tortuga.Chain.DeleteOptions options = 0)where T : struct - { - return __Trait4.DeleteByKey(tableName, key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Name of the table. - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(Tortuga.Chain.MySql.MySqlObjectName tableName, System.String key, Tortuga.Chain.DeleteOptions options = 0) - { - return __Trait4.DeleteByKey(tableName, key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Used to determine the table name - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(System.Guid key, Tortuga.Chain.DeleteOptions options = 0)where TObject : class - { - return __Trait4.DeleteByKey(key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Used to determine the table name - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(System.Int64 key, Tortuga.Chain.DeleteOptions options = 0)where TObject : class - { - return __Trait4.DeleteByKey(key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Used to determine the table name - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(System.Int32 key, Tortuga.Chain.DeleteOptions options = 0)where TObject : class - { - return __Trait4.DeleteByKey(key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Used to determine the table name - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(System.String key, Tortuga.Chain.DeleteOptions options = 0)where TObject : class - { - return __Trait4.DeleteByKey(key, options); - } - - /// - /// Delete multiple rows by key. - /// - /// The type of the t key. - /// Name of the table. - /// The keys. - /// Delete options. - /// - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteByKeyList(Tortuga.Chain.MySql.MySqlObjectName tableName, System.Collections.Generic.IEnumerable keys, Tortuga.Chain.DeleteOptions options = 0) - { - return __Trait4.DeleteByKeyList(tableName, keys, options); - } - - // Exposing trait Traits.SupportsDeleteSet - - /// - /// Delete multiple records using a filter object. - /// - /// Name of the table. - /// The filter value. - /// The options. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteSet(Tortuga.Chain.MySql.MySqlObjectName tableName, System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions = 0) - { - return __Trait10.DeleteSet(tableName, filterValue, filterOptions); - } - - /// - /// Delete multiple records using a filter object. - /// - /// The filter value. - /// The options. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteSet(System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions = 0)where TObject : class - { - return __Trait10.DeleteSet(filterValue, filterOptions); - } - - /// - /// Delete multiple records using a where expression. - /// - /// Name of the table. - /// The where clause. - /// The argument value for the where clause. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteSet(Tortuga.Chain.MySql.MySqlObjectName tableName, System.String whereClause, System.Object? argumentValue = default) - { - return __Trait10.DeleteSet(tableName, whereClause, argumentValue); - } - - /// - /// Delete multiple records using a where expression. - /// - /// The where clause. - /// The argument value for the where clause. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteSet(System.String whereClause, System.Object? argumentValue = default)where TObject : class - { - return __Trait10.DeleteSet(whereClause, argumentValue); - } - - // Exposing trait Traits.SupportsDeleteTrait - - /// - /// Creates a command to perform a delete operation. - /// - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Delete(Tortuga.Chain.MySql.MySqlObjectName tableName, TArgument argumentValue, Tortuga.Chain.DeleteOptions options = 0)where TArgument : class - { - return __Trait6.Delete(tableName, argumentValue, options); - } - - /// - /// Delete an object model from the table indicated by the class's Table attribute. - /// - /// - /// The argument value. - /// The delete options. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Delete(TArgument argumentValue, Tortuga.Chain.DeleteOptions options = 0)where TArgument : class - { - return __Trait6.Delete(argumentValue, options); - } - - // Exposing trait Traits.SupportsFromTrait - - /// - /// Creates an operation to directly query a table or view - /// - /// - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(Tortuga.Chain.MySql.MySqlObjectName tableOrViewName) - { - return __Trait11.From(tableOrViewName); - } - - /// - /// Creates an operation to directly query a table or view - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(Tortuga.Chain.MySql.MySqlObjectName tableOrViewName, System.String whereClause) - { - return __Trait11.From(tableOrViewName, whereClause); - } - - /// - /// Creates an operation to directly query a table or view - /// - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(Tortuga.Chain.MySql.MySqlObjectName tableOrViewName, System.String whereClause, System.Object argumentValue) - { - return __Trait11.From(tableOrViewName, whereClause, argumentValue); - } - - /// - /// Creates an operation to directly query a table or view - /// - /// Name of the table or view. - /// The filter value. - /// The filter options. - /// TableDbCommandBuilder<TCommand, TParameter, TLimitOption>. - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(Tortuga.Chain.MySql.MySqlObjectName tableOrViewName, System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions = 0) - { - return __Trait11.From(tableOrViewName, filterValue, filterOptions); - } - - /// - /// This is used to directly query a table or view. - /// - /// - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From()where TObject : class - { - return __Trait11.From(); - } - - /// - /// This is used to directly query a table or view. - /// - /// The type of the object. - /// The where clause. Do not prefix this clause with "WHERE". - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(System.String whereClause)where TObject : class - { - return __Trait11.From(whereClause); - } - - /// - /// This is used to directly query a table or view. - /// - /// The type of the object. - /// The where clause. Do not prefix this clause with "WHERE". - /// Optional argument value. Every property in the argument value must have a matching parameter in the WHERE clause - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(System.String whereClause, System.Object argumentValue)where TObject : class - { - return __Trait11.From(whereClause, argumentValue); - } - - /// - /// This is used to directly query a table or view. - /// - /// The type of the object. - /// The filter value is used to generate a simple AND style WHERE clause. - /// The filter options. - /// TableDbCommandBuilder<TCommand, TParameter, TLimitOption, TObject>. - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions = 0)where TObject : class - { - return __Trait11.From(filterValue, filterOptions); - } - - // Exposing trait Traits.SupportsGetByColumnListTrait - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. Used to determine which table will be read. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.Guid key)where TObject : class - { - return __Trait17.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.Int64 key)where TObject : class - { - return __Trait17.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.Int16 key)where TObject : class - { - return __Trait17.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.Int32 key)where TObject : class - { - return __Trait17.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.String key)where TObject : class - { - return __Trait17.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The type of the key. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, TKey key)where TObject : class - { - return __Trait17.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// Name of the table. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(Tortuga.Chain.MySql.MySqlObjectName tableName, System.String columnName, System.String key) - { - return __Trait17.GetByColumn(tableName, columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// - /// Name of the table. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(Tortuga.Chain.MySql.MySqlObjectName tableName, System.String columnName, TKey key) - { - return __Trait17.GetByColumn(tableName, columnName, key); - } - - /// - /// Gets a set of records by their primary key. - /// - /// - /// Name of the table. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(Tortuga.Chain.MySql.MySqlObjectName tableName, System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return __Trait17.GetByColumnList(tableName, columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The type of the key. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait17.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait17.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait17.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait17.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait17.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait17.GetByColumnList(columnName, keys); - } - - // Exposing trait Traits.SupportsGetByKeyListTrait - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. Used to determine which table will be read. - /// The key. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.Guid key)where TObject : class - { - return __Trait12.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The key. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.Int64 key)where TObject : class - { - return __Trait12.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The key. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.Int16 key)where TObject : class - { - return __Trait12.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The key. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.Int32 key)where TObject : class - { - return __Trait12.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The key. - /// - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.String key)where TObject : class - { - return __Trait12.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The type of the key. - /// The key. - /// - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(TKey key)where TObject : class - { - return __Trait12.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// Name of the table. - /// The key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(Tortuga.Chain.MySql.MySqlObjectName tableName, System.String key) - { - return __Trait12.GetByKey(tableName, key); - } - - /// - /// Gets a record by its primary key. - /// - /// - /// Name of the table. - /// The key. - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(Tortuga.Chain.MySql.MySqlObjectName tableName, TKey key) - { - return __Trait12.GetByKey(tableName, key); - } - - /// - /// Gets a set of records by their primary key. - /// - /// - /// Name of the table. - /// The keys. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(Tortuga.Chain.MySql.MySqlObjectName tableName, System.Collections.Generic.IEnumerable keys) - { - return __Trait12.GetByKeyList(tableName, keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The type of the key. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait12.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait12.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait12.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait12.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait12.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait12.GetByKeyList(keys); - } - - /// Gets a set of records by an unique key. - /// The type of the t key. - /// Name of the table. - /// Name of the key column. This should be a primary or unique key, but that's not enforced. - /// The keys. - /// IMultipleRowDbCommandBuilder. - [System.Obsolete(@"This will be replaced by GetByColumn")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.String tableName, System.String keyColumn, System.Collections.Generic.IEnumerable keys) - { - return __Trait12.GetByKeyList(tableName, keyColumn, keys); - } - - // Exposing trait Traits.SupportsInsertBatchTrait> - - /// - /// Inserts the batch of records as one operation. - /// - /// - /// Name of the table. - /// The objects to insert. - /// The options. - /// MultipleRowDbCommandBuilder<SqlCommand, SqlParameter>. - public Tortuga.Chain.CommandBuilders.DbCommandBuilder InsertBatch(Tortuga.Chain.MySql.MySqlObjectName tableName, System.Collections.Generic.IEnumerable objects, Tortuga.Chain.InsertOptions options = 0)where TObject : class - { - return __Trait3.InsertBatch(tableName, objects, options); - } - - /// - /// Inserts the batch of records as one operation. - /// - /// - /// The objects to insert. - /// The options. - /// MultipleRowDbCommandBuilder<SqlCommand, SqlParameter>. - public Tortuga.Chain.CommandBuilders.DbCommandBuilder InsertBatch(System.Collections.Generic.IEnumerable objects, Tortuga.Chain.InsertOptions options = 0)where TObject : class - { - return __Trait3.InsertBatch(objects, options); - } - - /// - /// Performs a series of batch inserts. - /// - /// The type of the t object. - /// Name of the table. - /// The objects. - /// The options. - /// Tortuga.Chain.ILink<System.Int32>. - /// This operation is not atomic. It should be wrapped in a transaction. - public Tortuga.Chain.ILink InsertMultipleBatch(Tortuga.Chain.MySql.MySqlObjectName tableName, System.Collections.Generic.IEnumerable objects, Tortuga.Chain.InsertOptions options = 0)where TObject : class - { - return __Trait3.InsertMultipleBatch(tableName, objects, options); - } - - /// - /// Inserts the batch of records as one operation. - /// - /// - /// The objects to insert. - /// The options. - /// MultipleRowDbCommandBuilder<SqlCommand, SqlParameter>. - public Tortuga.Chain.ILink InsertMultipleBatch(System.Collections.Generic.IReadOnlyList objects, Tortuga.Chain.InsertOptions options = 0)where TObject : class - { - return __Trait3.InsertMultipleBatch(objects, options); - } - - // Exposing trait Traits.SupportsInsertBulkTrait - - /// - /// Inserts the batch of records using bulk insert. - /// - /// Name of the table. - /// The data table. - /// TInsertBulkCommand. - public Tortuga.Chain.MySql.CommandBuilders.MySqlInsertBulk InsertBulk(Tortuga.Chain.MySql.MySqlObjectName tableName, System.Data.DataTable dataTable) - { - return __Trait14.InsertBulk(tableName, dataTable); - } - - /// - /// Inserts the batch of records using bulk insert. - /// - /// Name of the table. - /// The data reader. - /// TInsertBulkCommand. - public Tortuga.Chain.MySql.CommandBuilders.MySqlInsertBulk InsertBulk(Tortuga.Chain.MySql.MySqlObjectName tableName, System.Data.IDataReader dataReader) - { - return __Trait14.InsertBulk(tableName, dataReader); - } - - /// - /// Inserts the batch of records using bulk insert. - /// - /// - /// Name of the table. - /// The objects. - /// TInsertBulkCommand. - public Tortuga.Chain.MySql.CommandBuilders.MySqlInsertBulk InsertBulk(Tortuga.Chain.MySql.MySqlObjectName tableName, System.Collections.Generic.IEnumerable objects)where TObject : class - { - return __Trait14.InsertBulk(tableName, objects); - } - - /// - /// Inserts the batch of records using bulk insert. - /// - /// The type of the object. - /// The data table. - /// - /// TInsertBulkCommand. - /// - public Tortuga.Chain.MySql.CommandBuilders.MySqlInsertBulk InsertBulk(System.Data.DataTable dataTable)where TObject : class - { - return __Trait14.InsertBulk(dataTable); - } - - /// - /// Inserts the batch of records using bulk insert. - /// - /// The type of the object. - /// The data reader. - /// - /// TInsertBulkCommand. - /// - public Tortuga.Chain.MySql.CommandBuilders.MySqlInsertBulk InsertBulk(System.Data.IDataReader dataReader)where TObject : class - { - return __Trait14.InsertBulk(dataReader); - } - - /// - /// Inserts the batch of records using bulk insert. - /// - /// The type of the object. - /// The objects. - /// - /// TInsertBulkCommand. - /// - public Tortuga.Chain.MySql.CommandBuilders.MySqlInsertBulk InsertBulk(System.Collections.Generic.IEnumerable objects)where TObject : class - { - return __Trait14.InsertBulk(objects); - } - - // Exposing trait Traits.SupportsInsertTrait - - /// - /// Inserts an object into the specified table. - /// - /// - /// The argument value. - /// The options for how the insert occurs. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Insert(TArgument argumentValue, Tortuga.Chain.InsertOptions options = 0)where TArgument : class - { - return __Trait8.Insert(argumentValue, options); - } - - /// - /// Creates an operation used to perform an insert operation. - /// - /// Name of the table. - /// The argument value. - /// The options. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Insert(Tortuga.Chain.MySql.MySqlObjectName tableName, TArgument argumentValue, Tortuga.Chain.InsertOptions options = 0)where TArgument : class - { - return __Trait8.Insert(tableName, argumentValue, options); - } - - // Exposing trait Traits.SupportsProcedureTrait - - /// - /// Loads a procedure definition - /// - /// Name of the procedure. - /// - public Tortuga.Chain.CommandBuilders.ProcedureDbCommandBuilder Procedure(Tortuga.Chain.MySql.MySqlObjectName procedureName) - { - return __Trait16.Procedure(procedureName); - } - - /// - /// Loads a procedure definition and populates it using the parameter object. - /// - /// Name of the procedure. - /// The argument value. - /// - /// - /// The procedure's definition is loaded from the database and used to determine which properties on the parameter object to use. - /// - public Tortuga.Chain.CommandBuilders.ProcedureDbCommandBuilder Procedure(Tortuga.Chain.MySql.MySqlObjectName procedureName, System.Object argumentValue) - { - return __Trait16.Procedure(procedureName, argumentValue); - } - - // Exposing trait Traits.SupportsScalarFunctionTrait - - /// - /// This is used to query a scalar function. - /// - /// Name of the scalar function. - /// - public Tortuga.Chain.CommandBuilders.ScalarDbCommandBuilder ScalarFunction(Tortuga.Chain.MySql.MySqlObjectName scalarFunctionName) - { - return __Trait15.ScalarFunction(scalarFunctionName); - } - - /// - /// This is used to query a scalar function. - /// - /// Name of the scalar function. - /// The function argument. - /// - public Tortuga.Chain.CommandBuilders.ScalarDbCommandBuilder ScalarFunction(Tortuga.Chain.MySql.MySqlObjectName scalarFunctionName, System.Object functionArgumentValue) - { - return __Trait15.ScalarFunction(scalarFunctionName, functionArgumentValue); - } - - // Exposing trait Traits.SupportsSqlQueriesTrait - - /// - /// Creates a operation based on a raw SQL statement. - /// - /// The SQL statement. - /// - public Tortuga.Chain.CommandBuilders.MultipleTableDbCommandBuilder Sql(System.String sqlStatement) - { - return __Trait2.Sql(sqlStatement); - } - - /// - /// Creates a operation based on a raw SQL statement. - /// - /// The SQL statement. - /// The argument value. - /// SqlServerSqlCall. - public Tortuga.Chain.CommandBuilders.MultipleTableDbCommandBuilder Sql(System.String sqlStatement, System.Object argumentValue) - { - return __Trait2.Sql(sqlStatement, argumentValue); - } - - // Exposing trait Traits.SupportsTruncateTrait - - /// Truncates the specified table. - /// Name of the table to Truncate. - /// The number of rows deleted or null if the database doesn't provide that information. - public Tortuga.Chain.ILink Truncate(Tortuga.Chain.MySql.MySqlObjectName tableName) - { - return __Trait1.Truncate(tableName); - } - - /// Truncates the specified table. - /// This class used to determine which table to Truncate - /// The number of rows deleted or null if the database doesn't provide that information. - public Tortuga.Chain.ILink Truncate()where TObject : class - { - return __Trait1.Truncate(); - } - - // Exposing trait Traits.SupportsUpdateByKeyListTrait - - /// - /// Update a record by its primary key. - /// - /// The type of the t argument. - /// - /// Name of the table. - /// The new values to use. - /// The key. - /// The options. - /// MultipleRowDbCommandBuilder<AbstractCommand, AbstractParameter>. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder UpdateByKey(Tortuga.Chain.MySql.MySqlObjectName tableName, TArgument newValues, TKey key, Tortuga.Chain.UpdateOptions options = 0)where TKey : struct - { - return __Trait7.UpdateByKey(tableName, newValues, key, options); - } - - /// - /// Update a record by its primary key. - /// - /// The type of the t argument. - /// Name of the table. - /// The new values to use. - /// The key. - /// The options. - /// MultipleRowDbCommandBuilder<OleDbCommand, OleDbParameter>. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder UpdateByKey(Tortuga.Chain.MySql.MySqlObjectName tableName, TArgument newValues, System.String key, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait7.UpdateByKey(tableName, newValues, key, options); - } - - /// - /// Update multiple rows by key. - /// - /// The type of the t argument. - /// The type of the t key. - /// Name of the table. - /// The new values to use. - /// The keys. - /// Update options. - /// MultipleRowDbCommandBuilder<OleDbCommand, OleDbParameter>. - /// - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder UpdateByKeyList(Tortuga.Chain.MySql.MySqlObjectName tableName, TArgument newValues, System.Collections.Generic.IEnumerable keys, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait7.UpdateByKeyList(tableName, newValues, keys, options); - } - - // Exposing trait Traits.SupportsUpdateSet - - /// - /// Update multiple records using an update expression. - /// - /// Name of the table. - /// The update expression. - /// The argument value. - /// The update options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(Tortuga.Chain.MySql.MySqlObjectName tableName, System.String updateExpression, System.Object? updateArgumentValue, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait9.UpdateSet(tableName, updateExpression, updateArgumentValue, options); - } - - /// - /// Update multiple records using an update value. - /// - /// Name of the table. - /// The new values to use. - /// The options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(Tortuga.Chain.MySql.MySqlObjectName tableName, System.Object newValues, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait9.UpdateSet(tableName, newValues, options); - } - - /// - /// Update multiple records using an update expression. - /// - /// Name of the table. - /// The update expression. - /// The update options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(Tortuga.Chain.MySql.MySqlObjectName tableName, System.String updateExpression, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait9.UpdateSet(tableName, updateExpression, options); - } - - /// - /// Update multiple records using an update expression. - /// - /// Class used to determine the table name. - /// The update expression. - /// The argument for the update expression. - /// The update options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(System.String updateExpression, System.Object updateArgumentValue, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait9.UpdateSet(updateExpression, updateArgumentValue, options); - } - - /// - /// Update multiple records using an update value. - /// - /// Class used to determine the table name. - /// The new values to use. - /// The options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(System.Object newValues, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait9.UpdateSet(newValues, options); - } - - /// - /// Update multiple records using an update expression. - /// - /// Class used to determine the table name. - /// The update expression. - /// The update options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(System.String updateExpression, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait9.UpdateSet(updateExpression, options); - } - - // Exposing trait Traits.SupportsUpdateTrait - - /// - /// Update an object in the specified table. - /// - /// - /// The argument value. - /// The update options. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Update(TArgument argumentValue, Tortuga.Chain.UpdateOptions options = 0)where TArgument : class - { - return __Trait5.Update(argumentValue, options); - } - - /// - /// Update an object in the specified table. - /// - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Update(Tortuga.Chain.MySql.MySqlObjectName tableName, TArgument argumentValue, Tortuga.Chain.UpdateOptions options = 0)where TArgument : class - { - return __Trait5.Update(tableName, argumentValue, options); - } - - // Exposing trait Traits.SupportsUpsertTrait - - /// - /// Creates a operation used to perform an "upsert" operation. - /// - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Upsert(Tortuga.Chain.MySql.MySqlObjectName tableName, TArgument argumentValue, Tortuga.Chain.UpsertOptions options = 0)where TArgument : class - { - return __Trait13.Upsert(tableName, argumentValue, options); - } - - /// - /// Perform an insert or update operation as appropriate. - /// - /// - /// The argument value. - /// The options for how the insert/update occurs. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Upsert(TArgument argumentValue, Tortuga.Chain.UpsertOptions options = 0)where TArgument : class - { - return __Trait13.Upsert(argumentValue, options); - } - - private partial Tortuga.Chain.ILink OnDeleteAll(Tortuga.Chain.MySql.MySqlObjectName tableName ); - - private partial Tortuga.Chain.CommandBuilders.ProcedureDbCommandBuilder OnProcedure(Tortuga.Chain.MySql.MySqlObjectName procedureName, System.Object? argumentValue ); - - private partial Tortuga.Chain.CommandBuilders.ScalarDbCommandBuilder OnScalarFunction(Tortuga.Chain.MySql.MySqlObjectName scalarFunctionName, System.Object? argumentValue ); - - private partial Tortuga.Chain.CommandBuilders.MultipleTableDbCommandBuilder OnSql(System.String sqlStatement, System.Object? argumentValue ); - - private partial Tortuga.Chain.ILink OnTruncate(Tortuga.Chain.MySql.MySqlObjectName tableName ); - - private void __RegisterTraits() - { - __TraitsRegistered = true; - __Trait0.OnDeleteAll = OnDeleteAll; - __Trait0.DataSource = this; - __Trait1.OnTruncate = OnTruncate; - __Trait1.DataSource = this; - __Trait2.OnSql = OnSql; - __Trait3.DataSource = this; - __Trait4.DataSource = this; - __Trait5.DataSource = this; - __Trait6.DataSource = this; - __Trait7.DataSource = this; - __Trait8.DataSource = this; - __Trait9.DataSource = this; - __Trait10.DataSource = this; - __Trait11.DataSource = this; - __Trait12.DataSource = this; - __Trait13.DataSource = this; - __Trait14.DataSource = this; - __Trait15.OnScalarFunction = OnScalarFunction; - __Trait15.DataSource = this; - __Trait16.OnProcedure = OnProcedure; - __Trait16.DataSource = this; - __Trait17.DataSource = this; - } - - } -} diff --git a/Tortuga.Chain/Tortuga.Chain.MySql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.MySql.MySqlOpenDataSource.cs b/Tortuga.Chain/Tortuga.Chain.MySql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.MySql.MySqlOpenDataSource.cs deleted file mode 100644 index 7af811bf5..000000000 --- a/Tortuga.Chain/Tortuga.Chain.MySql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.MySql.MySqlOpenDataSource.cs +++ /dev/null @@ -1,192 +0,0 @@ -//This file was generated by Tortuga Shipwright - -namespace Tortuga.Chain.MySql -{ - partial class MySqlOpenDataSource: Tortuga.Chain.DataSources.IOpenDataSource - { - - private bool __TraitsRegistered; - - // These fields and/or properties hold the traits. They should not be referenced directly. - private Traits.OpenDataSourceTrait ___Trait0 = new(); - private Traits.OpenDataSourceTrait __Trait0 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait0; - } - } - - // Explicit interface implementation Tortuga.Chain.DataSources.IOpenDataSource - System.Data.Common.DbConnection Tortuga.Chain.DataSources.IOpenDataSource.AssociatedConnection - { - get => ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).AssociatedConnection; - } - System.Data.Common.DbTransaction? Tortuga.Chain.DataSources.IOpenDataSource.AssociatedTransaction - { - get => ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).AssociatedTransaction; - } - void Tortuga.Chain.DataSources.IOpenDataSource.Close() - { - ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).Close(); - } - - System.Boolean Tortuga.Chain.DataSources.IOpenDataSource.TryCommit() - { - return ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).TryCommit(); - } - - System.Boolean Tortuga.Chain.DataSources.IOpenDataSource.TryRollback() - { - return ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).TryRollback(); - } - - // Exposing trait Traits.OpenDataSourceTrait - - /// - /// Returns the associated connection. - /// - /// The associated connection. - public MySqlConnector.MySqlConnection AssociatedConnection - { - get => __Trait0.AssociatedConnection; - } - /// - /// Returns the associated transaction. - /// - /// The associated transaction. - public MySqlConnector.MySqlTransaction? AssociatedTransaction - { - get => __Trait0.AssociatedTransaction; - } - /// - /// Gets or sets the cache to be used by this data source. The default is .NET's System.Runtime.Caching.MemoryCache. - /// - public override Tortuga.Chain.Core.ICacheAdapter Cache - { - get => __Trait0.Cache; - } - /// - /// Closes the connection and transaction associated with this data source. - /// - public void Close() - { - __Trait0.Close(); - } - - /// - /// Gets the database metadata. - /// - public override Tortuga.Chain.MySql.MySqlMetadataCache DatabaseMetadata - { - get => __Trait0.DatabaseMetadata; - } - /// - /// The extension cache is used by extensions to store data source specific information. - /// - /// - /// The extension cache. - /// - protected override System.Collections.Concurrent.ConcurrentDictionary ExtensionCache - { - get => __Trait0.ExtensionCache; - } - - private Tortuga.Chain.MySqlDataSource m_BaseDataSource - { - get => __Trait0.m_BaseDataSource; - init => __Trait0.m_BaseDataSource = value; - } - - private MySqlConnector.MySqlConnection m_Connection - { - get => __Trait0.m_Connection; - init => __Trait0.m_Connection = value; - } - - private MySqlConnector.MySqlTransaction? m_Transaction - { - get => __Trait0.m_Transaction; - init => __Trait0.m_Transaction = value; - } - /// - /// Tests the connection. - /// - public override void TestConnection() - { - __Trait0.TestConnection(); - } - - /// - /// Tests the connection asynchronously. - /// - /// - public override System.Threading.Tasks.Task TestConnectionAsync() - { - return __Trait0.TestConnectionAsync(); - } - - /// - /// Tries the commit the transaction associated with this data source. - /// - /// True if there was an open transaction associated with this data source, otherwise false. - public System.Boolean TryCommit() - { - return __Trait0.TryCommit(); - } - - /// - /// Tries to rollback the transaction associated with this data source. - /// - /// True if there was an open transaction associated with this data source, otherwise false. - public System.Boolean TryRollback() - { - return __Trait0.TryRollback(); - } - - /// - /// Modifies this data source with additional audit rules. - /// - /// The additional rules. - /// - public Tortuga.Chain.MySql.MySqlOpenDataSource WithRules(params Tortuga.Chain.AuditRules.AuditRule[] additionalRules) - { - return __Trait0.WithRules(additionalRules); - } - - /// - /// Modifies this data source with additional audit rules. - /// - /// The additional rules. - /// - public Tortuga.Chain.MySql.MySqlOpenDataSource WithRules(System.Collections.Generic.IEnumerable additionalRules) - { - return __Trait0.WithRules(additionalRules); - } - - /// - /// Modifies this data source to include the indicated user. - /// - /// The user value. - /// - /// - /// This is used in conjunction with audit rules. - /// - public Tortuga.Chain.MySql.MySqlOpenDataSource WithUser(System.Object? userValue) - { - return __Trait0.WithUser(userValue); - } - - private partial Tortuga.Chain.MySql.MySqlOpenDataSource OnOverride(System.Collections.Generic.IEnumerable? additionalRules, System.Object? userValue ); - - private void __RegisterTraits() - { - __TraitsRegistered = true; - __Trait0.OnOverride = OnOverride; - __Trait0.Container = this; - __Trait0.DisposableContainer = this as Traits.IHasOnDispose; - } - - } -} diff --git a/Tortuga.Chain/Tortuga.Chain.MySql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.MySql.MySqlTransactionalDataSource.cs b/Tortuga.Chain/Tortuga.Chain.MySql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.MySql.MySqlTransactionalDataSource.cs deleted file mode 100644 index 1ab6fc0a9..000000000 --- a/Tortuga.Chain/Tortuga.Chain.MySql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.MySql.MySqlTransactionalDataSource.cs +++ /dev/null @@ -1,181 +0,0 @@ -//This file was generated by Tortuga Shipwright - -namespace Tortuga.Chain.MySql -{ - partial class MySqlTransactionalDataSource: Tortuga.Chain.DataSources.ITransactionalDataSource, Tortuga.Chain.DataSources.IOpenDataSource, System.IDisposable - { - - private bool __TraitsRegistered; - - // These fields and/or properties hold the traits. They should not be referenced directly. - private Traits.TransactionalDataSourceTrait ___Trait0 = new(); - private Traits.TransactionalDataSourceTrait __Trait0 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait0; - } - } - - // Explicit interface implementation System.IDisposable - void System.IDisposable.Dispose() - { - ((System.IDisposable)__Trait0).Dispose(); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.IOpenDataSource - System.Data.Common.DbConnection Tortuga.Chain.DataSources.IOpenDataSource.AssociatedConnection - { - get => ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).AssociatedConnection; - } - System.Data.Common.DbTransaction? Tortuga.Chain.DataSources.IOpenDataSource.AssociatedTransaction - { - get => ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).AssociatedTransaction; - } - void Tortuga.Chain.DataSources.IOpenDataSource.Close() - { - ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).Close(); - } - - System.Boolean Tortuga.Chain.DataSources.IOpenDataSource.TryCommit() - { - return ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).TryCommit(); - } - - System.Boolean Tortuga.Chain.DataSources.IOpenDataSource.TryRollback() - { - return ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).TryRollback(); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ITransactionalDataSource - void Tortuga.Chain.DataSources.ITransactionalDataSource.Commit() - { - ((Tortuga.Chain.DataSources.ITransactionalDataSource)__Trait0).Commit(); - } - - // Exposing trait Traits.TransactionalDataSourceTrait - - /// - /// Returns the associated connection. - /// - /// The associated connection. - public MySqlConnector.MySqlConnection AssociatedConnection - { - get => __Trait0.AssociatedConnection; - } - /// - /// Returns the associated transaction. - /// - /// The associated transaction. - public MySqlConnector.MySqlTransaction AssociatedTransaction - { - get => __Trait0.AssociatedTransaction; - } - /// - /// Gets or sets the cache to be used by this data source. The default is .NET's System.Runtime.Caching.MemoryCache. - /// - public override Tortuga.Chain.Core.ICacheAdapter Cache - { - get => __Trait0.Cache; - } - /// - /// Commits the transaction and disposes the underlying connection. - /// - public void Commit() - { - __Trait0.Commit(); - } - - /// - /// Gets the database metadata. - /// - public override Tortuga.Chain.MySql.MySqlMetadataCache DatabaseMetadata - { - get => __Trait0.DatabaseMetadata; - } - /// - /// Closes the current transaction and connection. If not committed, the transaction is rolled back. - /// - public void Dispose() - { - __Trait0.Dispose(); - } - - /// - /// Closes the current transaction and connection. If not committed, the transaction is rolled back. - /// - /// - protected virtual void Dispose(System.Boolean disposing) - { - __Trait0.Dispose(disposing); - } - - /// - /// The extension cache is used by extensions to store data source specific information. - /// - /// - /// The extension cache. - /// - protected override System.Collections.Concurrent.ConcurrentDictionary ExtensionCache - { - get => __Trait0.ExtensionCache; - } - - private Tortuga.Chain.MySqlDataSource m_BaseDataSource - { - get => __Trait0.m_BaseDataSource; - init => __Trait0.m_BaseDataSource = value; - } - - private MySqlConnector.MySqlConnection m_Connection - { - get => __Trait0.m_Connection; - init => __Trait0.m_Connection = value; - } - - private System.Boolean m_Disposed - { - get => __Trait0.m_Disposed; - set => __Trait0.m_Disposed = value; - } - - private MySqlConnector.MySqlTransaction m_Transaction - { - get => __Trait0.m_Transaction; - init => __Trait0.m_Transaction = value; - } - /// - /// Rolls back the transaction and disposes the underlying connection. - /// - public void Rollback() - { - __Trait0.Rollback(); - } - - /// - /// Tests the connection. - /// - public override void TestConnection() - { - __Trait0.TestConnection(); - } - - /// - /// Tests the connection asynchronously. - /// - /// - public override System.Threading.Tasks.Task TestConnectionAsync() - { - return __Trait0.TestConnectionAsync(); - } - - private void __RegisterTraits() - { - __TraitsRegistered = true; - __Trait0.Container = this; - __Trait0.DisposableContainer = this as Traits.IHasOnDispose; - } - - } -} diff --git a/Tortuga.Chain/Tortuga.Chain.MySql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.MySqlDataSource.cs b/Tortuga.Chain/Tortuga.Chain.MySql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.MySqlDataSource.cs deleted file mode 100644 index c014fb92b..000000000 --- a/Tortuga.Chain/Tortuga.Chain.MySql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.MySqlDataSource.cs +++ /dev/null @@ -1,282 +0,0 @@ -//This file was generated by Tortuga Shipwright - -namespace Tortuga.Chain -{ - partial class MySqlDataSource: Tortuga.Chain.DataSources.IRootDataSource, Traits.IHasExtensionCache - { - - private bool __TraitsRegistered; - - // These fields and/or properties hold the traits. They should not be referenced directly. - private Traits.RootDataSourceTrait ___Trait0 = new(); - private Traits.RootDataSourceTrait __Trait0 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait0; - } - } - - // Explicit interface implementation Traits.IHasExtensionCache - System.Collections.Concurrent.ConcurrentDictionary Traits.IHasExtensionCache.ExtensionCache - { - get => ((Traits.IHasExtensionCache)__Trait0).ExtensionCache; - } - // Explicit interface implementation Tortuga.Chain.DataSources.IRootDataSource - Tortuga.Chain.DataSources.ITransactionalDataSource Tortuga.Chain.DataSources.IRootDataSource.BeginTransaction() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).BeginTransaction(); - } - - System.Threading.Tasks.Task Tortuga.Chain.DataSources.IRootDataSource.BeginTransactionAsync() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).BeginTransactionAsync(); - } - - System.Data.Common.DbConnection Tortuga.Chain.DataSources.IRootDataSource.CreateConnection() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateConnection(); - } - - System.Threading.Tasks.Task Tortuga.Chain.DataSources.IRootDataSource.CreateConnectionAsync() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateConnectionAsync(); - } - - Tortuga.Chain.DataSources.IOpenDataSource Tortuga.Chain.DataSources.IRootDataSource.CreateOpenDataSource() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateOpenDataSource(); - } - - Tortuga.Chain.DataSources.IOpenDataSource Tortuga.Chain.DataSources.IRootDataSource.CreateOpenDataSource(System.Data.Common.DbConnection connection, System.Data.Common.DbTransaction? transaction) - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateOpenDataSource(connection, transaction); - } - - Tortuga.Chain.DataSources.IOpenDataSource Tortuga.Chain.DataSources.IRootDataSource.CreateOpenDataSource(System.Data.IDbConnection connection, System.Data.IDbTransaction? transaction) - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateOpenDataSource(connection, transaction); - } - - // Exposing trait Traits.RootDataSourceTrait - - /// - /// Creates a new transaction. - /// - /// - /// The caller of this method is responsible for closing the transaction. - public Tortuga.Chain.MySql.MySqlTransactionalDataSource BeginTransaction() - { - return __Trait0.BeginTransaction(); - } - - /// - /// Creates a new transaction. - /// - /// - /// - /// - /// The caller of this method is responsible for closing the transaction. - public Tortuga.Chain.MySql.MySqlTransactionalDataSource BeginTransaction(System.Nullable isolationLevel = default, System.Boolean forwardEvents = true) - { - return __Trait0.BeginTransaction(isolationLevel, forwardEvents); - } - - /// - /// Creates a new transaction. - /// - /// - /// - /// - /// - /// The caller of this method is responsible for closing the transaction. - public System.Threading.Tasks.Task BeginTransactionAsync(System.Nullable isolationLevel = default, System.Boolean forwardEvents = true, System.Threading.CancellationToken cancellationToken = default) - { - return __Trait0.BeginTransactionAsync(isolationLevel, forwardEvents, cancellationToken); - } - - /// - /// Creates a new transaction. - /// - /// - /// The caller of this method is responsible for closing the transaction. - public System.Threading.Tasks.Task BeginTransactionAsync() - { - return __Trait0.BeginTransactionAsync(); - } - - /// - /// Gets or sets the cache to be used by this data source. The default is .NET's System.Runtime.Caching.MemoryCache. - /// - public override Tortuga.Chain.Core.ICacheAdapter Cache - { - get => __Trait0.Cache; - } - /// - /// The composed connection string. - /// - /// This is created and cached by a ConnectionStringBuilder. - internal System.String ConnectionString - { - get => __Trait0.ConnectionString; - } - /// - /// Creates and opens a new Access connection - /// - /// - /// The caller of this method is responsible for closing the connection. - public MySqlConnector.MySqlConnection CreateConnection() - { - return __Trait0.CreateConnection(); - } - - /// - /// Creates the connection asynchronous. - /// - /// The cancellation token. - /// - /// - /// The caller of this method is responsible for closing the connection. - /// - public System.Threading.Tasks.Task CreateConnectionAsync(System.Threading.CancellationToken cancellationToken = default) - { - return __Trait0.CreateConnectionAsync(cancellationToken); - } - - /// - /// Creates an open data source using the supplied connection and optional transaction. - /// - /// The connection to wrap. - /// The transaction to wrap. - /// IOpenDataSource. - /// WARNING: The caller of this method is responsible for closing the connection. - public Tortuga.Chain.MySql.MySqlOpenDataSource CreateOpenDataSource(MySqlConnector.MySqlConnection connection, MySqlConnector.MySqlTransaction? transaction = default) - { - return __Trait0.CreateOpenDataSource(connection, transaction); - } - - /// - /// Creates an open data source with a new connection. - /// - /// WARNING: The caller of this method is responsible for closing the connection. - public Tortuga.Chain.MySql.MySqlOpenDataSource CreateOpenDataSource() - { - return __Trait0.CreateOpenDataSource(); - } - - /// - /// The extension cache is used by extensions to store data source specific information. - /// - /// - /// The extension cache. - /// - protected override System.Collections.Concurrent.ConcurrentDictionary ExtensionCache - { - get => __Trait0.ExtensionCache; - } - - internal Tortuga.Chain.Core.ICacheAdapter m_Cache - { - get => __Trait0.m_Cache; - set => __Trait0.m_Cache = value; - } - /// - /// This object can be used to access the database connection string. - /// - private MySqlConnector.MySqlConnectionStringBuilder m_ConnectionBuilder - { - get => __Trait0.m_ConnectionBuilder; - init => __Trait0.m_ConnectionBuilder = value; - } - - internal System.Collections.Concurrent.ConcurrentDictionary m_ExtensionCache - { - get => __Trait0.m_ExtensionCache; - set => __Trait0.m_ExtensionCache = value; - } - /// - /// Tests the connection. - /// - public override void TestConnection() - { - __Trait0.TestConnection(); - } - - /// - /// Tests the connection asynchronously. - /// - /// - public override System.Threading.Tasks.Task TestConnectionAsync() - { - return __Trait0.TestConnectionAsync(); - } - - /// - /// Creates a new data source with the provided cache. - /// - /// The cache. - /// - public Tortuga.Chain.MySqlDataSource WithCache(Tortuga.Chain.Core.ICacheAdapter cache) - { - return __Trait0.WithCache(cache); - } - - /// - /// Creates a new data source with additional audit rules. - /// - /// The additional rules. - /// - public Tortuga.Chain.MySqlDataSource WithRules(params Tortuga.Chain.AuditRules.AuditRule[] additionalRules) - { - return __Trait0.WithRules(additionalRules); - } - - /// - /// Creates a new data source with additional audit rules. - /// - /// The additional rules. - /// - public Tortuga.Chain.MySqlDataSource WithRules(System.Collections.Generic.IEnumerable additionalRules) - { - return __Trait0.WithRules(additionalRules); - } - - /// - /// Creates a new data source with the indicated user. - /// - /// The user value. - /// - /// - /// This is used in conjunction with audit rules. - /// - public Tortuga.Chain.MySqlDataSource WithUser(System.Object? userValue) - { - return __Trait0.WithUser(userValue); - } - - private partial Tortuga.Chain.MySql.MySqlTransactionalDataSource OnBeginTransaction(System.Nullable isolationLevel, System.Boolean forwardEvents ); - - private partial System.Threading.Tasks.Task OnBeginTransactionAsync(System.Nullable isolationLevel, System.Boolean forwardEvents, System.Threading.CancellationToken cancellationToken ); - - private partial Tortuga.Chain.MySqlDataSource OnCloneWithOverrides(Tortuga.Chain.Core.ICacheAdapter? cache, System.Collections.Generic.IEnumerable? additionalRules, System.Object? userValue ); - - private partial MySqlConnector.MySqlConnection OnCreateConnection( ); - - private partial System.Threading.Tasks.Task OnCreateConnectionAsync(System.Threading.CancellationToken cancellationToken ); - - private partial Tortuga.Chain.MySql.MySqlOpenDataSource OnCreateOpenDataSource(MySqlConnector.MySqlConnection connection, MySqlConnector.MySqlTransaction? transaction ); - - private void __RegisterTraits() - { - __TraitsRegistered = true; - __Trait0.OnBeginTransaction = OnBeginTransaction; - __Trait0.OnBeginTransactionAsync = OnBeginTransactionAsync; - __Trait0.OnCreateConnection = OnCreateConnection; - __Trait0.OnCreateConnectionAsync = OnCreateConnectionAsync; - __Trait0.OnCreateOpenDataSource = OnCreateOpenDataSource; - __Trait0.OnCloneWithOverrides = OnCloneWithOverrides; - } - - } -} diff --git a/Tortuga.Chain/Tortuga.Chain.MySql/Tortuga.Chain.MySql.csproj b/Tortuga.Chain/Tortuga.Chain.MySql/Tortuga.Chain.MySql.csproj index 962ce117b..bc071c035 100644 --- a/Tortuga.Chain/Tortuga.Chain.MySql/Tortuga.Chain.MySql.csproj +++ b/Tortuga.Chain/Tortuga.Chain.MySql/Tortuga.Chain.MySql.csproj @@ -77,7 +77,7 @@ - true + Generated @@ -85,7 +85,7 @@ - + diff --git a/Tortuga.Chain/Tortuga.Chain.PostgreSql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Logs.cs b/Tortuga.Chain/Tortuga.Chain.PostgreSql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Logs.cs deleted file mode 100644 index 368b853e6..000000000 --- a/Tortuga.Chain/Tortuga.Chain.PostgreSql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Logs.cs +++ /dev/null @@ -1,33 +0,0 @@ -/* -Container class: Tortuga.Chain.PostgreSqlDataSource - Adding trait: Traits.RootDataSourceTrait -Container class: Tortuga.Chain.PostgreSql.PostgreSqlDataSourceBase - Adding trait: Traits.SupportsDeleteAllTrait - Adding trait: Traits.SupportsTruncateTrait - Adding trait: Traits.SupportsSqlQueriesTrait - Adding trait: Traits.SupportsInsertBatchTrait> - Adding trait: Traits.SupportsDeleteByKeyListTrait - Adding trait: Traits.SupportsUpdateTrait - Adding trait: Traits.SupportsDeleteTrait - Adding trait: Traits.SupportsUpdateByKeyListTrait - Adding trait: Traits.SupportsInsertTrait - Adding trait: Traits.SupportsUpdateSet - Adding trait: Traits.SupportsDeleteSet - Adding trait: Traits.SupportsFromTrait - Adding trait: Traits.SupportsGetByKeyListTrait - Adding trait: Traits.SupportsUpsertTrait - Adding trait: Traits.SupportsInsertBulkTrait - Adding trait: Traits.SupportsScalarFunctionTrait - Adding trait: Traits.SupportsProcedureTrait - Adding trait: Traits.SupportsTableFunctionTrait - Adding trait: Traits.SupportsGetByColumnListTrait -Container class: Tortuga.Chain.PostgreSql.PostgreSqlOpenDataSource - Adding trait: Traits.OpenDataSourceTrait -Container class: Tortuga.Chain.PostgreSql.PostgreSqlTransactionalDataSource - Adding trait: Traits.TransactionalDataSourceTrait -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Traits.IHasExtensionCache.get_ExtensionCache -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Tortuga.Chain.DataSources.IOpenDataSource.get_AssociatedConnection -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Tortuga.Chain.DataSources.IOpenDataSource.get_AssociatedTransaction -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Tortuga.Chain.DataSources.IOpenDataSource.get_AssociatedConnection -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Tortuga.Chain.DataSources.IOpenDataSource.get_AssociatedTransaction -*/ \ No newline at end of file diff --git a/Tortuga.Chain/Tortuga.Chain.PostgreSql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.PostgreSql.PostgreSqlDataSourceBase.cs b/Tortuga.Chain/Tortuga.Chain.PostgreSql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.PostgreSql.PostgreSqlDataSourceBase.cs deleted file mode 100644 index 58831a063..000000000 --- a/Tortuga.Chain/Tortuga.Chain.PostgreSql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.PostgreSql.PostgreSqlDataSourceBase.cs +++ /dev/null @@ -1,1693 +0,0 @@ -//This file was generated by Tortuga Shipwright - -namespace Tortuga.Chain.PostgreSql -{ - partial class PostgreSqlDataSourceBase: Tortuga.Chain.DataSources.ISupportsDeleteAll, Tortuga.Chain.DataSources.ISupportsTruncate, Tortuga.Chain.DataSources.ISupportsSqlQueries, Tortuga.Chain.DataSources.ISupportsInsertBatch, Tortuga.Chain.DataSources.ISupportsDeleteByKeyList, Tortuga.Chain.DataSources.ISupportsDeleteByKey, Tortuga.Chain.DataSources.ISupportsUpdate, Tortuga.Chain.DataSources.ISupportsDelete, Tortuga.Chain.DataSources.ISupportsUpdateByKey, Tortuga.Chain.DataSources.ISupportsUpdateByKeyList, Tortuga.Chain.DataSources.ISupportsInsert, Tortuga.Chain.DataSources.ISupportsUpdateSet, Tortuga.Chain.DataSources.ISupportsDeleteSet, Tortuga.Chain.DataSources.ISupportsFrom, Tortuga.Chain.DataSources.ISupportsGetByKeyList, Tortuga.Chain.DataSources.ISupportsGetByKey, Tortuga.Chain.DataSources.ISupportsUpsert, Tortuga.Chain.DataSources.ISupportsInsertBulk, Tortuga.Chain.DataSources.ISupportsScalarFunction, Tortuga.Chain.DataSources.ISupportsProcedure, Tortuga.Chain.DataSources.ISupportsTableFunction, Tortuga.Chain.DataSources.ISupportsGetByColumnList, Tortuga.Chain.DataSources.ISupportsGetByColumn, Traits.ICommandHelper, Traits.IInsertBatchHelper, Traits.IUpdateDeleteByKeyHelper, Traits.IUpdateDeleteHelper, Traits.IInsertHelper, Traits.IUpdateDeleteSetHelper, Traits.IFromHelper, Traits.IGetByKeyHelper, Traits.IUpsertHelper, Traits.IInsertBulkHelper, Traits.ICommandHelper - { - - private bool __TraitsRegistered; - - // These fields and/or properties hold the traits. They should not be referenced directly. - private Traits.SupportsDeleteAllTrait ___Trait0 = new(); - private Traits.SupportsDeleteAllTrait __Trait0 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait0; - } - } - private Traits.SupportsTruncateTrait ___Trait1 = new(); - private Traits.SupportsTruncateTrait __Trait1 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait1; - } - } - private Traits.SupportsSqlQueriesTrait ___Trait2 = new(); - private Traits.SupportsSqlQueriesTrait __Trait2 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait2; - } - } - private Traits.SupportsInsertBatchTrait> ___Trait3 = new(); - private Traits.SupportsInsertBatchTrait> __Trait3 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait3; - } - } - private Traits.SupportsDeleteByKeyListTrait ___Trait4 = new(); - private Traits.SupportsDeleteByKeyListTrait __Trait4 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait4; - } - } - private Traits.SupportsUpdateTrait ___Trait5 = new(); - private Traits.SupportsUpdateTrait __Trait5 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait5; - } - } - private Traits.SupportsDeleteTrait ___Trait6 = new(); - private Traits.SupportsDeleteTrait __Trait6 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait6; - } - } - private Traits.SupportsUpdateByKeyListTrait ___Trait7 = new(); - private Traits.SupportsUpdateByKeyListTrait __Trait7 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait7; - } - } - private Traits.SupportsInsertTrait ___Trait8 = new(); - private Traits.SupportsInsertTrait __Trait8 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait8; - } - } - private Traits.SupportsUpdateSet ___Trait9 = new(); - private Traits.SupportsUpdateSet __Trait9 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait9; - } - } - private Traits.SupportsDeleteSet ___Trait10 = new(); - private Traits.SupportsDeleteSet __Trait10 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait10; - } - } - private Traits.SupportsFromTrait ___Trait11 = new(); - private Traits.SupportsFromTrait __Trait11 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait11; - } - } - private Traits.SupportsGetByKeyListTrait ___Trait12 = new(); - private Traits.SupportsGetByKeyListTrait __Trait12 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait12; - } - } - private Traits.SupportsUpsertTrait ___Trait13 = new(); - private Traits.SupportsUpsertTrait __Trait13 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait13; - } - } - private Traits.SupportsInsertBulkTrait ___Trait14 = new(); - private Traits.SupportsInsertBulkTrait __Trait14 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait14; - } - } - private Traits.SupportsScalarFunctionTrait ___Trait15 = new(); - private Traits.SupportsScalarFunctionTrait __Trait15 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait15; - } - } - private Traits.SupportsProcedureTrait ___Trait16 = new(); - private Traits.SupportsProcedureTrait __Trait16 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait16; - } - } - private Traits.SupportsTableFunctionTrait ___Trait17 = new(); - private Traits.SupportsTableFunctionTrait __Trait17 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait17; - } - } - private Traits.SupportsGetByColumnListTrait ___Trait18 = new(); - private Traits.SupportsGetByColumnListTrait __Trait18 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait18; - } - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDelete - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDelete.Delete(System.String tableName, TArgument argumentValue, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDelete)__Trait6).Delete(tableName, argumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDelete.Delete(TArgument argumentValue, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDelete)__Trait6).Delete(argumentValue, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDeleteAll - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsDeleteAll.DeleteAll(System.String tableName) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteAll)__Trait0).DeleteAll(tableName); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsDeleteAll.DeleteAll() - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteAll)__Trait0).DeleteAll(); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDeleteByKey - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteByKey.DeleteByKey(System.String tableName, TKey key, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteByKey)__Trait4).DeleteByKey(tableName, key, options); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteByKey.DeleteByKey(System.String tableName, System.String key, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteByKey)__Trait4).DeleteByKey(tableName, key, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDeleteByKeyList - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteByKeyList.DeleteByKeyList(System.String tableName, System.Collections.Generic.IEnumerable keys, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteByKeyList)__Trait4).DeleteByKeyList(tableName, keys, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDeleteSet - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteSet.DeleteSet(System.String tableName, System.String whereClause) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteSet)__Trait10).DeleteSet(tableName, whereClause); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteSet.DeleteSet(System.String tableName, System.String whereClause, System.Object? argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteSet)__Trait10).DeleteSet(tableName, whereClause, argumentValue); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteSet.DeleteSet(System.String tableName, System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteSet)__Trait10).DeleteSet(tableName, filterValue, filterOptions); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsFrom - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String tableOrViewName) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(tableOrViewName); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String tableOrViewName, System.String whereClause) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(tableOrViewName, whereClause); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String tableOrViewName, System.String whereClause, System.Object argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(tableOrViewName, whereClause, argumentValue); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String tableOrViewName, System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(tableOrViewName, filterValue, filterOptions); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From() - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String whereClause) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(whereClause); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String whereClause, System.Object argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(whereClause, argumentValue); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.Object filterValue) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(filterValue); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsGetByColumn - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String tableName, System.String columnName, TKey key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait18).GetByColumn(tableName, columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String tableName, System.String columnName, System.String key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait18).GetByColumn(tableName, columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, TKey key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait18).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.String key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait18).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.Int16 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait18).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.Int32 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait18).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.Int64 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait18).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.Guid key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait18).GetByColumn(columnName, key); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsGetByColumnList - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String tableName, System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait18).GetByColumnList(tableName, columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait18).GetByColumnList(columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait18).GetByColumnList(columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait18).GetByColumnList(columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait18).GetByColumnList(columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait18).GetByColumnList(columnName, keys); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsGetByKey - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.String tableName, TKey key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(tableName, key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.String tableName, System.String key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(tableName, key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(TKey key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.String key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.Int16 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.Int32 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.Int64 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.Guid key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(key); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsGetByKeyList - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.String tableName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(tableName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(keys); - } - - [System.Obsolete(@"This will be replaced by GetByColumn")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.String tableName, System.String keyColumn, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(tableName, keyColumn, keys); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsInsert - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsInsert.Insert(System.String tableName, TArgument argumentValue, Tortuga.Chain.InsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsInsert)__Trait8).Insert(tableName, argumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsInsert.Insert(TArgument argumentValue, Tortuga.Chain.InsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsInsert)__Trait8).Insert(argumentValue, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsInsertBatch - Tortuga.Chain.CommandBuilders.IDbCommandBuilder Tortuga.Chain.DataSources.ISupportsInsertBatch.InsertBatch(System.Collections.Generic.IEnumerable objects, Tortuga.Chain.InsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBatch)__Trait3).InsertBatch(objects, options); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBatch.InsertMultipleBatch(System.String tableName, System.Collections.Generic.IReadOnlyList objects, Tortuga.Chain.InsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBatch)__Trait3).InsertMultipleBatch(tableName, objects, options); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBatch.InsertMultipleBatch(System.Collections.Generic.IReadOnlyList objects, Tortuga.Chain.InsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBatch)__Trait3).InsertMultipleBatch(objects, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsInsertBulk - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBulk.InsertBulk(System.String tableName, System.Data.DataTable dataTable) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBulk)__Trait14).InsertBulk(tableName, dataTable); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBulk.InsertBulk(System.String tableName, System.Data.IDataReader dataReader) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBulk)__Trait14).InsertBulk(tableName, dataReader); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBulk.InsertBulk(System.String tableName, System.Collections.Generic.IEnumerable objects) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBulk)__Trait14).InsertBulk(tableName, objects); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBulk.InsertBulk(System.Data.DataTable dataTable) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBulk)__Trait14).InsertBulk(dataTable); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBulk.InsertBulk(System.Data.IDataReader dataReader) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBulk)__Trait14).InsertBulk(dataReader); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBulk.InsertBulk(System.Collections.Generic.IEnumerable objects) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBulk)__Trait14).InsertBulk(objects); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsProcedure - Tortuga.Chain.CommandBuilders.IProcedureDbCommandBuilder Tortuga.Chain.DataSources.ISupportsProcedure.Procedure(System.String procedureName) - { - return ((Tortuga.Chain.DataSources.ISupportsProcedure)__Trait16).Procedure(procedureName); - } - - Tortuga.Chain.CommandBuilders.IProcedureDbCommandBuilder Tortuga.Chain.DataSources.ISupportsProcedure.Procedure(System.String procedureName, System.Object argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsProcedure)__Trait16).Procedure(procedureName, argumentValue); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsScalarFunction - Tortuga.Chain.CommandBuilders.IScalarDbCommandBuilder Tortuga.Chain.DataSources.ISupportsScalarFunction.ScalarFunction(System.String scalarFunctionName) - { - return ((Tortuga.Chain.DataSources.ISupportsScalarFunction)__Trait15).ScalarFunction(scalarFunctionName); - } - - Tortuga.Chain.CommandBuilders.IScalarDbCommandBuilder Tortuga.Chain.DataSources.ISupportsScalarFunction.ScalarFunction(System.String scalarFunctionName, System.Object functionArgumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsScalarFunction)__Trait15).ScalarFunction(scalarFunctionName, functionArgumentValue); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsSqlQueries - Tortuga.Chain.CommandBuilders.IMultipleTableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsSqlQueries.Sql(System.String sqlStatement, System.Object argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsSqlQueries)__Trait2).Sql(sqlStatement, argumentValue); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsTableFunction - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsTableFunction.TableFunction(System.String functionName) - { - return ((Tortuga.Chain.DataSources.ISupportsTableFunction)__Trait17).TableFunction(functionName); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsTableFunction.TableFunction(System.String functionName, System.Object functionArgumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsTableFunction)__Trait17).TableFunction(functionName, functionArgumentValue); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsTruncate - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsTruncate.Truncate(System.String tableName) - { - return ((Tortuga.Chain.DataSources.ISupportsTruncate)__Trait1).Truncate(tableName); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsTruncate.Truncate() - { - return ((Tortuga.Chain.DataSources.ISupportsTruncate)__Trait1).Truncate(); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpdate - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdate.Update(System.String tableName, TArgument argumentValue, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdate)__Trait5).Update(tableName, argumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdate.Update(TArgument argumentValue, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdate)__Trait5).Update(argumentValue, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpdateByKey - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateByKey.UpdateByKey(System.String tableName, TArgument newValues, TKey key, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateByKey)__Trait7).UpdateByKey(tableName, newValues, key, options); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateByKey.UpdateByKey(System.String tableName, TArgument newValues, System.String key, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateByKey)__Trait7).UpdateByKey(tableName, newValues, key, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpdateByKeyList - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateByKeyList.UpdateByKeyList(System.String tableName, TArgument newValues, System.Collections.Generic.IEnumerable keys, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateByKeyList)__Trait7).UpdateByKeyList(tableName, newValues, keys, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpdateSet - Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateSet.UpdateSet(System.String tableName, System.String updateExpression, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateSet)__Trait9).UpdateSet(tableName, updateExpression, options); - } - - Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateSet.UpdateSet(System.String tableName, System.String updateExpression, System.Object? updateArgumentValue, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateSet)__Trait9).UpdateSet(tableName, updateExpression, updateArgumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateSet.UpdateSet(System.String tableName, System.Object newValues, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateSet)__Trait9).UpdateSet(tableName, newValues, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpsert - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpsert.Upsert(System.String tableName, TArgument argumentValue, Tortuga.Chain.UpsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpsert)__Trait13).Upsert(tableName, argumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpsert.Upsert(TArgument argumentValue, Tortuga.Chain.UpsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpsert)__Trait13).Upsert(argumentValue, options); - } - - // Exposing trait Traits.SupportsDeleteAllTrait - - /// Deletes all records in the specified table. - /// Name of the table to clear. - /// The number of rows deleted or null if the database doesn't provide that information. - public Tortuga.Chain.ILink DeleteAll(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableName) - { - return __Trait0.DeleteAll(tableName); - } - - /// Deletes all records in the specified table. - /// This class used to determine which table to clear - /// The number of rows deleted or null if the database doesn't provide that information. - public Tortuga.Chain.ILink DeleteAll()where TObject : class - { - return __Trait0.DeleteAll(); - } - - // Exposing trait Traits.SupportsDeleteByKeyListTrait - - /// - /// Delete a record by its primary key. - /// - /// - /// Name of the table. - /// The key. - /// The options. - /// MultipleRowDbCommandBuilder<TCommand, TParameter>. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableName, T key, Tortuga.Chain.DeleteOptions options = 0)where T : struct - { - return __Trait4.DeleteByKey(tableName, key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Name of the table. - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableName, System.String key, Tortuga.Chain.DeleteOptions options = 0) - { - return __Trait4.DeleteByKey(tableName, key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Used to determine the table name - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(System.Guid key, Tortuga.Chain.DeleteOptions options = 0)where TObject : class - { - return __Trait4.DeleteByKey(key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Used to determine the table name - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(System.Int64 key, Tortuga.Chain.DeleteOptions options = 0)where TObject : class - { - return __Trait4.DeleteByKey(key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Used to determine the table name - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(System.Int32 key, Tortuga.Chain.DeleteOptions options = 0)where TObject : class - { - return __Trait4.DeleteByKey(key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Used to determine the table name - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(System.String key, Tortuga.Chain.DeleteOptions options = 0)where TObject : class - { - return __Trait4.DeleteByKey(key, options); - } - - /// - /// Delete multiple rows by key. - /// - /// The type of the t key. - /// Name of the table. - /// The keys. - /// Delete options. - /// - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteByKeyList(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableName, System.Collections.Generic.IEnumerable keys, Tortuga.Chain.DeleteOptions options = 0) - { - return __Trait4.DeleteByKeyList(tableName, keys, options); - } - - // Exposing trait Traits.SupportsDeleteSet - - /// - /// Delete multiple records using a filter object. - /// - /// Name of the table. - /// The filter value. - /// The options. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteSet(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableName, System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions = 0) - { - return __Trait10.DeleteSet(tableName, filterValue, filterOptions); - } - - /// - /// Delete multiple records using a filter object. - /// - /// The filter value. - /// The options. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteSet(System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions = 0)where TObject : class - { - return __Trait10.DeleteSet(filterValue, filterOptions); - } - - /// - /// Delete multiple records using a where expression. - /// - /// Name of the table. - /// The where clause. - /// The argument value for the where clause. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteSet(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableName, System.String whereClause, System.Object? argumentValue = default) - { - return __Trait10.DeleteSet(tableName, whereClause, argumentValue); - } - - /// - /// Delete multiple records using a where expression. - /// - /// The where clause. - /// The argument value for the where clause. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteSet(System.String whereClause, System.Object? argumentValue = default)where TObject : class - { - return __Trait10.DeleteSet(whereClause, argumentValue); - } - - // Exposing trait Traits.SupportsDeleteTrait - - /// - /// Creates a command to perform a delete operation. - /// - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Delete(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableName, TArgument argumentValue, Tortuga.Chain.DeleteOptions options = 0)where TArgument : class - { - return __Trait6.Delete(tableName, argumentValue, options); - } - - /// - /// Delete an object model from the table indicated by the class's Table attribute. - /// - /// - /// The argument value. - /// The delete options. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Delete(TArgument argumentValue, Tortuga.Chain.DeleteOptions options = 0)where TArgument : class - { - return __Trait6.Delete(argumentValue, options); - } - - // Exposing trait Traits.SupportsFromTrait - - /// - /// Creates an operation to directly query a table or view - /// - /// - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableOrViewName) - { - return __Trait11.From(tableOrViewName); - } - - /// - /// Creates an operation to directly query a table or view - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableOrViewName, System.String whereClause) - { - return __Trait11.From(tableOrViewName, whereClause); - } - - /// - /// Creates an operation to directly query a table or view - /// - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableOrViewName, System.String whereClause, System.Object argumentValue) - { - return __Trait11.From(tableOrViewName, whereClause, argumentValue); - } - - /// - /// Creates an operation to directly query a table or view - /// - /// Name of the table or view. - /// The filter value. - /// The filter options. - /// TableDbCommandBuilder<TCommand, TParameter, TLimitOption>. - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableOrViewName, System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions = 0) - { - return __Trait11.From(tableOrViewName, filterValue, filterOptions); - } - - /// - /// This is used to directly query a table or view. - /// - /// - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From()where TObject : class - { - return __Trait11.From(); - } - - /// - /// This is used to directly query a table or view. - /// - /// The type of the object. - /// The where clause. Do not prefix this clause with "WHERE". - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(System.String whereClause)where TObject : class - { - return __Trait11.From(whereClause); - } - - /// - /// This is used to directly query a table or view. - /// - /// The type of the object. - /// The where clause. Do not prefix this clause with "WHERE". - /// Optional argument value. Every property in the argument value must have a matching parameter in the WHERE clause - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(System.String whereClause, System.Object argumentValue)where TObject : class - { - return __Trait11.From(whereClause, argumentValue); - } - - /// - /// This is used to directly query a table or view. - /// - /// The type of the object. - /// The filter value is used to generate a simple AND style WHERE clause. - /// The filter options. - /// TableDbCommandBuilder<TCommand, TParameter, TLimitOption, TObject>. - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions = 0)where TObject : class - { - return __Trait11.From(filterValue, filterOptions); - } - - // Exposing trait Traits.SupportsGetByColumnListTrait - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. Used to determine which table will be read. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.Guid key)where TObject : class - { - return __Trait18.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.Int64 key)where TObject : class - { - return __Trait18.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.Int16 key)where TObject : class - { - return __Trait18.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.Int32 key)where TObject : class - { - return __Trait18.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.String key)where TObject : class - { - return __Trait18.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The type of the key. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, TKey key)where TObject : class - { - return __Trait18.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// Name of the table. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableName, System.String columnName, System.String key) - { - return __Trait18.GetByColumn(tableName, columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// - /// Name of the table. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableName, System.String columnName, TKey key) - { - return __Trait18.GetByColumn(tableName, columnName, key); - } - - /// - /// Gets a set of records by their primary key. - /// - /// - /// Name of the table. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableName, System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return __Trait18.GetByColumnList(tableName, columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The type of the key. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait18.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait18.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait18.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait18.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait18.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait18.GetByColumnList(columnName, keys); - } - - // Exposing trait Traits.SupportsGetByKeyListTrait - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. Used to determine which table will be read. - /// The key. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.Guid key)where TObject : class - { - return __Trait12.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The key. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.Int64 key)where TObject : class - { - return __Trait12.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The key. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.Int16 key)where TObject : class - { - return __Trait12.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The key. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.Int32 key)where TObject : class - { - return __Trait12.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The key. - /// - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.String key)where TObject : class - { - return __Trait12.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The type of the key. - /// The key. - /// - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(TKey key)where TObject : class - { - return __Trait12.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// Name of the table. - /// The key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableName, System.String key) - { - return __Trait12.GetByKey(tableName, key); - } - - /// - /// Gets a record by its primary key. - /// - /// - /// Name of the table. - /// The key. - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableName, TKey key) - { - return __Trait12.GetByKey(tableName, key); - } - - /// - /// Gets a set of records by their primary key. - /// - /// - /// Name of the table. - /// The keys. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableName, System.Collections.Generic.IEnumerable keys) - { - return __Trait12.GetByKeyList(tableName, keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The type of the key. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait12.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait12.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait12.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait12.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait12.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait12.GetByKeyList(keys); - } - - /// Gets a set of records by an unique key. - /// The type of the t key. - /// Name of the table. - /// Name of the key column. This should be a primary or unique key, but that's not enforced. - /// The keys. - /// IMultipleRowDbCommandBuilder. - [System.Obsolete(@"This will be replaced by GetByColumn")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.String tableName, System.String keyColumn, System.Collections.Generic.IEnumerable keys) - { - return __Trait12.GetByKeyList(tableName, keyColumn, keys); - } - - // Exposing trait Traits.SupportsInsertBatchTrait> - - /// - /// Inserts the batch of records as one operation. - /// - /// - /// Name of the table. - /// The objects to insert. - /// The options. - /// MultipleRowDbCommandBuilder<SqlCommand, SqlParameter>. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder InsertBatch(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableName, System.Collections.Generic.IEnumerable objects, Tortuga.Chain.InsertOptions options = 0)where TObject : class - { - return __Trait3.InsertBatch(tableName, objects, options); - } - - /// - /// Inserts the batch of records as one operation. - /// - /// - /// The objects to insert. - /// The options. - /// MultipleRowDbCommandBuilder<SqlCommand, SqlParameter>. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder InsertBatch(System.Collections.Generic.IEnumerable objects, Tortuga.Chain.InsertOptions options = 0)where TObject : class - { - return __Trait3.InsertBatch(objects, options); - } - - /// - /// Performs a series of batch inserts. - /// - /// The type of the t object. - /// Name of the table. - /// The objects. - /// The options. - /// Tortuga.Chain.ILink<System.Int32>. - /// This operation is not atomic. It should be wrapped in a transaction. - public Tortuga.Chain.ILink InsertMultipleBatch(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableName, System.Collections.Generic.IEnumerable objects, Tortuga.Chain.InsertOptions options = 0)where TObject : class - { - return __Trait3.InsertMultipleBatch(tableName, objects, options); - } - - /// - /// Inserts the batch of records as one operation. - /// - /// - /// The objects to insert. - /// The options. - /// MultipleRowDbCommandBuilder<SqlCommand, SqlParameter>. - public Tortuga.Chain.ILink InsertMultipleBatch(System.Collections.Generic.IReadOnlyList objects, Tortuga.Chain.InsertOptions options = 0)where TObject : class - { - return __Trait3.InsertMultipleBatch(objects, options); - } - - // Exposing trait Traits.SupportsInsertBulkTrait - - /// - /// Inserts the batch of records using bulk insert. - /// - /// Name of the table. - /// The data table. - /// TInsertBulkCommand. - public Tortuga.Chain.PostgreSql.CommandBuilders.PostgreSqlInsertBulk InsertBulk(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableName, System.Data.DataTable dataTable) - { - return __Trait14.InsertBulk(tableName, dataTable); - } - - /// - /// Inserts the batch of records using bulk insert. - /// - /// Name of the table. - /// The data reader. - /// TInsertBulkCommand. - public Tortuga.Chain.PostgreSql.CommandBuilders.PostgreSqlInsertBulk InsertBulk(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableName, System.Data.IDataReader dataReader) - { - return __Trait14.InsertBulk(tableName, dataReader); - } - - /// - /// Inserts the batch of records using bulk insert. - /// - /// - /// Name of the table. - /// The objects. - /// TInsertBulkCommand. - public Tortuga.Chain.PostgreSql.CommandBuilders.PostgreSqlInsertBulk InsertBulk(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableName, System.Collections.Generic.IEnumerable objects)where TObject : class - { - return __Trait14.InsertBulk(tableName, objects); - } - - /// - /// Inserts the batch of records using bulk insert. - /// - /// The type of the object. - /// The data table. - /// - /// TInsertBulkCommand. - /// - public Tortuga.Chain.PostgreSql.CommandBuilders.PostgreSqlInsertBulk InsertBulk(System.Data.DataTable dataTable)where TObject : class - { - return __Trait14.InsertBulk(dataTable); - } - - /// - /// Inserts the batch of records using bulk insert. - /// - /// The type of the object. - /// The data reader. - /// - /// TInsertBulkCommand. - /// - public Tortuga.Chain.PostgreSql.CommandBuilders.PostgreSqlInsertBulk InsertBulk(System.Data.IDataReader dataReader)where TObject : class - { - return __Trait14.InsertBulk(dataReader); - } - - /// - /// Inserts the batch of records using bulk insert. - /// - /// The type of the object. - /// The objects. - /// - /// TInsertBulkCommand. - /// - public Tortuga.Chain.PostgreSql.CommandBuilders.PostgreSqlInsertBulk InsertBulk(System.Collections.Generic.IEnumerable objects)where TObject : class - { - return __Trait14.InsertBulk(objects); - } - - // Exposing trait Traits.SupportsInsertTrait - - /// - /// Inserts an object into the specified table. - /// - /// - /// The argument value. - /// The options for how the insert occurs. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Insert(TArgument argumentValue, Tortuga.Chain.InsertOptions options = 0)where TArgument : class - { - return __Trait8.Insert(argumentValue, options); - } - - /// - /// Creates an operation used to perform an insert operation. - /// - /// Name of the table. - /// The argument value. - /// The options. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Insert(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableName, TArgument argumentValue, Tortuga.Chain.InsertOptions options = 0)where TArgument : class - { - return __Trait8.Insert(tableName, argumentValue, options); - } - - // Exposing trait Traits.SupportsProcedureTrait - - /// - /// Loads a procedure definition - /// - /// Name of the procedure. - /// - public Tortuga.Chain.CommandBuilders.ProcedureDbCommandBuilder Procedure(Tortuga.Chain.PostgreSql.PostgreSqlObjectName procedureName) - { - return __Trait16.Procedure(procedureName); - } - - /// - /// Loads a procedure definition and populates it using the parameter object. - /// - /// Name of the procedure. - /// The argument value. - /// - /// - /// The procedure's definition is loaded from the database and used to determine which properties on the parameter object to use. - /// - public Tortuga.Chain.CommandBuilders.ProcedureDbCommandBuilder Procedure(Tortuga.Chain.PostgreSql.PostgreSqlObjectName procedureName, System.Object argumentValue) - { - return __Trait16.Procedure(procedureName, argumentValue); - } - - // Exposing trait Traits.SupportsScalarFunctionTrait - - /// - /// This is used to query a scalar function. - /// - /// Name of the scalar function. - /// - public Tortuga.Chain.CommandBuilders.ScalarDbCommandBuilder ScalarFunction(Tortuga.Chain.PostgreSql.PostgreSqlObjectName scalarFunctionName) - { - return __Trait15.ScalarFunction(scalarFunctionName); - } - - /// - /// This is used to query a scalar function. - /// - /// Name of the scalar function. - /// The function argument. - /// - public Tortuga.Chain.CommandBuilders.ScalarDbCommandBuilder ScalarFunction(Tortuga.Chain.PostgreSql.PostgreSqlObjectName scalarFunctionName, System.Object functionArgumentValue) - { - return __Trait15.ScalarFunction(scalarFunctionName, functionArgumentValue); - } - - // Exposing trait Traits.SupportsSqlQueriesTrait - - /// - /// Creates a operation based on a raw SQL statement. - /// - /// The SQL statement. - /// - public Tortuga.Chain.CommandBuilders.MultipleTableDbCommandBuilder Sql(System.String sqlStatement) - { - return __Trait2.Sql(sqlStatement); - } - - /// - /// Creates a operation based on a raw SQL statement. - /// - /// The SQL statement. - /// The argument value. - /// SqlServerSqlCall. - public Tortuga.Chain.CommandBuilders.MultipleTableDbCommandBuilder Sql(System.String sqlStatement, System.Object argumentValue) - { - return __Trait2.Sql(sqlStatement, argumentValue); - } - - // Exposing trait Traits.SupportsTableFunctionTrait - - /// - /// This is used to query a table valued function. - /// - /// Name of the table function. - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder TableFunction(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableFunctionName) - { - return __Trait17.TableFunction(tableFunctionName); - } - - /// - /// This is used to query a table valued function. - /// - /// Name of the table function. - /// The function argument. - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder TableFunction(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableFunctionName, System.Object functionArgumentValue) - { - return __Trait17.TableFunction(tableFunctionName, functionArgumentValue); - } - - // Exposing trait Traits.SupportsTruncateTrait - - /// Truncates the specified table. - /// Name of the table to Truncate. - /// The number of rows deleted or null if the database doesn't provide that information. - public Tortuga.Chain.ILink Truncate(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableName) - { - return __Trait1.Truncate(tableName); - } - - /// Truncates the specified table. - /// This class used to determine which table to Truncate - /// The number of rows deleted or null if the database doesn't provide that information. - public Tortuga.Chain.ILink Truncate()where TObject : class - { - return __Trait1.Truncate(); - } - - // Exposing trait Traits.SupportsUpdateByKeyListTrait - - /// - /// Update a record by its primary key. - /// - /// The type of the t argument. - /// - /// Name of the table. - /// The new values to use. - /// The key. - /// The options. - /// MultipleRowDbCommandBuilder<AbstractCommand, AbstractParameter>. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder UpdateByKey(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableName, TArgument newValues, TKey key, Tortuga.Chain.UpdateOptions options = 0)where TKey : struct - { - return __Trait7.UpdateByKey(tableName, newValues, key, options); - } - - /// - /// Update a record by its primary key. - /// - /// The type of the t argument. - /// Name of the table. - /// The new values to use. - /// The key. - /// The options. - /// MultipleRowDbCommandBuilder<OleDbCommand, OleDbParameter>. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder UpdateByKey(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableName, TArgument newValues, System.String key, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait7.UpdateByKey(tableName, newValues, key, options); - } - - /// - /// Update multiple rows by key. - /// - /// The type of the t argument. - /// The type of the t key. - /// Name of the table. - /// The new values to use. - /// The keys. - /// Update options. - /// MultipleRowDbCommandBuilder<OleDbCommand, OleDbParameter>. - /// - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder UpdateByKeyList(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableName, TArgument newValues, System.Collections.Generic.IEnumerable keys, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait7.UpdateByKeyList(tableName, newValues, keys, options); - } - - // Exposing trait Traits.SupportsUpdateSet - - /// - /// Update multiple records using an update expression. - /// - /// Name of the table. - /// The update expression. - /// The argument value. - /// The update options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableName, System.String updateExpression, System.Object? updateArgumentValue, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait9.UpdateSet(tableName, updateExpression, updateArgumentValue, options); - } - - /// - /// Update multiple records using an update value. - /// - /// Name of the table. - /// The new values to use. - /// The options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableName, System.Object newValues, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait9.UpdateSet(tableName, newValues, options); - } - - /// - /// Update multiple records using an update expression. - /// - /// Name of the table. - /// The update expression. - /// The update options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableName, System.String updateExpression, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait9.UpdateSet(tableName, updateExpression, options); - } - - /// - /// Update multiple records using an update expression. - /// - /// Class used to determine the table name. - /// The update expression. - /// The argument for the update expression. - /// The update options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(System.String updateExpression, System.Object updateArgumentValue, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait9.UpdateSet(updateExpression, updateArgumentValue, options); - } - - /// - /// Update multiple records using an update value. - /// - /// Class used to determine the table name. - /// The new values to use. - /// The options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(System.Object newValues, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait9.UpdateSet(newValues, options); - } - - /// - /// Update multiple records using an update expression. - /// - /// Class used to determine the table name. - /// The update expression. - /// The update options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(System.String updateExpression, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait9.UpdateSet(updateExpression, options); - } - - // Exposing trait Traits.SupportsUpdateTrait - - /// - /// Update an object in the specified table. - /// - /// - /// The argument value. - /// The update options. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Update(TArgument argumentValue, Tortuga.Chain.UpdateOptions options = 0)where TArgument : class - { - return __Trait5.Update(argumentValue, options); - } - - /// - /// Update an object in the specified table. - /// - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Update(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableName, TArgument argumentValue, Tortuga.Chain.UpdateOptions options = 0)where TArgument : class - { - return __Trait5.Update(tableName, argumentValue, options); - } - - // Exposing trait Traits.SupportsUpsertTrait - - /// - /// Creates a operation used to perform an "upsert" operation. - /// - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Upsert(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableName, TArgument argumentValue, Tortuga.Chain.UpsertOptions options = 0)where TArgument : class - { - return __Trait13.Upsert(tableName, argumentValue, options); - } - - /// - /// Perform an insert or update operation as appropriate. - /// - /// - /// The argument value. - /// The options for how the insert/update occurs. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Upsert(TArgument argumentValue, Tortuga.Chain.UpsertOptions options = 0)where TArgument : class - { - return __Trait13.Upsert(argumentValue, options); - } - - private partial Tortuga.Chain.ILink OnDeleteAll(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableName ); - - private partial Tortuga.Chain.CommandBuilders.ProcedureDbCommandBuilder OnProcedure(Tortuga.Chain.PostgreSql.PostgreSqlObjectName procedureName, System.Object? argumentValue ); - - private partial Tortuga.Chain.CommandBuilders.ScalarDbCommandBuilder OnScalarFunction(Tortuga.Chain.PostgreSql.PostgreSqlObjectName scalarFunctionName, System.Object? argumentValue ); - - private partial Tortuga.Chain.CommandBuilders.MultipleTableDbCommandBuilder OnSql(System.String sqlStatement, System.Object? argumentValue ); - - private partial Tortuga.Chain.CommandBuilders.TableDbCommandBuilder OnTableFunction(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableFunctionName, System.Object? functionArgumentValue ); - - private partial Tortuga.Chain.ILink OnTruncate(Tortuga.Chain.PostgreSql.PostgreSqlObjectName tableName ); - - private void __RegisterTraits() - { - __TraitsRegistered = true; - __Trait0.OnDeleteAll = OnDeleteAll; - __Trait0.DataSource = this; - __Trait1.OnTruncate = OnTruncate; - __Trait1.DataSource = this; - __Trait2.OnSql = OnSql; - __Trait3.DataSource = this; - __Trait4.DataSource = this; - __Trait5.DataSource = this; - __Trait6.DataSource = this; - __Trait7.DataSource = this; - __Trait8.DataSource = this; - __Trait9.DataSource = this; - __Trait10.DataSource = this; - __Trait11.DataSource = this; - __Trait12.DataSource = this; - __Trait13.DataSource = this; - __Trait14.DataSource = this; - __Trait15.OnScalarFunction = OnScalarFunction; - __Trait15.DataSource = this; - __Trait16.OnProcedure = OnProcedure; - __Trait16.DataSource = this; - __Trait17.OnTableFunction = OnTableFunction; - __Trait17.DataSource = this; - __Trait18.DataSource = this; - } - - } -} diff --git a/Tortuga.Chain/Tortuga.Chain.PostgreSql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.PostgreSql.PostgreSqlOpenDataSource.cs b/Tortuga.Chain/Tortuga.Chain.PostgreSql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.PostgreSql.PostgreSqlOpenDataSource.cs deleted file mode 100644 index 6c9b7e376..000000000 --- a/Tortuga.Chain/Tortuga.Chain.PostgreSql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.PostgreSql.PostgreSqlOpenDataSource.cs +++ /dev/null @@ -1,192 +0,0 @@ -//This file was generated by Tortuga Shipwright - -namespace Tortuga.Chain.PostgreSql -{ - partial class PostgreSqlOpenDataSource: Tortuga.Chain.DataSources.IOpenDataSource - { - - private bool __TraitsRegistered; - - // These fields and/or properties hold the traits. They should not be referenced directly. - private Traits.OpenDataSourceTrait ___Trait0 = new(); - private Traits.OpenDataSourceTrait __Trait0 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait0; - } - } - - // Explicit interface implementation Tortuga.Chain.DataSources.IOpenDataSource - System.Data.Common.DbConnection Tortuga.Chain.DataSources.IOpenDataSource.AssociatedConnection - { - get => ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).AssociatedConnection; - } - System.Data.Common.DbTransaction? Tortuga.Chain.DataSources.IOpenDataSource.AssociatedTransaction - { - get => ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).AssociatedTransaction; - } - void Tortuga.Chain.DataSources.IOpenDataSource.Close() - { - ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).Close(); - } - - System.Boolean Tortuga.Chain.DataSources.IOpenDataSource.TryCommit() - { - return ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).TryCommit(); - } - - System.Boolean Tortuga.Chain.DataSources.IOpenDataSource.TryRollback() - { - return ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).TryRollback(); - } - - // Exposing trait Traits.OpenDataSourceTrait - - /// - /// Returns the associated connection. - /// - /// The associated connection. - public Npgsql.NpgsqlConnection AssociatedConnection - { - get => __Trait0.AssociatedConnection; - } - /// - /// Returns the associated transaction. - /// - /// The associated transaction. - public Npgsql.NpgsqlTransaction? AssociatedTransaction - { - get => __Trait0.AssociatedTransaction; - } - /// - /// Gets or sets the cache to be used by this data source. The default is .NET's System.Runtime.Caching.MemoryCache. - /// - public override Tortuga.Chain.Core.ICacheAdapter Cache - { - get => __Trait0.Cache; - } - /// - /// Closes the connection and transaction associated with this data source. - /// - public void Close() - { - __Trait0.Close(); - } - - /// - /// Gets the database metadata. - /// - public override Tortuga.Chain.PostgreSql.PostgreSqlMetadataCache DatabaseMetadata - { - get => __Trait0.DatabaseMetadata; - } - /// - /// The extension cache is used by extensions to store data source specific information. - /// - /// - /// The extension cache. - /// - protected override System.Collections.Concurrent.ConcurrentDictionary ExtensionCache - { - get => __Trait0.ExtensionCache; - } - - private Tortuga.Chain.PostgreSqlDataSource m_BaseDataSource - { - get => __Trait0.m_BaseDataSource; - init => __Trait0.m_BaseDataSource = value; - } - - private Npgsql.NpgsqlConnection m_Connection - { - get => __Trait0.m_Connection; - init => __Trait0.m_Connection = value; - } - - private Npgsql.NpgsqlTransaction? m_Transaction - { - get => __Trait0.m_Transaction; - init => __Trait0.m_Transaction = value; - } - /// - /// Tests the connection. - /// - public override void TestConnection() - { - __Trait0.TestConnection(); - } - - /// - /// Tests the connection asynchronously. - /// - /// - public override System.Threading.Tasks.Task TestConnectionAsync() - { - return __Trait0.TestConnectionAsync(); - } - - /// - /// Tries the commit the transaction associated with this data source. - /// - /// True if there was an open transaction associated with this data source, otherwise false. - public System.Boolean TryCommit() - { - return __Trait0.TryCommit(); - } - - /// - /// Tries to rollback the transaction associated with this data source. - /// - /// True if there was an open transaction associated with this data source, otherwise false. - public System.Boolean TryRollback() - { - return __Trait0.TryRollback(); - } - - /// - /// Modifies this data source with additional audit rules. - /// - /// The additional rules. - /// - public Tortuga.Chain.PostgreSql.PostgreSqlOpenDataSource WithRules(params Tortuga.Chain.AuditRules.AuditRule[] additionalRules) - { - return __Trait0.WithRules(additionalRules); - } - - /// - /// Modifies this data source with additional audit rules. - /// - /// The additional rules. - /// - public Tortuga.Chain.PostgreSql.PostgreSqlOpenDataSource WithRules(System.Collections.Generic.IEnumerable additionalRules) - { - return __Trait0.WithRules(additionalRules); - } - - /// - /// Modifies this data source to include the indicated user. - /// - /// The user value. - /// - /// - /// This is used in conjunction with audit rules. - /// - public Tortuga.Chain.PostgreSql.PostgreSqlOpenDataSource WithUser(System.Object? userValue) - { - return __Trait0.WithUser(userValue); - } - - private partial Tortuga.Chain.PostgreSql.PostgreSqlOpenDataSource OnOverride(System.Collections.Generic.IEnumerable? additionalRules, System.Object? userValue ); - - private void __RegisterTraits() - { - __TraitsRegistered = true; - __Trait0.OnOverride = OnOverride; - __Trait0.Container = this; - __Trait0.DisposableContainer = this as Traits.IHasOnDispose; - } - - } -} diff --git a/Tortuga.Chain/Tortuga.Chain.PostgreSql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.PostgreSql.PostgreSqlTransactionalDataSource.cs b/Tortuga.Chain/Tortuga.Chain.PostgreSql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.PostgreSql.PostgreSqlTransactionalDataSource.cs deleted file mode 100644 index 652a60117..000000000 --- a/Tortuga.Chain/Tortuga.Chain.PostgreSql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.PostgreSql.PostgreSqlTransactionalDataSource.cs +++ /dev/null @@ -1,181 +0,0 @@ -//This file was generated by Tortuga Shipwright - -namespace Tortuga.Chain.PostgreSql -{ - partial class PostgreSqlTransactionalDataSource: Tortuga.Chain.DataSources.ITransactionalDataSource, Tortuga.Chain.DataSources.IOpenDataSource, System.IDisposable - { - - private bool __TraitsRegistered; - - // These fields and/or properties hold the traits. They should not be referenced directly. - private Traits.TransactionalDataSourceTrait ___Trait0 = new(); - private Traits.TransactionalDataSourceTrait __Trait0 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait0; - } - } - - // Explicit interface implementation System.IDisposable - void System.IDisposable.Dispose() - { - ((System.IDisposable)__Trait0).Dispose(); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.IOpenDataSource - System.Data.Common.DbConnection Tortuga.Chain.DataSources.IOpenDataSource.AssociatedConnection - { - get => ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).AssociatedConnection; - } - System.Data.Common.DbTransaction? Tortuga.Chain.DataSources.IOpenDataSource.AssociatedTransaction - { - get => ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).AssociatedTransaction; - } - void Tortuga.Chain.DataSources.IOpenDataSource.Close() - { - ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).Close(); - } - - System.Boolean Tortuga.Chain.DataSources.IOpenDataSource.TryCommit() - { - return ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).TryCommit(); - } - - System.Boolean Tortuga.Chain.DataSources.IOpenDataSource.TryRollback() - { - return ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).TryRollback(); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ITransactionalDataSource - void Tortuga.Chain.DataSources.ITransactionalDataSource.Commit() - { - ((Tortuga.Chain.DataSources.ITransactionalDataSource)__Trait0).Commit(); - } - - // Exposing trait Traits.TransactionalDataSourceTrait - - /// - /// Returns the associated connection. - /// - /// The associated connection. - public Npgsql.NpgsqlConnection AssociatedConnection - { - get => __Trait0.AssociatedConnection; - } - /// - /// Returns the associated transaction. - /// - /// The associated transaction. - public Npgsql.NpgsqlTransaction AssociatedTransaction - { - get => __Trait0.AssociatedTransaction; - } - /// - /// Gets or sets the cache to be used by this data source. The default is .NET's System.Runtime.Caching.MemoryCache. - /// - public override Tortuga.Chain.Core.ICacheAdapter Cache - { - get => __Trait0.Cache; - } - /// - /// Commits the transaction and disposes the underlying connection. - /// - public void Commit() - { - __Trait0.Commit(); - } - - /// - /// Gets the database metadata. - /// - public override Tortuga.Chain.PostgreSql.PostgreSqlMetadataCache DatabaseMetadata - { - get => __Trait0.DatabaseMetadata; - } - /// - /// Closes the current transaction and connection. If not committed, the transaction is rolled back. - /// - public void Dispose() - { - __Trait0.Dispose(); - } - - /// - /// Closes the current transaction and connection. If not committed, the transaction is rolled back. - /// - /// - protected virtual void Dispose(System.Boolean disposing) - { - __Trait0.Dispose(disposing); - } - - /// - /// The extension cache is used by extensions to store data source specific information. - /// - /// - /// The extension cache. - /// - protected override System.Collections.Concurrent.ConcurrentDictionary ExtensionCache - { - get => __Trait0.ExtensionCache; - } - - private Tortuga.Chain.PostgreSqlDataSource m_BaseDataSource - { - get => __Trait0.m_BaseDataSource; - init => __Trait0.m_BaseDataSource = value; - } - - private Npgsql.NpgsqlConnection m_Connection - { - get => __Trait0.m_Connection; - init => __Trait0.m_Connection = value; - } - - private System.Boolean m_Disposed - { - get => __Trait0.m_Disposed; - set => __Trait0.m_Disposed = value; - } - - private Npgsql.NpgsqlTransaction m_Transaction - { - get => __Trait0.m_Transaction; - init => __Trait0.m_Transaction = value; - } - /// - /// Rolls back the transaction and disposes the underlying connection. - /// - public void Rollback() - { - __Trait0.Rollback(); - } - - /// - /// Tests the connection. - /// - public override void TestConnection() - { - __Trait0.TestConnection(); - } - - /// - /// Tests the connection asynchronously. - /// - /// - public override System.Threading.Tasks.Task TestConnectionAsync() - { - return __Trait0.TestConnectionAsync(); - } - - private void __RegisterTraits() - { - __TraitsRegistered = true; - __Trait0.Container = this; - __Trait0.DisposableContainer = this as Traits.IHasOnDispose; - } - - } -} diff --git a/Tortuga.Chain/Tortuga.Chain.PostgreSql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.PostgreSqlDataSource.cs b/Tortuga.Chain/Tortuga.Chain.PostgreSql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.PostgreSqlDataSource.cs deleted file mode 100644 index 797c77934..000000000 --- a/Tortuga.Chain/Tortuga.Chain.PostgreSql/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.PostgreSqlDataSource.cs +++ /dev/null @@ -1,282 +0,0 @@ -//This file was generated by Tortuga Shipwright - -namespace Tortuga.Chain -{ - partial class PostgreSqlDataSource: Tortuga.Chain.DataSources.IRootDataSource, Traits.IHasExtensionCache - { - - private bool __TraitsRegistered; - - // These fields and/or properties hold the traits. They should not be referenced directly. - private Traits.RootDataSourceTrait ___Trait0 = new(); - private Traits.RootDataSourceTrait __Trait0 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait0; - } - } - - // Explicit interface implementation Traits.IHasExtensionCache - System.Collections.Concurrent.ConcurrentDictionary Traits.IHasExtensionCache.ExtensionCache - { - get => ((Traits.IHasExtensionCache)__Trait0).ExtensionCache; - } - // Explicit interface implementation Tortuga.Chain.DataSources.IRootDataSource - Tortuga.Chain.DataSources.ITransactionalDataSource Tortuga.Chain.DataSources.IRootDataSource.BeginTransaction() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).BeginTransaction(); - } - - System.Threading.Tasks.Task Tortuga.Chain.DataSources.IRootDataSource.BeginTransactionAsync() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).BeginTransactionAsync(); - } - - System.Data.Common.DbConnection Tortuga.Chain.DataSources.IRootDataSource.CreateConnection() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateConnection(); - } - - System.Threading.Tasks.Task Tortuga.Chain.DataSources.IRootDataSource.CreateConnectionAsync() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateConnectionAsync(); - } - - Tortuga.Chain.DataSources.IOpenDataSource Tortuga.Chain.DataSources.IRootDataSource.CreateOpenDataSource() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateOpenDataSource(); - } - - Tortuga.Chain.DataSources.IOpenDataSource Tortuga.Chain.DataSources.IRootDataSource.CreateOpenDataSource(System.Data.Common.DbConnection connection, System.Data.Common.DbTransaction? transaction) - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateOpenDataSource(connection, transaction); - } - - Tortuga.Chain.DataSources.IOpenDataSource Tortuga.Chain.DataSources.IRootDataSource.CreateOpenDataSource(System.Data.IDbConnection connection, System.Data.IDbTransaction? transaction) - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateOpenDataSource(connection, transaction); - } - - // Exposing trait Traits.RootDataSourceTrait - - /// - /// Creates a new transaction. - /// - /// - /// The caller of this method is responsible for closing the transaction. - public Tortuga.Chain.PostgreSql.PostgreSqlTransactionalDataSource BeginTransaction() - { - return __Trait0.BeginTransaction(); - } - - /// - /// Creates a new transaction. - /// - /// - /// - /// - /// The caller of this method is responsible for closing the transaction. - public Tortuga.Chain.PostgreSql.PostgreSqlTransactionalDataSource BeginTransaction(System.Nullable isolationLevel = default, System.Boolean forwardEvents = true) - { - return __Trait0.BeginTransaction(isolationLevel, forwardEvents); - } - - /// - /// Creates a new transaction. - /// - /// - /// - /// - /// - /// The caller of this method is responsible for closing the transaction. - public System.Threading.Tasks.Task BeginTransactionAsync(System.Nullable isolationLevel = default, System.Boolean forwardEvents = true, System.Threading.CancellationToken cancellationToken = default) - { - return __Trait0.BeginTransactionAsync(isolationLevel, forwardEvents, cancellationToken); - } - - /// - /// Creates a new transaction. - /// - /// - /// The caller of this method is responsible for closing the transaction. - public System.Threading.Tasks.Task BeginTransactionAsync() - { - return __Trait0.BeginTransactionAsync(); - } - - /// - /// Gets or sets the cache to be used by this data source. The default is .NET's System.Runtime.Caching.MemoryCache. - /// - public override Tortuga.Chain.Core.ICacheAdapter Cache - { - get => __Trait0.Cache; - } - /// - /// The composed connection string. - /// - /// This is created and cached by a ConnectionStringBuilder. - internal System.String ConnectionString - { - get => __Trait0.ConnectionString; - } - /// - /// Creates and opens a new Access connection - /// - /// - /// The caller of this method is responsible for closing the connection. - public Npgsql.NpgsqlConnection CreateConnection() - { - return __Trait0.CreateConnection(); - } - - /// - /// Creates the connection asynchronous. - /// - /// The cancellation token. - /// - /// - /// The caller of this method is responsible for closing the connection. - /// - public System.Threading.Tasks.Task CreateConnectionAsync(System.Threading.CancellationToken cancellationToken = default) - { - return __Trait0.CreateConnectionAsync(cancellationToken); - } - - /// - /// Creates an open data source using the supplied connection and optional transaction. - /// - /// The connection to wrap. - /// The transaction to wrap. - /// IOpenDataSource. - /// WARNING: The caller of this method is responsible for closing the connection. - public Tortuga.Chain.PostgreSql.PostgreSqlOpenDataSource CreateOpenDataSource(Npgsql.NpgsqlConnection connection, Npgsql.NpgsqlTransaction? transaction = default) - { - return __Trait0.CreateOpenDataSource(connection, transaction); - } - - /// - /// Creates an open data source with a new connection. - /// - /// WARNING: The caller of this method is responsible for closing the connection. - public Tortuga.Chain.PostgreSql.PostgreSqlOpenDataSource CreateOpenDataSource() - { - return __Trait0.CreateOpenDataSource(); - } - - /// - /// The extension cache is used by extensions to store data source specific information. - /// - /// - /// The extension cache. - /// - protected override System.Collections.Concurrent.ConcurrentDictionary ExtensionCache - { - get => __Trait0.ExtensionCache; - } - - internal Tortuga.Chain.Core.ICacheAdapter m_Cache - { - get => __Trait0.m_Cache; - set => __Trait0.m_Cache = value; - } - /// - /// This object can be used to access the database connection string. - /// - private Npgsql.NpgsqlConnectionStringBuilder m_ConnectionBuilder - { - get => __Trait0.m_ConnectionBuilder; - init => __Trait0.m_ConnectionBuilder = value; - } - - internal System.Collections.Concurrent.ConcurrentDictionary m_ExtensionCache - { - get => __Trait0.m_ExtensionCache; - set => __Trait0.m_ExtensionCache = value; - } - /// - /// Tests the connection. - /// - public override void TestConnection() - { - __Trait0.TestConnection(); - } - - /// - /// Tests the connection asynchronously. - /// - /// - public override System.Threading.Tasks.Task TestConnectionAsync() - { - return __Trait0.TestConnectionAsync(); - } - - /// - /// Creates a new data source with the provided cache. - /// - /// The cache. - /// - public Tortuga.Chain.PostgreSqlDataSource WithCache(Tortuga.Chain.Core.ICacheAdapter cache) - { - return __Trait0.WithCache(cache); - } - - /// - /// Creates a new data source with additional audit rules. - /// - /// The additional rules. - /// - public Tortuga.Chain.PostgreSqlDataSource WithRules(params Tortuga.Chain.AuditRules.AuditRule[] additionalRules) - { - return __Trait0.WithRules(additionalRules); - } - - /// - /// Creates a new data source with additional audit rules. - /// - /// The additional rules. - /// - public Tortuga.Chain.PostgreSqlDataSource WithRules(System.Collections.Generic.IEnumerable additionalRules) - { - return __Trait0.WithRules(additionalRules); - } - - /// - /// Creates a new data source with the indicated user. - /// - /// The user value. - /// - /// - /// This is used in conjunction with audit rules. - /// - public Tortuga.Chain.PostgreSqlDataSource WithUser(System.Object? userValue) - { - return __Trait0.WithUser(userValue); - } - - private partial Tortuga.Chain.PostgreSql.PostgreSqlTransactionalDataSource OnBeginTransaction(System.Nullable isolationLevel, System.Boolean forwardEvents ); - - private partial System.Threading.Tasks.Task OnBeginTransactionAsync(System.Nullable isolationLevel, System.Boolean forwardEvents, System.Threading.CancellationToken cancellationToken ); - - private partial Tortuga.Chain.PostgreSqlDataSource OnCloneWithOverrides(Tortuga.Chain.Core.ICacheAdapter? cache, System.Collections.Generic.IEnumerable? additionalRules, System.Object? userValue ); - - private partial Npgsql.NpgsqlConnection OnCreateConnection( ); - - private partial System.Threading.Tasks.Task OnCreateConnectionAsync(System.Threading.CancellationToken cancellationToken ); - - private partial Tortuga.Chain.PostgreSql.PostgreSqlOpenDataSource OnCreateOpenDataSource(Npgsql.NpgsqlConnection connection, Npgsql.NpgsqlTransaction? transaction ); - - private void __RegisterTraits() - { - __TraitsRegistered = true; - __Trait0.OnBeginTransaction = OnBeginTransaction; - __Trait0.OnBeginTransactionAsync = OnBeginTransactionAsync; - __Trait0.OnCreateConnection = OnCreateConnection; - __Trait0.OnCreateConnectionAsync = OnCreateConnectionAsync; - __Trait0.OnCreateOpenDataSource = OnCreateOpenDataSource; - __Trait0.OnCloneWithOverrides = OnCloneWithOverrides; - } - - } -} diff --git a/Tortuga.Chain/Tortuga.Chain.PostgreSql/Tortuga.Chain.PostgreSql.csproj b/Tortuga.Chain/Tortuga.Chain.PostgreSql/Tortuga.Chain.PostgreSql.csproj index 1ee45304b..3be2999ab 100644 --- a/Tortuga.Chain/Tortuga.Chain.PostgreSql/Tortuga.Chain.PostgreSql.csproj +++ b/Tortuga.Chain/Tortuga.Chain.PostgreSql/Tortuga.Chain.PostgreSql.csproj @@ -76,7 +76,7 @@ - true + Generated @@ -84,7 +84,7 @@ - + diff --git a/Tortuga.Chain/Tortuga.Chain.SQLite/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Logs.cs b/Tortuga.Chain/Tortuga.Chain.SQLite/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Logs.cs deleted file mode 100644 index 0c5beb83f..000000000 --- a/Tortuga.Chain/Tortuga.Chain.SQLite/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Logs.cs +++ /dev/null @@ -1,29 +0,0 @@ -/* -Container class: Tortuga.Chain.SQLiteDataSource - Adding trait: Traits.RootDataSourceTrait -Container class: Tortuga.Chain.SQLite.SQLiteDataSourceBase - Adding trait: Traits.SupportsDeleteAllTrait - Adding trait: Traits.SupportsTruncateTrait - Adding trait: Traits.SupportsSqlQueriesTrait - Adding trait: Traits.SupportsInsertBatchTrait> - Adding trait: Traits.SupportsDeleteByKeyListTrait - Adding trait: Traits.SupportsUpdateTrait - Adding trait: Traits.SupportsDeleteTrait - Adding trait: Traits.SupportsUpdateByKeyListTrait - Adding trait: Traits.SupportsInsertTrait - Adding trait: Traits.SupportsUpdateSet - Adding trait: Traits.SupportsDeleteSet - Adding trait: Traits.SupportsFromTrait - Adding trait: Traits.SupportsGetByKeyListTrait - Adding trait: Traits.SupportsUpsertTrait - Adding trait: Traits.SupportsGetByColumnListTrait -Container class: Tortuga.Chain.SQLite.SQLiteOpenDataSource - Adding trait: Traits.OpenDataSourceTrait -Container class: Tortuga.Chain.SQLite.SQLiteTransactionalDataSource - Adding trait: Traits.TransactionalDataSourceTrait -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Traits.IHasExtensionCache.get_ExtensionCache -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Tortuga.Chain.DataSources.IOpenDataSource.get_AssociatedConnection -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Tortuga.Chain.DataSources.IOpenDataSource.get_AssociatedTransaction -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Tortuga.Chain.DataSources.IOpenDataSource.get_AssociatedConnection -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Tortuga.Chain.DataSources.IOpenDataSource.get_AssociatedTransaction -*/ \ No newline at end of file diff --git a/Tortuga.Chain/Tortuga.Chain.SQLite/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SQLite.SQLiteDataSourceBase.cs b/Tortuga.Chain/Tortuga.Chain.SQLite/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SQLite.SQLiteDataSourceBase.cs deleted file mode 100644 index 2710640a0..000000000 --- a/Tortuga.Chain/Tortuga.Chain.SQLite/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SQLite.SQLiteDataSourceBase.cs +++ /dev/null @@ -1,1433 +0,0 @@ -//This file was generated by Tortuga Shipwright - -namespace Tortuga.Chain.SQLite -{ - partial class SQLiteDataSourceBase: Tortuga.Chain.DataSources.ISupportsDeleteAll, Tortuga.Chain.DataSources.ISupportsTruncate, Tortuga.Chain.DataSources.ISupportsSqlQueries, Tortuga.Chain.DataSources.ISupportsInsertBatch, Tortuga.Chain.DataSources.ISupportsDeleteByKeyList, Tortuga.Chain.DataSources.ISupportsDeleteByKey, Tortuga.Chain.DataSources.ISupportsUpdate, Tortuga.Chain.DataSources.ISupportsDelete, Tortuga.Chain.DataSources.ISupportsUpdateByKey, Tortuga.Chain.DataSources.ISupportsUpdateByKeyList, Tortuga.Chain.DataSources.ISupportsInsert, Tortuga.Chain.DataSources.ISupportsUpdateSet, Tortuga.Chain.DataSources.ISupportsDeleteSet, Tortuga.Chain.DataSources.ISupportsFrom, Tortuga.Chain.DataSources.ISupportsGetByKeyList, Tortuga.Chain.DataSources.ISupportsGetByKey, Tortuga.Chain.DataSources.ISupportsUpsert, Tortuga.Chain.DataSources.ISupportsGetByColumnList, Tortuga.Chain.DataSources.ISupportsGetByColumn, Traits.ICommandHelper, Traits.IInsertBatchHelper, Traits.IUpdateDeleteByKeyHelper, Traits.IUpdateDeleteHelper, Traits.IInsertHelper, Traits.IUpdateDeleteSetHelper, Traits.IFromHelper, Traits.IGetByKeyHelper, Traits.IUpsertHelper - { - - private bool __TraitsRegistered; - - // These fields and/or properties hold the traits. They should not be referenced directly. - private Traits.SupportsDeleteAllTrait ___Trait0 = new(); - private Traits.SupportsDeleteAllTrait __Trait0 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait0; - } - } - private Traits.SupportsTruncateTrait ___Trait1 = new(); - private Traits.SupportsTruncateTrait __Trait1 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait1; - } - } - private Traits.SupportsSqlQueriesTrait ___Trait2 = new(); - private Traits.SupportsSqlQueriesTrait __Trait2 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait2; - } - } - private Traits.SupportsInsertBatchTrait> ___Trait3 = new(); - private Traits.SupportsInsertBatchTrait> __Trait3 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait3; - } - } - private Traits.SupportsDeleteByKeyListTrait ___Trait4 = new(); - private Traits.SupportsDeleteByKeyListTrait __Trait4 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait4; - } - } - private Traits.SupportsUpdateTrait ___Trait5 = new(); - private Traits.SupportsUpdateTrait __Trait5 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait5; - } - } - private Traits.SupportsDeleteTrait ___Trait6 = new(); - private Traits.SupportsDeleteTrait __Trait6 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait6; - } - } - private Traits.SupportsUpdateByKeyListTrait ___Trait7 = new(); - private Traits.SupportsUpdateByKeyListTrait __Trait7 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait7; - } - } - private Traits.SupportsInsertTrait ___Trait8 = new(); - private Traits.SupportsInsertTrait __Trait8 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait8; - } - } - private Traits.SupportsUpdateSet ___Trait9 = new(); - private Traits.SupportsUpdateSet __Trait9 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait9; - } - } - private Traits.SupportsDeleteSet ___Trait10 = new(); - private Traits.SupportsDeleteSet __Trait10 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait10; - } - } - private Traits.SupportsFromTrait ___Trait11 = new(); - private Traits.SupportsFromTrait __Trait11 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait11; - } - } - private Traits.SupportsGetByKeyListTrait ___Trait12 = new(); - private Traits.SupportsGetByKeyListTrait __Trait12 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait12; - } - } - private Traits.SupportsUpsertTrait ___Trait13 = new(); - private Traits.SupportsUpsertTrait __Trait13 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait13; - } - } - private Traits.SupportsGetByColumnListTrait ___Trait14 = new(); - private Traits.SupportsGetByColumnListTrait __Trait14 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait14; - } - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDelete - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDelete.Delete(System.String tableName, TArgument argumentValue, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDelete)__Trait6).Delete(tableName, argumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDelete.Delete(TArgument argumentValue, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDelete)__Trait6).Delete(argumentValue, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDeleteAll - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsDeleteAll.DeleteAll(System.String tableName) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteAll)__Trait0).DeleteAll(tableName); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsDeleteAll.DeleteAll() - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteAll)__Trait0).DeleteAll(); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDeleteByKey - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteByKey.DeleteByKey(System.String tableName, TKey key, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteByKey)__Trait4).DeleteByKey(tableName, key, options); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteByKey.DeleteByKey(System.String tableName, System.String key, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteByKey)__Trait4).DeleteByKey(tableName, key, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDeleteByKeyList - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteByKeyList.DeleteByKeyList(System.String tableName, System.Collections.Generic.IEnumerable keys, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteByKeyList)__Trait4).DeleteByKeyList(tableName, keys, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDeleteSet - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteSet.DeleteSet(System.String tableName, System.String whereClause) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteSet)__Trait10).DeleteSet(tableName, whereClause); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteSet.DeleteSet(System.String tableName, System.String whereClause, System.Object? argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteSet)__Trait10).DeleteSet(tableName, whereClause, argumentValue); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteSet.DeleteSet(System.String tableName, System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteSet)__Trait10).DeleteSet(tableName, filterValue, filterOptions); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsFrom - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String tableOrViewName) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(tableOrViewName); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String tableOrViewName, System.String whereClause) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(tableOrViewName, whereClause); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String tableOrViewName, System.String whereClause, System.Object argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(tableOrViewName, whereClause, argumentValue); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String tableOrViewName, System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(tableOrViewName, filterValue, filterOptions); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From() - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String whereClause) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(whereClause); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String whereClause, System.Object argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(whereClause, argumentValue); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.Object filterValue) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(filterValue); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsGetByColumn - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String tableName, System.String columnName, TKey key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait14).GetByColumn(tableName, columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String tableName, System.String columnName, System.String key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait14).GetByColumn(tableName, columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, TKey key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait14).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.String key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait14).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.Int16 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait14).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.Int32 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait14).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.Int64 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait14).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.Guid key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait14).GetByColumn(columnName, key); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsGetByColumnList - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String tableName, System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait14).GetByColumnList(tableName, columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait14).GetByColumnList(columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait14).GetByColumnList(columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait14).GetByColumnList(columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait14).GetByColumnList(columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait14).GetByColumnList(columnName, keys); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsGetByKey - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.String tableName, TKey key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(tableName, key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.String tableName, System.String key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(tableName, key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(TKey key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.String key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.Int16 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.Int32 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.Int64 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.Guid key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(key); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsGetByKeyList - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.String tableName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(tableName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(keys); - } - - [System.Obsolete(@"This will be replaced by GetByColumn")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.String tableName, System.String keyColumn, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(tableName, keyColumn, keys); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsInsert - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsInsert.Insert(System.String tableName, TArgument argumentValue, Tortuga.Chain.InsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsInsert)__Trait8).Insert(tableName, argumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsInsert.Insert(TArgument argumentValue, Tortuga.Chain.InsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsInsert)__Trait8).Insert(argumentValue, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsInsertBatch - Tortuga.Chain.CommandBuilders.IDbCommandBuilder Tortuga.Chain.DataSources.ISupportsInsertBatch.InsertBatch(System.Collections.Generic.IEnumerable objects, Tortuga.Chain.InsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBatch)__Trait3).InsertBatch(objects, options); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBatch.InsertMultipleBatch(System.String tableName, System.Collections.Generic.IReadOnlyList objects, Tortuga.Chain.InsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBatch)__Trait3).InsertMultipleBatch(tableName, objects, options); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBatch.InsertMultipleBatch(System.Collections.Generic.IReadOnlyList objects, Tortuga.Chain.InsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBatch)__Trait3).InsertMultipleBatch(objects, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsSqlQueries - Tortuga.Chain.CommandBuilders.IMultipleTableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsSqlQueries.Sql(System.String sqlStatement, System.Object argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsSqlQueries)__Trait2).Sql(sqlStatement, argumentValue); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsTruncate - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsTruncate.Truncate(System.String tableName) - { - return ((Tortuga.Chain.DataSources.ISupportsTruncate)__Trait1).Truncate(tableName); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsTruncate.Truncate() - { - return ((Tortuga.Chain.DataSources.ISupportsTruncate)__Trait1).Truncate(); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpdate - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdate.Update(System.String tableName, TArgument argumentValue, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdate)__Trait5).Update(tableName, argumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdate.Update(TArgument argumentValue, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdate)__Trait5).Update(argumentValue, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpdateByKey - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateByKey.UpdateByKey(System.String tableName, TArgument newValues, TKey key, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateByKey)__Trait7).UpdateByKey(tableName, newValues, key, options); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateByKey.UpdateByKey(System.String tableName, TArgument newValues, System.String key, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateByKey)__Trait7).UpdateByKey(tableName, newValues, key, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpdateByKeyList - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateByKeyList.UpdateByKeyList(System.String tableName, TArgument newValues, System.Collections.Generic.IEnumerable keys, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateByKeyList)__Trait7).UpdateByKeyList(tableName, newValues, keys, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpdateSet - Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateSet.UpdateSet(System.String tableName, System.String updateExpression, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateSet)__Trait9).UpdateSet(tableName, updateExpression, options); - } - - Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateSet.UpdateSet(System.String tableName, System.String updateExpression, System.Object? updateArgumentValue, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateSet)__Trait9).UpdateSet(tableName, updateExpression, updateArgumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateSet.UpdateSet(System.String tableName, System.Object newValues, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateSet)__Trait9).UpdateSet(tableName, newValues, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpsert - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpsert.Upsert(System.String tableName, TArgument argumentValue, Tortuga.Chain.UpsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpsert)__Trait13).Upsert(tableName, argumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpsert.Upsert(TArgument argumentValue, Tortuga.Chain.UpsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpsert)__Trait13).Upsert(argumentValue, options); - } - - // Exposing trait Traits.SupportsDeleteAllTrait - - /// Deletes all records in the specified table. - /// Name of the table to clear. - /// The number of rows deleted or null if the database doesn't provide that information. - public Tortuga.Chain.ILink DeleteAll(Tortuga.Chain.SQLite.SQLiteObjectName tableName) - { - return __Trait0.DeleteAll(tableName); - } - - /// Deletes all records in the specified table. - /// This class used to determine which table to clear - /// The number of rows deleted or null if the database doesn't provide that information. - public Tortuga.Chain.ILink DeleteAll()where TObject : class - { - return __Trait0.DeleteAll(); - } - - // Exposing trait Traits.SupportsDeleteByKeyListTrait - - /// - /// Delete a record by its primary key. - /// - /// - /// Name of the table. - /// The key. - /// The options. - /// MultipleRowDbCommandBuilder<TCommand, TParameter>. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(Tortuga.Chain.SQLite.SQLiteObjectName tableName, T key, Tortuga.Chain.DeleteOptions options = 0)where T : struct - { - return __Trait4.DeleteByKey(tableName, key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Name of the table. - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(Tortuga.Chain.SQLite.SQLiteObjectName tableName, System.String key, Tortuga.Chain.DeleteOptions options = 0) - { - return __Trait4.DeleteByKey(tableName, key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Used to determine the table name - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(System.Guid key, Tortuga.Chain.DeleteOptions options = 0)where TObject : class - { - return __Trait4.DeleteByKey(key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Used to determine the table name - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(System.Int64 key, Tortuga.Chain.DeleteOptions options = 0)where TObject : class - { - return __Trait4.DeleteByKey(key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Used to determine the table name - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(System.Int32 key, Tortuga.Chain.DeleteOptions options = 0)where TObject : class - { - return __Trait4.DeleteByKey(key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Used to determine the table name - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(System.String key, Tortuga.Chain.DeleteOptions options = 0)where TObject : class - { - return __Trait4.DeleteByKey(key, options); - } - - /// - /// Delete multiple rows by key. - /// - /// The type of the t key. - /// Name of the table. - /// The keys. - /// Delete options. - /// - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteByKeyList(Tortuga.Chain.SQLite.SQLiteObjectName tableName, System.Collections.Generic.IEnumerable keys, Tortuga.Chain.DeleteOptions options = 0) - { - return __Trait4.DeleteByKeyList(tableName, keys, options); - } - - // Exposing trait Traits.SupportsDeleteSet - - /// - /// Delete multiple records using a filter object. - /// - /// Name of the table. - /// The filter value. - /// The options. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteSet(Tortuga.Chain.SQLite.SQLiteObjectName tableName, System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions = 0) - { - return __Trait10.DeleteSet(tableName, filterValue, filterOptions); - } - - /// - /// Delete multiple records using a filter object. - /// - /// The filter value. - /// The options. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteSet(System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions = 0)where TObject : class - { - return __Trait10.DeleteSet(filterValue, filterOptions); - } - - /// - /// Delete multiple records using a where expression. - /// - /// Name of the table. - /// The where clause. - /// The argument value for the where clause. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteSet(Tortuga.Chain.SQLite.SQLiteObjectName tableName, System.String whereClause, System.Object? argumentValue = default) - { - return __Trait10.DeleteSet(tableName, whereClause, argumentValue); - } - - /// - /// Delete multiple records using a where expression. - /// - /// The where clause. - /// The argument value for the where clause. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteSet(System.String whereClause, System.Object? argumentValue = default)where TObject : class - { - return __Trait10.DeleteSet(whereClause, argumentValue); - } - - // Exposing trait Traits.SupportsDeleteTrait - - /// - /// Creates a command to perform a delete operation. - /// - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Delete(Tortuga.Chain.SQLite.SQLiteObjectName tableName, TArgument argumentValue, Tortuga.Chain.DeleteOptions options = 0)where TArgument : class - { - return __Trait6.Delete(tableName, argumentValue, options); - } - - /// - /// Delete an object model from the table indicated by the class's Table attribute. - /// - /// - /// The argument value. - /// The delete options. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Delete(TArgument argumentValue, Tortuga.Chain.DeleteOptions options = 0)where TArgument : class - { - return __Trait6.Delete(argumentValue, options); - } - - // Exposing trait Traits.SupportsFromTrait - - /// - /// Creates an operation to directly query a table or view - /// - /// - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(Tortuga.Chain.SQLite.SQLiteObjectName tableOrViewName) - { - return __Trait11.From(tableOrViewName); - } - - /// - /// Creates an operation to directly query a table or view - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(Tortuga.Chain.SQLite.SQLiteObjectName tableOrViewName, System.String whereClause) - { - return __Trait11.From(tableOrViewName, whereClause); - } - - /// - /// Creates an operation to directly query a table or view - /// - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(Tortuga.Chain.SQLite.SQLiteObjectName tableOrViewName, System.String whereClause, System.Object argumentValue) - { - return __Trait11.From(tableOrViewName, whereClause, argumentValue); - } - - /// - /// Creates an operation to directly query a table or view - /// - /// Name of the table or view. - /// The filter value. - /// The filter options. - /// TableDbCommandBuilder<TCommand, TParameter, TLimitOption>. - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(Tortuga.Chain.SQLite.SQLiteObjectName tableOrViewName, System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions = 0) - { - return __Trait11.From(tableOrViewName, filterValue, filterOptions); - } - - /// - /// This is used to directly query a table or view. - /// - /// - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From()where TObject : class - { - return __Trait11.From(); - } - - /// - /// This is used to directly query a table or view. - /// - /// The type of the object. - /// The where clause. Do not prefix this clause with "WHERE". - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(System.String whereClause)where TObject : class - { - return __Trait11.From(whereClause); - } - - /// - /// This is used to directly query a table or view. - /// - /// The type of the object. - /// The where clause. Do not prefix this clause with "WHERE". - /// Optional argument value. Every property in the argument value must have a matching parameter in the WHERE clause - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(System.String whereClause, System.Object argumentValue)where TObject : class - { - return __Trait11.From(whereClause, argumentValue); - } - - /// - /// This is used to directly query a table or view. - /// - /// The type of the object. - /// The filter value is used to generate a simple AND style WHERE clause. - /// The filter options. - /// TableDbCommandBuilder<TCommand, TParameter, TLimitOption, TObject>. - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions = 0)where TObject : class - { - return __Trait11.From(filterValue, filterOptions); - } - - // Exposing trait Traits.SupportsGetByColumnListTrait - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. Used to determine which table will be read. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.Guid key)where TObject : class - { - return __Trait14.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.Int64 key)where TObject : class - { - return __Trait14.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.Int16 key)where TObject : class - { - return __Trait14.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.Int32 key)where TObject : class - { - return __Trait14.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.String key)where TObject : class - { - return __Trait14.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The type of the key. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, TKey key)where TObject : class - { - return __Trait14.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// Name of the table. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(Tortuga.Chain.SQLite.SQLiteObjectName tableName, System.String columnName, System.String key) - { - return __Trait14.GetByColumn(tableName, columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// - /// Name of the table. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(Tortuga.Chain.SQLite.SQLiteObjectName tableName, System.String columnName, TKey key) - { - return __Trait14.GetByColumn(tableName, columnName, key); - } - - /// - /// Gets a set of records by their primary key. - /// - /// - /// Name of the table. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(Tortuga.Chain.SQLite.SQLiteObjectName tableName, System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return __Trait14.GetByColumnList(tableName, columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The type of the key. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait14.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait14.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait14.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait14.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait14.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait14.GetByColumnList(columnName, keys); - } - - // Exposing trait Traits.SupportsGetByKeyListTrait - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. Used to determine which table will be read. - /// The key. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.Guid key)where TObject : class - { - return __Trait12.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The key. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.Int64 key)where TObject : class - { - return __Trait12.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The key. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.Int16 key)where TObject : class - { - return __Trait12.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The key. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.Int32 key)where TObject : class - { - return __Trait12.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The key. - /// - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.String key)where TObject : class - { - return __Trait12.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The type of the key. - /// The key. - /// - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(TKey key)where TObject : class - { - return __Trait12.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// Name of the table. - /// The key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(Tortuga.Chain.SQLite.SQLiteObjectName tableName, System.String key) - { - return __Trait12.GetByKey(tableName, key); - } - - /// - /// Gets a record by its primary key. - /// - /// - /// Name of the table. - /// The key. - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(Tortuga.Chain.SQLite.SQLiteObjectName tableName, TKey key) - { - return __Trait12.GetByKey(tableName, key); - } - - /// - /// Gets a set of records by their primary key. - /// - /// - /// Name of the table. - /// The keys. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(Tortuga.Chain.SQLite.SQLiteObjectName tableName, System.Collections.Generic.IEnumerable keys) - { - return __Trait12.GetByKeyList(tableName, keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The type of the key. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait12.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait12.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait12.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait12.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait12.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait12.GetByKeyList(keys); - } - - /// Gets a set of records by an unique key. - /// The type of the t key. - /// Name of the table. - /// Name of the key column. This should be a primary or unique key, but that's not enforced. - /// The keys. - /// IMultipleRowDbCommandBuilder. - [System.Obsolete(@"This will be replaced by GetByColumn")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.String tableName, System.String keyColumn, System.Collections.Generic.IEnumerable keys) - { - return __Trait12.GetByKeyList(tableName, keyColumn, keys); - } - - // Exposing trait Traits.SupportsInsertBatchTrait> - - /// - /// Inserts the batch of records as one operation. - /// - /// - /// Name of the table. - /// The objects to insert. - /// The options. - /// MultipleRowDbCommandBuilder<SqlCommand, SqlParameter>. - public Tortuga.Chain.CommandBuilders.DbCommandBuilder InsertBatch(Tortuga.Chain.SQLite.SQLiteObjectName tableName, System.Collections.Generic.IEnumerable objects, Tortuga.Chain.InsertOptions options = 0)where TObject : class - { - return __Trait3.InsertBatch(tableName, objects, options); - } - - /// - /// Inserts the batch of records as one operation. - /// - /// - /// The objects to insert. - /// The options. - /// MultipleRowDbCommandBuilder<SqlCommand, SqlParameter>. - public Tortuga.Chain.CommandBuilders.DbCommandBuilder InsertBatch(System.Collections.Generic.IEnumerable objects, Tortuga.Chain.InsertOptions options = 0)where TObject : class - { - return __Trait3.InsertBatch(objects, options); - } - - /// - /// Performs a series of batch inserts. - /// - /// The type of the t object. - /// Name of the table. - /// The objects. - /// The options. - /// Tortuga.Chain.ILink<System.Int32>. - /// This operation is not atomic. It should be wrapped in a transaction. - public Tortuga.Chain.ILink InsertMultipleBatch(Tortuga.Chain.SQLite.SQLiteObjectName tableName, System.Collections.Generic.IEnumerable objects, Tortuga.Chain.InsertOptions options = 0)where TObject : class - { - return __Trait3.InsertMultipleBatch(tableName, objects, options); - } - - /// - /// Inserts the batch of records as one operation. - /// - /// - /// The objects to insert. - /// The options. - /// MultipleRowDbCommandBuilder<SqlCommand, SqlParameter>. - public Tortuga.Chain.ILink InsertMultipleBatch(System.Collections.Generic.IReadOnlyList objects, Tortuga.Chain.InsertOptions options = 0)where TObject : class - { - return __Trait3.InsertMultipleBatch(objects, options); - } - - // Exposing trait Traits.SupportsInsertTrait - - /// - /// Inserts an object into the specified table. - /// - /// - /// The argument value. - /// The options for how the insert occurs. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Insert(TArgument argumentValue, Tortuga.Chain.InsertOptions options = 0)where TArgument : class - { - return __Trait8.Insert(argumentValue, options); - } - - /// - /// Creates an operation used to perform an insert operation. - /// - /// Name of the table. - /// The argument value. - /// The options. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Insert(Tortuga.Chain.SQLite.SQLiteObjectName tableName, TArgument argumentValue, Tortuga.Chain.InsertOptions options = 0)where TArgument : class - { - return __Trait8.Insert(tableName, argumentValue, options); - } - - // Exposing trait Traits.SupportsSqlQueriesTrait - - /// - /// Creates a operation based on a raw SQL statement. - /// - /// The SQL statement. - /// - public Tortuga.Chain.CommandBuilders.MultipleTableDbCommandBuilder Sql(System.String sqlStatement) - { - return __Trait2.Sql(sqlStatement); - } - - /// - /// Creates a operation based on a raw SQL statement. - /// - /// The SQL statement. - /// The argument value. - /// SqlServerSqlCall. - public Tortuga.Chain.CommandBuilders.MultipleTableDbCommandBuilder Sql(System.String sqlStatement, System.Object argumentValue) - { - return __Trait2.Sql(sqlStatement, argumentValue); - } - - // Exposing trait Traits.SupportsTruncateTrait - - /// Truncates the specified table. - /// Name of the table to Truncate. - /// The number of rows deleted or null if the database doesn't provide that information. - public Tortuga.Chain.ILink Truncate(Tortuga.Chain.SQLite.SQLiteObjectName tableName) - { - return __Trait1.Truncate(tableName); - } - - /// Truncates the specified table. - /// This class used to determine which table to Truncate - /// The number of rows deleted or null if the database doesn't provide that information. - public Tortuga.Chain.ILink Truncate()where TObject : class - { - return __Trait1.Truncate(); - } - - // Exposing trait Traits.SupportsUpdateByKeyListTrait - - /// - /// Update a record by its primary key. - /// - /// The type of the t argument. - /// - /// Name of the table. - /// The new values to use. - /// The key. - /// The options. - /// MultipleRowDbCommandBuilder<AbstractCommand, AbstractParameter>. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder UpdateByKey(Tortuga.Chain.SQLite.SQLiteObjectName tableName, TArgument newValues, TKey key, Tortuga.Chain.UpdateOptions options = 0)where TKey : struct - { - return __Trait7.UpdateByKey(tableName, newValues, key, options); - } - - /// - /// Update a record by its primary key. - /// - /// The type of the t argument. - /// Name of the table. - /// The new values to use. - /// The key. - /// The options. - /// MultipleRowDbCommandBuilder<OleDbCommand, OleDbParameter>. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder UpdateByKey(Tortuga.Chain.SQLite.SQLiteObjectName tableName, TArgument newValues, System.String key, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait7.UpdateByKey(tableName, newValues, key, options); - } - - /// - /// Update multiple rows by key. - /// - /// The type of the t argument. - /// The type of the t key. - /// Name of the table. - /// The new values to use. - /// The keys. - /// Update options. - /// MultipleRowDbCommandBuilder<OleDbCommand, OleDbParameter>. - /// - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder UpdateByKeyList(Tortuga.Chain.SQLite.SQLiteObjectName tableName, TArgument newValues, System.Collections.Generic.IEnumerable keys, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait7.UpdateByKeyList(tableName, newValues, keys, options); - } - - // Exposing trait Traits.SupportsUpdateSet - - /// - /// Update multiple records using an update expression. - /// - /// Name of the table. - /// The update expression. - /// The argument value. - /// The update options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(Tortuga.Chain.SQLite.SQLiteObjectName tableName, System.String updateExpression, System.Object? updateArgumentValue, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait9.UpdateSet(tableName, updateExpression, updateArgumentValue, options); - } - - /// - /// Update multiple records using an update value. - /// - /// Name of the table. - /// The new values to use. - /// The options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(Tortuga.Chain.SQLite.SQLiteObjectName tableName, System.Object newValues, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait9.UpdateSet(tableName, newValues, options); - } - - /// - /// Update multiple records using an update expression. - /// - /// Name of the table. - /// The update expression. - /// The update options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(Tortuga.Chain.SQLite.SQLiteObjectName tableName, System.String updateExpression, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait9.UpdateSet(tableName, updateExpression, options); - } - - /// - /// Update multiple records using an update expression. - /// - /// Class used to determine the table name. - /// The update expression. - /// The argument for the update expression. - /// The update options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(System.String updateExpression, System.Object updateArgumentValue, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait9.UpdateSet(updateExpression, updateArgumentValue, options); - } - - /// - /// Update multiple records using an update value. - /// - /// Class used to determine the table name. - /// The new values to use. - /// The options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(System.Object newValues, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait9.UpdateSet(newValues, options); - } - - /// - /// Update multiple records using an update expression. - /// - /// Class used to determine the table name. - /// The update expression. - /// The update options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(System.String updateExpression, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait9.UpdateSet(updateExpression, options); - } - - // Exposing trait Traits.SupportsUpdateTrait - - /// - /// Update an object in the specified table. - /// - /// - /// The argument value. - /// The update options. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Update(TArgument argumentValue, Tortuga.Chain.UpdateOptions options = 0)where TArgument : class - { - return __Trait5.Update(argumentValue, options); - } - - /// - /// Update an object in the specified table. - /// - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Update(Tortuga.Chain.SQLite.SQLiteObjectName tableName, TArgument argumentValue, Tortuga.Chain.UpdateOptions options = 0)where TArgument : class - { - return __Trait5.Update(tableName, argumentValue, options); - } - - // Exposing trait Traits.SupportsUpsertTrait - - /// - /// Creates a operation used to perform an "upsert" operation. - /// - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Upsert(Tortuga.Chain.SQLite.SQLiteObjectName tableName, TArgument argumentValue, Tortuga.Chain.UpsertOptions options = 0)where TArgument : class - { - return __Trait13.Upsert(tableName, argumentValue, options); - } - - /// - /// Perform an insert or update operation as appropriate. - /// - /// - /// The argument value. - /// The options for how the insert/update occurs. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Upsert(TArgument argumentValue, Tortuga.Chain.UpsertOptions options = 0)where TArgument : class - { - return __Trait13.Upsert(argumentValue, options); - } - - private partial Tortuga.Chain.ILink OnDeleteAll(Tortuga.Chain.SQLite.SQLiteObjectName tableName ); - - private partial Tortuga.Chain.CommandBuilders.MultipleTableDbCommandBuilder OnSql(System.String sqlStatement, System.Object? argumentValue ); - - private partial Tortuga.Chain.ILink OnTruncate(Tortuga.Chain.SQLite.SQLiteObjectName tableName ); - - private void __RegisterTraits() - { - __TraitsRegistered = true; - __Trait0.OnDeleteAll = OnDeleteAll; - __Trait0.DataSource = this; - __Trait1.OnTruncate = OnTruncate; - __Trait1.DataSource = this; - __Trait2.OnSql = OnSql; - __Trait3.DataSource = this; - __Trait4.DataSource = this; - __Trait5.DataSource = this; - __Trait6.DataSource = this; - __Trait7.DataSource = this; - __Trait8.DataSource = this; - __Trait9.DataSource = this; - __Trait10.DataSource = this; - __Trait11.DataSource = this; - __Trait12.DataSource = this; - __Trait13.DataSource = this; - __Trait14.DataSource = this; - } - - } -} diff --git a/Tortuga.Chain/Tortuga.Chain.SQLite/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SQLite.SQLiteOpenDataSource.cs b/Tortuga.Chain/Tortuga.Chain.SQLite/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SQLite.SQLiteOpenDataSource.cs deleted file mode 100644 index f0f7381da..000000000 --- a/Tortuga.Chain/Tortuga.Chain.SQLite/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SQLite.SQLiteOpenDataSource.cs +++ /dev/null @@ -1,192 +0,0 @@ -//This file was generated by Tortuga Shipwright - -namespace Tortuga.Chain.SQLite -{ - partial class SQLiteOpenDataSource: Tortuga.Chain.DataSources.IOpenDataSource - { - - private bool __TraitsRegistered; - - // These fields and/or properties hold the traits. They should not be referenced directly. - private Traits.OpenDataSourceTrait ___Trait0 = new(); - private Traits.OpenDataSourceTrait __Trait0 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait0; - } - } - - // Explicit interface implementation Tortuga.Chain.DataSources.IOpenDataSource - System.Data.Common.DbConnection Tortuga.Chain.DataSources.IOpenDataSource.AssociatedConnection - { - get => ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).AssociatedConnection; - } - System.Data.Common.DbTransaction? Tortuga.Chain.DataSources.IOpenDataSource.AssociatedTransaction - { - get => ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).AssociatedTransaction; - } - void Tortuga.Chain.DataSources.IOpenDataSource.Close() - { - ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).Close(); - } - - System.Boolean Tortuga.Chain.DataSources.IOpenDataSource.TryCommit() - { - return ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).TryCommit(); - } - - System.Boolean Tortuga.Chain.DataSources.IOpenDataSource.TryRollback() - { - return ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).TryRollback(); - } - - // Exposing trait Traits.OpenDataSourceTrait - - /// - /// Returns the associated connection. - /// - /// The associated connection. - public System.Data.SQLite.SQLiteConnection AssociatedConnection - { - get => __Trait0.AssociatedConnection; - } - /// - /// Returns the associated transaction. - /// - /// The associated transaction. - public System.Data.SQLite.SQLiteTransaction? AssociatedTransaction - { - get => __Trait0.AssociatedTransaction; - } - /// - /// Gets or sets the cache to be used by this data source. The default is .NET's System.Runtime.Caching.MemoryCache. - /// - public override Tortuga.Chain.Core.ICacheAdapter Cache - { - get => __Trait0.Cache; - } - /// - /// Closes the connection and transaction associated with this data source. - /// - public void Close() - { - __Trait0.Close(); - } - - /// - /// Gets the database metadata. - /// - public override Tortuga.Chain.SQLite.SQLiteMetadataCache DatabaseMetadata - { - get => __Trait0.DatabaseMetadata; - } - /// - /// The extension cache is used by extensions to store data source specific information. - /// - /// - /// The extension cache. - /// - protected override System.Collections.Concurrent.ConcurrentDictionary ExtensionCache - { - get => __Trait0.ExtensionCache; - } - - private Tortuga.Chain.SQLiteDataSource m_BaseDataSource - { - get => __Trait0.m_BaseDataSource; - init => __Trait0.m_BaseDataSource = value; - } - - private System.Data.SQLite.SQLiteConnection m_Connection - { - get => __Trait0.m_Connection; - init => __Trait0.m_Connection = value; - } - - private System.Data.SQLite.SQLiteTransaction? m_Transaction - { - get => __Trait0.m_Transaction; - init => __Trait0.m_Transaction = value; - } - /// - /// Tests the connection. - /// - public override void TestConnection() - { - __Trait0.TestConnection(); - } - - /// - /// Tests the connection asynchronously. - /// - /// - public override System.Threading.Tasks.Task TestConnectionAsync() - { - return __Trait0.TestConnectionAsync(); - } - - /// - /// Tries the commit the transaction associated with this data source. - /// - /// True if there was an open transaction associated with this data source, otherwise false. - public System.Boolean TryCommit() - { - return __Trait0.TryCommit(); - } - - /// - /// Tries to rollback the transaction associated with this data source. - /// - /// True if there was an open transaction associated with this data source, otherwise false. - public System.Boolean TryRollback() - { - return __Trait0.TryRollback(); - } - - /// - /// Modifies this data source with additional audit rules. - /// - /// The additional rules. - /// - public Tortuga.Chain.SQLite.SQLiteOpenDataSource WithRules(params Tortuga.Chain.AuditRules.AuditRule[] additionalRules) - { - return __Trait0.WithRules(additionalRules); - } - - /// - /// Modifies this data source with additional audit rules. - /// - /// The additional rules. - /// - public Tortuga.Chain.SQLite.SQLiteOpenDataSource WithRules(System.Collections.Generic.IEnumerable additionalRules) - { - return __Trait0.WithRules(additionalRules); - } - - /// - /// Modifies this data source to include the indicated user. - /// - /// The user value. - /// - /// - /// This is used in conjunction with audit rules. - /// - public Tortuga.Chain.SQLite.SQLiteOpenDataSource WithUser(System.Object? userValue) - { - return __Trait0.WithUser(userValue); - } - - private partial Tortuga.Chain.SQLite.SQLiteOpenDataSource OnOverride(System.Collections.Generic.IEnumerable? additionalRules, System.Object? userValue ); - - private void __RegisterTraits() - { - __TraitsRegistered = true; - __Trait0.OnOverride = OnOverride; - __Trait0.Container = this; - __Trait0.DisposableContainer = this as Traits.IHasOnDispose; - } - - } -} diff --git a/Tortuga.Chain/Tortuga.Chain.SQLite/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SQLite.SQLiteTransactionalDataSource.cs b/Tortuga.Chain/Tortuga.Chain.SQLite/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SQLite.SQLiteTransactionalDataSource.cs deleted file mode 100644 index dbc38c241..000000000 --- a/Tortuga.Chain/Tortuga.Chain.SQLite/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SQLite.SQLiteTransactionalDataSource.cs +++ /dev/null @@ -1,181 +0,0 @@ -//This file was generated by Tortuga Shipwright - -namespace Tortuga.Chain.SQLite -{ - partial class SQLiteTransactionalDataSource: Tortuga.Chain.DataSources.ITransactionalDataSource, Tortuga.Chain.DataSources.IOpenDataSource, System.IDisposable - { - - private bool __TraitsRegistered; - - // These fields and/or properties hold the traits. They should not be referenced directly. - private Traits.TransactionalDataSourceTrait ___Trait0 = new(); - private Traits.TransactionalDataSourceTrait __Trait0 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait0; - } - } - - // Explicit interface implementation System.IDisposable - void System.IDisposable.Dispose() - { - ((System.IDisposable)__Trait0).Dispose(); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.IOpenDataSource - System.Data.Common.DbConnection Tortuga.Chain.DataSources.IOpenDataSource.AssociatedConnection - { - get => ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).AssociatedConnection; - } - System.Data.Common.DbTransaction? Tortuga.Chain.DataSources.IOpenDataSource.AssociatedTransaction - { - get => ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).AssociatedTransaction; - } - void Tortuga.Chain.DataSources.IOpenDataSource.Close() - { - ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).Close(); - } - - System.Boolean Tortuga.Chain.DataSources.IOpenDataSource.TryCommit() - { - return ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).TryCommit(); - } - - System.Boolean Tortuga.Chain.DataSources.IOpenDataSource.TryRollback() - { - return ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).TryRollback(); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ITransactionalDataSource - void Tortuga.Chain.DataSources.ITransactionalDataSource.Commit() - { - ((Tortuga.Chain.DataSources.ITransactionalDataSource)__Trait0).Commit(); - } - - // Exposing trait Traits.TransactionalDataSourceTrait - - /// - /// Returns the associated connection. - /// - /// The associated connection. - public System.Data.SQLite.SQLiteConnection AssociatedConnection - { - get => __Trait0.AssociatedConnection; - } - /// - /// Returns the associated transaction. - /// - /// The associated transaction. - public System.Data.SQLite.SQLiteTransaction AssociatedTransaction - { - get => __Trait0.AssociatedTransaction; - } - /// - /// Gets or sets the cache to be used by this data source. The default is .NET's System.Runtime.Caching.MemoryCache. - /// - public override Tortuga.Chain.Core.ICacheAdapter Cache - { - get => __Trait0.Cache; - } - /// - /// Commits the transaction and disposes the underlying connection. - /// - public void Commit() - { - __Trait0.Commit(); - } - - /// - /// Gets the database metadata. - /// - public override Tortuga.Chain.SQLite.SQLiteMetadataCache DatabaseMetadata - { - get => __Trait0.DatabaseMetadata; - } - /// - /// Closes the current transaction and connection. If not committed, the transaction is rolled back. - /// - public void Dispose() - { - __Trait0.Dispose(); - } - - /// - /// Closes the current transaction and connection. If not committed, the transaction is rolled back. - /// - /// - protected virtual void Dispose(System.Boolean disposing) - { - __Trait0.Dispose(disposing); - } - - /// - /// The extension cache is used by extensions to store data source specific information. - /// - /// - /// The extension cache. - /// - protected override System.Collections.Concurrent.ConcurrentDictionary ExtensionCache - { - get => __Trait0.ExtensionCache; - } - - private Tortuga.Chain.SQLiteDataSource m_BaseDataSource - { - get => __Trait0.m_BaseDataSource; - init => __Trait0.m_BaseDataSource = value; - } - - private System.Data.SQLite.SQLiteConnection m_Connection - { - get => __Trait0.m_Connection; - init => __Trait0.m_Connection = value; - } - - private System.Boolean m_Disposed - { - get => __Trait0.m_Disposed; - set => __Trait0.m_Disposed = value; - } - - private System.Data.SQLite.SQLiteTransaction m_Transaction - { - get => __Trait0.m_Transaction; - init => __Trait0.m_Transaction = value; - } - /// - /// Rolls back the transaction and disposes the underlying connection. - /// - public void Rollback() - { - __Trait0.Rollback(); - } - - /// - /// Tests the connection. - /// - public override void TestConnection() - { - __Trait0.TestConnection(); - } - - /// - /// Tests the connection asynchronously. - /// - /// - public override System.Threading.Tasks.Task TestConnectionAsync() - { - return __Trait0.TestConnectionAsync(); - } - - private void __RegisterTraits() - { - __TraitsRegistered = true; - __Trait0.Container = this; - __Trait0.DisposableContainer = this as Traits.IHasOnDispose; - } - - } -} diff --git a/Tortuga.Chain/Tortuga.Chain.SQLite/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SQLiteDataSource.cs b/Tortuga.Chain/Tortuga.Chain.SQLite/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SQLiteDataSource.cs deleted file mode 100644 index ad8506fb5..000000000 --- a/Tortuga.Chain/Tortuga.Chain.SQLite/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SQLiteDataSource.cs +++ /dev/null @@ -1,282 +0,0 @@ -//This file was generated by Tortuga Shipwright - -namespace Tortuga.Chain -{ - partial class SQLiteDataSource: Tortuga.Chain.DataSources.IRootDataSource, Traits.IHasExtensionCache - { - - private bool __TraitsRegistered; - - // These fields and/or properties hold the traits. They should not be referenced directly. - private Traits.RootDataSourceTrait ___Trait0 = new(); - private Traits.RootDataSourceTrait __Trait0 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait0; - } - } - - // Explicit interface implementation Traits.IHasExtensionCache - System.Collections.Concurrent.ConcurrentDictionary Traits.IHasExtensionCache.ExtensionCache - { - get => ((Traits.IHasExtensionCache)__Trait0).ExtensionCache; - } - // Explicit interface implementation Tortuga.Chain.DataSources.IRootDataSource - Tortuga.Chain.DataSources.ITransactionalDataSource Tortuga.Chain.DataSources.IRootDataSource.BeginTransaction() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).BeginTransaction(); - } - - System.Threading.Tasks.Task Tortuga.Chain.DataSources.IRootDataSource.BeginTransactionAsync() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).BeginTransactionAsync(); - } - - System.Data.Common.DbConnection Tortuga.Chain.DataSources.IRootDataSource.CreateConnection() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateConnection(); - } - - System.Threading.Tasks.Task Tortuga.Chain.DataSources.IRootDataSource.CreateConnectionAsync() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateConnectionAsync(); - } - - Tortuga.Chain.DataSources.IOpenDataSource Tortuga.Chain.DataSources.IRootDataSource.CreateOpenDataSource() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateOpenDataSource(); - } - - Tortuga.Chain.DataSources.IOpenDataSource Tortuga.Chain.DataSources.IRootDataSource.CreateOpenDataSource(System.Data.Common.DbConnection connection, System.Data.Common.DbTransaction? transaction) - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateOpenDataSource(connection, transaction); - } - - Tortuga.Chain.DataSources.IOpenDataSource Tortuga.Chain.DataSources.IRootDataSource.CreateOpenDataSource(System.Data.IDbConnection connection, System.Data.IDbTransaction? transaction) - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateOpenDataSource(connection, transaction); - } - - // Exposing trait Traits.RootDataSourceTrait - - /// - /// Creates a new transaction. - /// - /// - /// The caller of this method is responsible for closing the transaction. - public Tortuga.Chain.SQLite.SQLiteTransactionalDataSource BeginTransaction() - { - return __Trait0.BeginTransaction(); - } - - /// - /// Creates a new transaction. - /// - /// - /// - /// - /// The caller of this method is responsible for closing the transaction. - public Tortuga.Chain.SQLite.SQLiteTransactionalDataSource BeginTransaction(System.Nullable isolationLevel = default, System.Boolean forwardEvents = true) - { - return __Trait0.BeginTransaction(isolationLevel, forwardEvents); - } - - /// - /// Creates a new transaction. - /// - /// - /// - /// - /// - /// The caller of this method is responsible for closing the transaction. - public System.Threading.Tasks.Task BeginTransactionAsync(System.Nullable isolationLevel = default, System.Boolean forwardEvents = true, System.Threading.CancellationToken cancellationToken = default) - { - return __Trait0.BeginTransactionAsync(isolationLevel, forwardEvents, cancellationToken); - } - - /// - /// Creates a new transaction. - /// - /// - /// The caller of this method is responsible for closing the transaction. - public System.Threading.Tasks.Task BeginTransactionAsync() - { - return __Trait0.BeginTransactionAsync(); - } - - /// - /// Gets or sets the cache to be used by this data source. The default is .NET's System.Runtime.Caching.MemoryCache. - /// - public override Tortuga.Chain.Core.ICacheAdapter Cache - { - get => __Trait0.Cache; - } - /// - /// The composed connection string. - /// - /// This is created and cached by a ConnectionStringBuilder. - internal System.String ConnectionString - { - get => __Trait0.ConnectionString; - } - /// - /// Creates and opens a new Access connection - /// - /// - /// The caller of this method is responsible for closing the connection. - public System.Data.SQLite.SQLiteConnection CreateConnection() - { - return __Trait0.CreateConnection(); - } - - /// - /// Creates the connection asynchronous. - /// - /// The cancellation token. - /// - /// - /// The caller of this method is responsible for closing the connection. - /// - public System.Threading.Tasks.Task CreateConnectionAsync(System.Threading.CancellationToken cancellationToken = default) - { - return __Trait0.CreateConnectionAsync(cancellationToken); - } - - /// - /// Creates an open data source using the supplied connection and optional transaction. - /// - /// The connection to wrap. - /// The transaction to wrap. - /// IOpenDataSource. - /// WARNING: The caller of this method is responsible for closing the connection. - public Tortuga.Chain.SQLite.SQLiteOpenDataSource CreateOpenDataSource(System.Data.SQLite.SQLiteConnection connection, System.Data.SQLite.SQLiteTransaction? transaction = default) - { - return __Trait0.CreateOpenDataSource(connection, transaction); - } - - /// - /// Creates an open data source with a new connection. - /// - /// WARNING: The caller of this method is responsible for closing the connection. - public Tortuga.Chain.SQLite.SQLiteOpenDataSource CreateOpenDataSource() - { - return __Trait0.CreateOpenDataSource(); - } - - /// - /// The extension cache is used by extensions to store data source specific information. - /// - /// - /// The extension cache. - /// - protected override System.Collections.Concurrent.ConcurrentDictionary ExtensionCache - { - get => __Trait0.ExtensionCache; - } - - internal Tortuga.Chain.Core.ICacheAdapter m_Cache - { - get => __Trait0.m_Cache; - set => __Trait0.m_Cache = value; - } - /// - /// This object can be used to access the database connection string. - /// - private System.Data.SQLite.SQLiteConnectionStringBuilder m_ConnectionBuilder - { - get => __Trait0.m_ConnectionBuilder; - init => __Trait0.m_ConnectionBuilder = value; - } - - internal System.Collections.Concurrent.ConcurrentDictionary m_ExtensionCache - { - get => __Trait0.m_ExtensionCache; - set => __Trait0.m_ExtensionCache = value; - } - /// - /// Tests the connection. - /// - public override void TestConnection() - { - __Trait0.TestConnection(); - } - - /// - /// Tests the connection asynchronously. - /// - /// - public override System.Threading.Tasks.Task TestConnectionAsync() - { - return __Trait0.TestConnectionAsync(); - } - - /// - /// Creates a new data source with the provided cache. - /// - /// The cache. - /// - public Tortuga.Chain.SQLiteDataSource WithCache(Tortuga.Chain.Core.ICacheAdapter cache) - { - return __Trait0.WithCache(cache); - } - - /// - /// Creates a new data source with additional audit rules. - /// - /// The additional rules. - /// - public Tortuga.Chain.SQLiteDataSource WithRules(params Tortuga.Chain.AuditRules.AuditRule[] additionalRules) - { - return __Trait0.WithRules(additionalRules); - } - - /// - /// Creates a new data source with additional audit rules. - /// - /// The additional rules. - /// - public Tortuga.Chain.SQLiteDataSource WithRules(System.Collections.Generic.IEnumerable additionalRules) - { - return __Trait0.WithRules(additionalRules); - } - - /// - /// Creates a new data source with the indicated user. - /// - /// The user value. - /// - /// - /// This is used in conjunction with audit rules. - /// - public Tortuga.Chain.SQLiteDataSource WithUser(System.Object? userValue) - { - return __Trait0.WithUser(userValue); - } - - private partial Tortuga.Chain.SQLite.SQLiteTransactionalDataSource OnBeginTransaction(System.Nullable isolationLevel, System.Boolean forwardEvents ); - - private partial System.Threading.Tasks.Task OnBeginTransactionAsync(System.Nullable isolationLevel, System.Boolean forwardEvents, System.Threading.CancellationToken cancellationToken ); - - private partial Tortuga.Chain.SQLiteDataSource OnCloneWithOverrides(Tortuga.Chain.Core.ICacheAdapter? cache, System.Collections.Generic.IEnumerable? additionalRules, System.Object? userValue ); - - private partial System.Data.SQLite.SQLiteConnection OnCreateConnection( ); - - private partial System.Threading.Tasks.Task OnCreateConnectionAsync(System.Threading.CancellationToken cancellationToken ); - - private partial Tortuga.Chain.SQLite.SQLiteOpenDataSource OnCreateOpenDataSource(System.Data.SQLite.SQLiteConnection connection, System.Data.SQLite.SQLiteTransaction? transaction ); - - private void __RegisterTraits() - { - __TraitsRegistered = true; - __Trait0.OnBeginTransaction = OnBeginTransaction; - __Trait0.OnBeginTransactionAsync = OnBeginTransactionAsync; - __Trait0.OnCreateConnection = OnCreateConnection; - __Trait0.OnCreateConnectionAsync = OnCreateConnectionAsync; - __Trait0.OnCreateOpenDataSource = OnCreateOpenDataSource; - __Trait0.OnCloneWithOverrides = OnCloneWithOverrides; - } - - } -} diff --git a/Tortuga.Chain/Tortuga.Chain.SQLite/Tortuga.Chain.SQLite.csproj b/Tortuga.Chain/Tortuga.Chain.SQLite/Tortuga.Chain.SQLite.csproj index 2741b2c45..edcf5fb4f 100644 --- a/Tortuga.Chain/Tortuga.Chain.SQLite/Tortuga.Chain.SQLite.csproj +++ b/Tortuga.Chain/Tortuga.Chain.SQLite/Tortuga.Chain.SQLite.csproj @@ -87,7 +87,7 @@ - true + Generated @@ -95,7 +95,7 @@ - + diff --git a/Tortuga.Chain/Tortuga.Chain.SqlServer.MDS/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Logs.cs b/Tortuga.Chain/Tortuga.Chain.SqlServer.MDS/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Logs.cs deleted file mode 100644 index c06e7df8a..000000000 --- a/Tortuga.Chain/Tortuga.Chain.SqlServer.MDS/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Logs.cs +++ /dev/null @@ -1,33 +0,0 @@ -/* -Container class: Tortuga.Chain.SqlServerDataSource - Adding trait: Traits.RootDataSourceTrait -Container class: Tortuga.Chain.SqlServer.SqlServerDataSourceBase - Adding trait: Traits.SupportsDeleteAllTrait - Adding trait: Traits.SupportsTruncateTrait - Adding trait: Traits.SupportsSqlQueriesTrait - Adding trait: Traits.SupportsInsertBatchTrait> - Adding trait: Traits.SupportsDeleteByKeyListTrait - Adding trait: Traits.SupportsDeleteTrait - Adding trait: Traits.SupportsUpdateTrait - Adding trait: Traits.SupportsUpdateByKeyListTrait - Adding trait: Traits.SupportsInsertTrait - Adding trait: Traits.SupportsUpdateSet - Adding trait: Traits.SupportsDeleteSet - Adding trait: Traits.SupportsFromTrait - Adding trait: Traits.SupportsGetByKeyListTrait - Adding trait: Traits.SupportsUpsertTrait - Adding trait: Traits.SupportsInsertBulkTrait - Adding trait: Traits.SupportsScalarFunctionTrait - Adding trait: Traits.SupportsProcedureTrait - Adding trait: Traits.SupportsTableFunctionTrait - Adding trait: Traits.SupportsGetByColumnListTrait -Container class: Tortuga.Chain.SqlServer.SqlServerOpenDataSource - Adding trait: Traits.OpenDataSourceTrait -Container class: Tortuga.Chain.SqlServer.SqlServerTransactionalDataSource - Adding trait: Traits.TransactionalDataSourceTrait -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Traits.IHasExtensionCache.get_ExtensionCache -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Tortuga.Chain.DataSources.IOpenDataSource.get_AssociatedConnection -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Tortuga.Chain.DataSources.IOpenDataSource.get_AssociatedTransaction -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Tortuga.Chain.DataSources.IOpenDataSource.get_AssociatedConnection -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Tortuga.Chain.DataSources.IOpenDataSource.get_AssociatedTransaction -*/ \ No newline at end of file diff --git a/Tortuga.Chain/Tortuga.Chain.SqlServer.MDS/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.SqlServerDataSourceBase.cs b/Tortuga.Chain/Tortuga.Chain.SqlServer.MDS/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.SqlServerDataSourceBase.cs deleted file mode 100644 index f59dfd2c0..000000000 --- a/Tortuga.Chain/Tortuga.Chain.SqlServer.MDS/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.SqlServerDataSourceBase.cs +++ /dev/null @@ -1,1693 +0,0 @@ -//This file was generated by Tortuga Shipwright - -namespace Tortuga.Chain.SqlServer -{ - partial class SqlServerDataSourceBase: Tortuga.Chain.DataSources.ISupportsDeleteAll, Tortuga.Chain.DataSources.ISupportsTruncate, Tortuga.Chain.DataSources.ISupportsSqlQueries, Tortuga.Chain.DataSources.ISupportsInsertBatch, Tortuga.Chain.DataSources.ISupportsDeleteByKeyList, Tortuga.Chain.DataSources.ISupportsDeleteByKey, Tortuga.Chain.DataSources.ISupportsDelete, Tortuga.Chain.DataSources.ISupportsUpdate, Tortuga.Chain.DataSources.ISupportsUpdateByKey, Tortuga.Chain.DataSources.ISupportsUpdateByKeyList, Tortuga.Chain.DataSources.ISupportsInsert, Tortuga.Chain.DataSources.ISupportsUpdateSet, Tortuga.Chain.DataSources.ISupportsDeleteSet, Tortuga.Chain.DataSources.ISupportsFrom, Tortuga.Chain.DataSources.ISupportsGetByKeyList, Tortuga.Chain.DataSources.ISupportsGetByKey, Tortuga.Chain.DataSources.ISupportsUpsert, Tortuga.Chain.DataSources.ISupportsInsertBulk, Tortuga.Chain.DataSources.ISupportsScalarFunction, Tortuga.Chain.DataSources.ISupportsProcedure, Tortuga.Chain.DataSources.ISupportsTableFunction, Tortuga.Chain.DataSources.ISupportsGetByColumnList, Tortuga.Chain.DataSources.ISupportsGetByColumn, Traits.ICommandHelper, Traits.IInsertBatchHelper, Traits.IUpdateDeleteByKeyHelper, Traits.IUpdateDeleteHelper, Traits.IInsertHelper, Traits.IUpdateDeleteSetHelper, Traits.IFromHelper, Traits.IGetByKeyHelper, Traits.IUpsertHelper, Traits.IInsertBulkHelper, Traits.ICommandHelper - { - - private bool __TraitsRegistered; - - // These fields and/or properties hold the traits. They should not be referenced directly. - private Traits.SupportsDeleteAllTrait ___Trait0 = new(); - private Traits.SupportsDeleteAllTrait __Trait0 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait0; - } - } - private Traits.SupportsTruncateTrait ___Trait1 = new(); - private Traits.SupportsTruncateTrait __Trait1 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait1; - } - } - private Traits.SupportsSqlQueriesTrait ___Trait2 = new(); - private Traits.SupportsSqlQueriesTrait __Trait2 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait2; - } - } - private Traits.SupportsInsertBatchTrait> ___Trait3 = new(); - private Traits.SupportsInsertBatchTrait> __Trait3 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait3; - } - } - private Traits.SupportsDeleteByKeyListTrait ___Trait4 = new(); - private Traits.SupportsDeleteByKeyListTrait __Trait4 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait4; - } - } - private Traits.SupportsDeleteTrait ___Trait5 = new(); - private Traits.SupportsDeleteTrait __Trait5 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait5; - } - } - private Traits.SupportsUpdateTrait ___Trait6 = new(); - private Traits.SupportsUpdateTrait __Trait6 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait6; - } - } - private Traits.SupportsUpdateByKeyListTrait ___Trait7 = new(); - private Traits.SupportsUpdateByKeyListTrait __Trait7 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait7; - } - } - private Traits.SupportsInsertTrait ___Trait8 = new(); - private Traits.SupportsInsertTrait __Trait8 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait8; - } - } - private Traits.SupportsUpdateSet ___Trait9 = new(); - private Traits.SupportsUpdateSet __Trait9 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait9; - } - } - private Traits.SupportsDeleteSet ___Trait10 = new(); - private Traits.SupportsDeleteSet __Trait10 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait10; - } - } - private Traits.SupportsFromTrait ___Trait11 = new(); - private Traits.SupportsFromTrait __Trait11 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait11; - } - } - private Traits.SupportsGetByKeyListTrait ___Trait12 = new(); - private Traits.SupportsGetByKeyListTrait __Trait12 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait12; - } - } - private Traits.SupportsUpsertTrait ___Trait13 = new(); - private Traits.SupportsUpsertTrait __Trait13 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait13; - } - } - private Traits.SupportsInsertBulkTrait ___Trait14 = new(); - private Traits.SupportsInsertBulkTrait __Trait14 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait14; - } - } - private Traits.SupportsScalarFunctionTrait ___Trait15 = new(); - private Traits.SupportsScalarFunctionTrait __Trait15 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait15; - } - } - private Traits.SupportsProcedureTrait ___Trait16 = new(); - private Traits.SupportsProcedureTrait __Trait16 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait16; - } - } - private Traits.SupportsTableFunctionTrait ___Trait17 = new(); - private Traits.SupportsTableFunctionTrait __Trait17 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait17; - } - } - private Traits.SupportsGetByColumnListTrait ___Trait18 = new(); - private Traits.SupportsGetByColumnListTrait __Trait18 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait18; - } - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDelete - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDelete.Delete(System.String tableName, TArgument argumentValue, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDelete)__Trait5).Delete(tableName, argumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDelete.Delete(TArgument argumentValue, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDelete)__Trait5).Delete(argumentValue, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDeleteAll - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsDeleteAll.DeleteAll(System.String tableName) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteAll)__Trait0).DeleteAll(tableName); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsDeleteAll.DeleteAll() - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteAll)__Trait0).DeleteAll(); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDeleteByKey - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteByKey.DeleteByKey(System.String tableName, TKey key, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteByKey)__Trait4).DeleteByKey(tableName, key, options); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteByKey.DeleteByKey(System.String tableName, System.String key, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteByKey)__Trait4).DeleteByKey(tableName, key, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDeleteByKeyList - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteByKeyList.DeleteByKeyList(System.String tableName, System.Collections.Generic.IEnumerable keys, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteByKeyList)__Trait4).DeleteByKeyList(tableName, keys, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDeleteSet - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteSet.DeleteSet(System.String tableName, System.String whereClause) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteSet)__Trait10).DeleteSet(tableName, whereClause); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteSet.DeleteSet(System.String tableName, System.String whereClause, System.Object? argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteSet)__Trait10).DeleteSet(tableName, whereClause, argumentValue); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteSet.DeleteSet(System.String tableName, System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteSet)__Trait10).DeleteSet(tableName, filterValue, filterOptions); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsFrom - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String tableOrViewName) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(tableOrViewName); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String tableOrViewName, System.String whereClause) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(tableOrViewName, whereClause); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String tableOrViewName, System.String whereClause, System.Object argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(tableOrViewName, whereClause, argumentValue); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String tableOrViewName, System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(tableOrViewName, filterValue, filterOptions); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From() - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String whereClause) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(whereClause); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String whereClause, System.Object argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(whereClause, argumentValue); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.Object filterValue) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(filterValue); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsGetByColumn - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String tableName, System.String columnName, TKey key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait18).GetByColumn(tableName, columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String tableName, System.String columnName, System.String key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait18).GetByColumn(tableName, columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, TKey key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait18).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.String key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait18).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.Int16 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait18).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.Int32 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait18).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.Int64 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait18).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.Guid key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait18).GetByColumn(columnName, key); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsGetByColumnList - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String tableName, System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait18).GetByColumnList(tableName, columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait18).GetByColumnList(columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait18).GetByColumnList(columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait18).GetByColumnList(columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait18).GetByColumnList(columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait18).GetByColumnList(columnName, keys); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsGetByKey - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.String tableName, TKey key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(tableName, key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.String tableName, System.String key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(tableName, key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(TKey key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.String key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.Int16 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.Int32 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.Int64 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.Guid key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(key); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsGetByKeyList - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.String tableName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(tableName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(keys); - } - - [System.Obsolete(@"This will be replaced by GetByColumn")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.String tableName, System.String keyColumn, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(tableName, keyColumn, keys); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsInsert - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsInsert.Insert(System.String tableName, TArgument argumentValue, Tortuga.Chain.InsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsInsert)__Trait8).Insert(tableName, argumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsInsert.Insert(TArgument argumentValue, Tortuga.Chain.InsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsInsert)__Trait8).Insert(argumentValue, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsInsertBatch - Tortuga.Chain.CommandBuilders.IDbCommandBuilder Tortuga.Chain.DataSources.ISupportsInsertBatch.InsertBatch(System.Collections.Generic.IEnumerable objects, Tortuga.Chain.InsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBatch)__Trait3).InsertBatch(objects, options); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBatch.InsertMultipleBatch(System.String tableName, System.Collections.Generic.IReadOnlyList objects, Tortuga.Chain.InsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBatch)__Trait3).InsertMultipleBatch(tableName, objects, options); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBatch.InsertMultipleBatch(System.Collections.Generic.IReadOnlyList objects, Tortuga.Chain.InsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBatch)__Trait3).InsertMultipleBatch(objects, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsInsertBulk - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBulk.InsertBulk(System.String tableName, System.Data.DataTable dataTable) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBulk)__Trait14).InsertBulk(tableName, dataTable); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBulk.InsertBulk(System.String tableName, System.Data.IDataReader dataReader) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBulk)__Trait14).InsertBulk(tableName, dataReader); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBulk.InsertBulk(System.String tableName, System.Collections.Generic.IEnumerable objects) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBulk)__Trait14).InsertBulk(tableName, objects); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBulk.InsertBulk(System.Data.DataTable dataTable) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBulk)__Trait14).InsertBulk(dataTable); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBulk.InsertBulk(System.Data.IDataReader dataReader) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBulk)__Trait14).InsertBulk(dataReader); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBulk.InsertBulk(System.Collections.Generic.IEnumerable objects) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBulk)__Trait14).InsertBulk(objects); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsProcedure - Tortuga.Chain.CommandBuilders.IProcedureDbCommandBuilder Tortuga.Chain.DataSources.ISupportsProcedure.Procedure(System.String procedureName) - { - return ((Tortuga.Chain.DataSources.ISupportsProcedure)__Trait16).Procedure(procedureName); - } - - Tortuga.Chain.CommandBuilders.IProcedureDbCommandBuilder Tortuga.Chain.DataSources.ISupportsProcedure.Procedure(System.String procedureName, System.Object argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsProcedure)__Trait16).Procedure(procedureName, argumentValue); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsScalarFunction - Tortuga.Chain.CommandBuilders.IScalarDbCommandBuilder Tortuga.Chain.DataSources.ISupportsScalarFunction.ScalarFunction(System.String scalarFunctionName) - { - return ((Tortuga.Chain.DataSources.ISupportsScalarFunction)__Trait15).ScalarFunction(scalarFunctionName); - } - - Tortuga.Chain.CommandBuilders.IScalarDbCommandBuilder Tortuga.Chain.DataSources.ISupportsScalarFunction.ScalarFunction(System.String scalarFunctionName, System.Object functionArgumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsScalarFunction)__Trait15).ScalarFunction(scalarFunctionName, functionArgumentValue); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsSqlQueries - Tortuga.Chain.CommandBuilders.IMultipleTableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsSqlQueries.Sql(System.String sqlStatement, System.Object argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsSqlQueries)__Trait2).Sql(sqlStatement, argumentValue); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsTableFunction - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsTableFunction.TableFunction(System.String functionName) - { - return ((Tortuga.Chain.DataSources.ISupportsTableFunction)__Trait17).TableFunction(functionName); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsTableFunction.TableFunction(System.String functionName, System.Object functionArgumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsTableFunction)__Trait17).TableFunction(functionName, functionArgumentValue); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsTruncate - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsTruncate.Truncate(System.String tableName) - { - return ((Tortuga.Chain.DataSources.ISupportsTruncate)__Trait1).Truncate(tableName); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsTruncate.Truncate() - { - return ((Tortuga.Chain.DataSources.ISupportsTruncate)__Trait1).Truncate(); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpdate - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdate.Update(System.String tableName, TArgument argumentValue, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdate)__Trait6).Update(tableName, argumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdate.Update(TArgument argumentValue, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdate)__Trait6).Update(argumentValue, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpdateByKey - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateByKey.UpdateByKey(System.String tableName, TArgument newValues, TKey key, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateByKey)__Trait7).UpdateByKey(tableName, newValues, key, options); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateByKey.UpdateByKey(System.String tableName, TArgument newValues, System.String key, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateByKey)__Trait7).UpdateByKey(tableName, newValues, key, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpdateByKeyList - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateByKeyList.UpdateByKeyList(System.String tableName, TArgument newValues, System.Collections.Generic.IEnumerable keys, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateByKeyList)__Trait7).UpdateByKeyList(tableName, newValues, keys, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpdateSet - Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateSet.UpdateSet(System.String tableName, System.String updateExpression, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateSet)__Trait9).UpdateSet(tableName, updateExpression, options); - } - - Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateSet.UpdateSet(System.String tableName, System.String updateExpression, System.Object? updateArgumentValue, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateSet)__Trait9).UpdateSet(tableName, updateExpression, updateArgumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateSet.UpdateSet(System.String tableName, System.Object newValues, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateSet)__Trait9).UpdateSet(tableName, newValues, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpsert - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpsert.Upsert(System.String tableName, TArgument argumentValue, Tortuga.Chain.UpsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpsert)__Trait13).Upsert(tableName, argumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpsert.Upsert(TArgument argumentValue, Tortuga.Chain.UpsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpsert)__Trait13).Upsert(argumentValue, options); - } - - // Exposing trait Traits.SupportsDeleteAllTrait - - /// Deletes all records in the specified table. - /// Name of the table to clear. - /// The number of rows deleted or null if the database doesn't provide that information. - public Tortuga.Chain.ILink DeleteAll(Tortuga.Chain.SqlServer.SqlServerObjectName tableName) - { - return __Trait0.DeleteAll(tableName); - } - - /// Deletes all records in the specified table. - /// This class used to determine which table to clear - /// The number of rows deleted or null if the database doesn't provide that information. - public Tortuga.Chain.ILink DeleteAll()where TObject : class - { - return __Trait0.DeleteAll(); - } - - // Exposing trait Traits.SupportsDeleteByKeyListTrait - - /// - /// Delete a record by its primary key. - /// - /// - /// Name of the table. - /// The key. - /// The options. - /// MultipleRowDbCommandBuilder<TCommand, TParameter>. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, T key, Tortuga.Chain.DeleteOptions options = 0)where T : struct - { - return __Trait4.DeleteByKey(tableName, key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Name of the table. - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.String key, Tortuga.Chain.DeleteOptions options = 0) - { - return __Trait4.DeleteByKey(tableName, key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Used to determine the table name - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(System.Guid key, Tortuga.Chain.DeleteOptions options = 0)where TObject : class - { - return __Trait4.DeleteByKey(key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Used to determine the table name - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(System.Int64 key, Tortuga.Chain.DeleteOptions options = 0)where TObject : class - { - return __Trait4.DeleteByKey(key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Used to determine the table name - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(System.Int32 key, Tortuga.Chain.DeleteOptions options = 0)where TObject : class - { - return __Trait4.DeleteByKey(key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Used to determine the table name - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(System.String key, Tortuga.Chain.DeleteOptions options = 0)where TObject : class - { - return __Trait4.DeleteByKey(key, options); - } - - /// - /// Delete multiple rows by key. - /// - /// The type of the t key. - /// Name of the table. - /// The keys. - /// Delete options. - /// - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteByKeyList(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.Collections.Generic.IEnumerable keys, Tortuga.Chain.DeleteOptions options = 0) - { - return __Trait4.DeleteByKeyList(tableName, keys, options); - } - - // Exposing trait Traits.SupportsDeleteSet - - /// - /// Delete multiple records using a filter object. - /// - /// Name of the table. - /// The filter value. - /// The options. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteSet(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions = 0) - { - return __Trait10.DeleteSet(tableName, filterValue, filterOptions); - } - - /// - /// Delete multiple records using a filter object. - /// - /// The filter value. - /// The options. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteSet(System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions = 0)where TObject : class - { - return __Trait10.DeleteSet(filterValue, filterOptions); - } - - /// - /// Delete multiple records using a where expression. - /// - /// Name of the table. - /// The where clause. - /// The argument value for the where clause. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteSet(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.String whereClause, System.Object? argumentValue = default) - { - return __Trait10.DeleteSet(tableName, whereClause, argumentValue); - } - - /// - /// Delete multiple records using a where expression. - /// - /// The where clause. - /// The argument value for the where clause. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteSet(System.String whereClause, System.Object? argumentValue = default)where TObject : class - { - return __Trait10.DeleteSet(whereClause, argumentValue); - } - - // Exposing trait Traits.SupportsDeleteTrait - - /// - /// Creates a command to perform a delete operation. - /// - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Delete(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, TArgument argumentValue, Tortuga.Chain.DeleteOptions options = 0)where TArgument : class - { - return __Trait5.Delete(tableName, argumentValue, options); - } - - /// - /// Delete an object model from the table indicated by the class's Table attribute. - /// - /// - /// The argument value. - /// The delete options. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Delete(TArgument argumentValue, Tortuga.Chain.DeleteOptions options = 0)where TArgument : class - { - return __Trait5.Delete(argumentValue, options); - } - - // Exposing trait Traits.SupportsFromTrait - - /// - /// Creates an operation to directly query a table or view - /// - /// - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(Tortuga.Chain.SqlServer.SqlServerObjectName tableOrViewName) - { - return __Trait11.From(tableOrViewName); - } - - /// - /// Creates an operation to directly query a table or view - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(Tortuga.Chain.SqlServer.SqlServerObjectName tableOrViewName, System.String whereClause) - { - return __Trait11.From(tableOrViewName, whereClause); - } - - /// - /// Creates an operation to directly query a table or view - /// - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(Tortuga.Chain.SqlServer.SqlServerObjectName tableOrViewName, System.String whereClause, System.Object argumentValue) - { - return __Trait11.From(tableOrViewName, whereClause, argumentValue); - } - - /// - /// Creates an operation to directly query a table or view - /// - /// Name of the table or view. - /// The filter value. - /// The filter options. - /// TableDbCommandBuilder<TCommand, TParameter, TLimitOption>. - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(Tortuga.Chain.SqlServer.SqlServerObjectName tableOrViewName, System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions = 0) - { - return __Trait11.From(tableOrViewName, filterValue, filterOptions); - } - - /// - /// This is used to directly query a table or view. - /// - /// - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From()where TObject : class - { - return __Trait11.From(); - } - - /// - /// This is used to directly query a table or view. - /// - /// The type of the object. - /// The where clause. Do not prefix this clause with "WHERE". - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(System.String whereClause)where TObject : class - { - return __Trait11.From(whereClause); - } - - /// - /// This is used to directly query a table or view. - /// - /// The type of the object. - /// The where clause. Do not prefix this clause with "WHERE". - /// Optional argument value. Every property in the argument value must have a matching parameter in the WHERE clause - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(System.String whereClause, System.Object argumentValue)where TObject : class - { - return __Trait11.From(whereClause, argumentValue); - } - - /// - /// This is used to directly query a table or view. - /// - /// The type of the object. - /// The filter value is used to generate a simple AND style WHERE clause. - /// The filter options. - /// TableDbCommandBuilder<TCommand, TParameter, TLimitOption, TObject>. - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions = 0)where TObject : class - { - return __Trait11.From(filterValue, filterOptions); - } - - // Exposing trait Traits.SupportsGetByColumnListTrait - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. Used to determine which table will be read. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.Guid key)where TObject : class - { - return __Trait18.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.Int64 key)where TObject : class - { - return __Trait18.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.Int16 key)where TObject : class - { - return __Trait18.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.Int32 key)where TObject : class - { - return __Trait18.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.String key)where TObject : class - { - return __Trait18.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The type of the key. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, TKey key)where TObject : class - { - return __Trait18.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// Name of the table. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.String columnName, System.String key) - { - return __Trait18.GetByColumn(tableName, columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// - /// Name of the table. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.String columnName, TKey key) - { - return __Trait18.GetByColumn(tableName, columnName, key); - } - - /// - /// Gets a set of records by their primary key. - /// - /// - /// Name of the table. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return __Trait18.GetByColumnList(tableName, columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The type of the key. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait18.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait18.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait18.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait18.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait18.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait18.GetByColumnList(columnName, keys); - } - - // Exposing trait Traits.SupportsGetByKeyListTrait - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. Used to determine which table will be read. - /// The key. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.Guid key)where TObject : class - { - return __Trait12.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The key. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.Int64 key)where TObject : class - { - return __Trait12.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The key. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.Int16 key)where TObject : class - { - return __Trait12.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The key. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.Int32 key)where TObject : class - { - return __Trait12.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The key. - /// - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.String key)where TObject : class - { - return __Trait12.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The type of the key. - /// The key. - /// - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(TKey key)where TObject : class - { - return __Trait12.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// Name of the table. - /// The key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.String key) - { - return __Trait12.GetByKey(tableName, key); - } - - /// - /// Gets a record by its primary key. - /// - /// - /// Name of the table. - /// The key. - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, TKey key) - { - return __Trait12.GetByKey(tableName, key); - } - - /// - /// Gets a set of records by their primary key. - /// - /// - /// Name of the table. - /// The keys. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.Collections.Generic.IEnumerable keys) - { - return __Trait12.GetByKeyList(tableName, keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The type of the key. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait12.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait12.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait12.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait12.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait12.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait12.GetByKeyList(keys); - } - - /// Gets a set of records by an unique key. - /// The type of the t key. - /// Name of the table. - /// Name of the key column. This should be a primary or unique key, but that's not enforced. - /// The keys. - /// IMultipleRowDbCommandBuilder. - [System.Obsolete(@"This will be replaced by GetByColumn")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.String tableName, System.String keyColumn, System.Collections.Generic.IEnumerable keys) - { - return __Trait12.GetByKeyList(tableName, keyColumn, keys); - } - - // Exposing trait Traits.SupportsInsertBatchTrait> - - /// - /// Inserts the batch of records as one operation. - /// - /// - /// Name of the table. - /// The objects to insert. - /// The options. - /// MultipleRowDbCommandBuilder<SqlCommand, SqlParameter>. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder InsertBatch(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.Collections.Generic.IEnumerable objects, Tortuga.Chain.InsertOptions options = 0)where TObject : class - { - return __Trait3.InsertBatch(tableName, objects, options); - } - - /// - /// Inserts the batch of records as one operation. - /// - /// - /// The objects to insert. - /// The options. - /// MultipleRowDbCommandBuilder<SqlCommand, SqlParameter>. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder InsertBatch(System.Collections.Generic.IEnumerable objects, Tortuga.Chain.InsertOptions options = 0)where TObject : class - { - return __Trait3.InsertBatch(objects, options); - } - - /// - /// Performs a series of batch inserts. - /// - /// The type of the t object. - /// Name of the table. - /// The objects. - /// The options. - /// Tortuga.Chain.ILink<System.Int32>. - /// This operation is not atomic. It should be wrapped in a transaction. - public Tortuga.Chain.ILink InsertMultipleBatch(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.Collections.Generic.IEnumerable objects, Tortuga.Chain.InsertOptions options = 0)where TObject : class - { - return __Trait3.InsertMultipleBatch(tableName, objects, options); - } - - /// - /// Inserts the batch of records as one operation. - /// - /// - /// The objects to insert. - /// The options. - /// MultipleRowDbCommandBuilder<SqlCommand, SqlParameter>. - public Tortuga.Chain.ILink InsertMultipleBatch(System.Collections.Generic.IReadOnlyList objects, Tortuga.Chain.InsertOptions options = 0)where TObject : class - { - return __Trait3.InsertMultipleBatch(objects, options); - } - - // Exposing trait Traits.SupportsInsertBulkTrait - - /// - /// Inserts the batch of records using bulk insert. - /// - /// Name of the table. - /// The data table. - /// TInsertBulkCommand. - public Tortuga.Chain.SqlServer.CommandBuilders.SqlServerInsertBulk InsertBulk(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.Data.DataTable dataTable) - { - return __Trait14.InsertBulk(tableName, dataTable); - } - - /// - /// Inserts the batch of records using bulk insert. - /// - /// Name of the table. - /// The data reader. - /// TInsertBulkCommand. - public Tortuga.Chain.SqlServer.CommandBuilders.SqlServerInsertBulk InsertBulk(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.Data.IDataReader dataReader) - { - return __Trait14.InsertBulk(tableName, dataReader); - } - - /// - /// Inserts the batch of records using bulk insert. - /// - /// - /// Name of the table. - /// The objects. - /// TInsertBulkCommand. - public Tortuga.Chain.SqlServer.CommandBuilders.SqlServerInsertBulk InsertBulk(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.Collections.Generic.IEnumerable objects)where TObject : class - { - return __Trait14.InsertBulk(tableName, objects); - } - - /// - /// Inserts the batch of records using bulk insert. - /// - /// The type of the object. - /// The data table. - /// - /// TInsertBulkCommand. - /// - public Tortuga.Chain.SqlServer.CommandBuilders.SqlServerInsertBulk InsertBulk(System.Data.DataTable dataTable)where TObject : class - { - return __Trait14.InsertBulk(dataTable); - } - - /// - /// Inserts the batch of records using bulk insert. - /// - /// The type of the object. - /// The data reader. - /// - /// TInsertBulkCommand. - /// - public Tortuga.Chain.SqlServer.CommandBuilders.SqlServerInsertBulk InsertBulk(System.Data.IDataReader dataReader)where TObject : class - { - return __Trait14.InsertBulk(dataReader); - } - - /// - /// Inserts the batch of records using bulk insert. - /// - /// The type of the object. - /// The objects. - /// - /// TInsertBulkCommand. - /// - public Tortuga.Chain.SqlServer.CommandBuilders.SqlServerInsertBulk InsertBulk(System.Collections.Generic.IEnumerable objects)where TObject : class - { - return __Trait14.InsertBulk(objects); - } - - // Exposing trait Traits.SupportsInsertTrait - - /// - /// Inserts an object into the specified table. - /// - /// - /// The argument value. - /// The options for how the insert occurs. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Insert(TArgument argumentValue, Tortuga.Chain.InsertOptions options = 0)where TArgument : class - { - return __Trait8.Insert(argumentValue, options); - } - - /// - /// Creates an operation used to perform an insert operation. - /// - /// Name of the table. - /// The argument value. - /// The options. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Insert(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, TArgument argumentValue, Tortuga.Chain.InsertOptions options = 0)where TArgument : class - { - return __Trait8.Insert(tableName, argumentValue, options); - } - - // Exposing trait Traits.SupportsProcedureTrait - - /// - /// Loads a procedure definition - /// - /// Name of the procedure. - /// - public Tortuga.Chain.CommandBuilders.ProcedureDbCommandBuilder Procedure(Tortuga.Chain.SqlServer.SqlServerObjectName procedureName) - { - return __Trait16.Procedure(procedureName); - } - - /// - /// Loads a procedure definition and populates it using the parameter object. - /// - /// Name of the procedure. - /// The argument value. - /// - /// - /// The procedure's definition is loaded from the database and used to determine which properties on the parameter object to use. - /// - public Tortuga.Chain.CommandBuilders.ProcedureDbCommandBuilder Procedure(Tortuga.Chain.SqlServer.SqlServerObjectName procedureName, System.Object argumentValue) - { - return __Trait16.Procedure(procedureName, argumentValue); - } - - // Exposing trait Traits.SupportsScalarFunctionTrait - - /// - /// This is used to query a scalar function. - /// - /// Name of the scalar function. - /// - public Tortuga.Chain.CommandBuilders.ScalarDbCommandBuilder ScalarFunction(Tortuga.Chain.SqlServer.SqlServerObjectName scalarFunctionName) - { - return __Trait15.ScalarFunction(scalarFunctionName); - } - - /// - /// This is used to query a scalar function. - /// - /// Name of the scalar function. - /// The function argument. - /// - public Tortuga.Chain.CommandBuilders.ScalarDbCommandBuilder ScalarFunction(Tortuga.Chain.SqlServer.SqlServerObjectName scalarFunctionName, System.Object functionArgumentValue) - { - return __Trait15.ScalarFunction(scalarFunctionName, functionArgumentValue); - } - - // Exposing trait Traits.SupportsSqlQueriesTrait - - /// - /// Creates a operation based on a raw SQL statement. - /// - /// The SQL statement. - /// - public Tortuga.Chain.CommandBuilders.MultipleTableDbCommandBuilder Sql(System.String sqlStatement) - { - return __Trait2.Sql(sqlStatement); - } - - /// - /// Creates a operation based on a raw SQL statement. - /// - /// The SQL statement. - /// The argument value. - /// SqlServerSqlCall. - public Tortuga.Chain.CommandBuilders.MultipleTableDbCommandBuilder Sql(System.String sqlStatement, System.Object argumentValue) - { - return __Trait2.Sql(sqlStatement, argumentValue); - } - - // Exposing trait Traits.SupportsTableFunctionTrait - - /// - /// This is used to query a table valued function. - /// - /// Name of the table function. - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder TableFunction(Tortuga.Chain.SqlServer.SqlServerObjectName tableFunctionName) - { - return __Trait17.TableFunction(tableFunctionName); - } - - /// - /// This is used to query a table valued function. - /// - /// Name of the table function. - /// The function argument. - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder TableFunction(Tortuga.Chain.SqlServer.SqlServerObjectName tableFunctionName, System.Object functionArgumentValue) - { - return __Trait17.TableFunction(tableFunctionName, functionArgumentValue); - } - - // Exposing trait Traits.SupportsTruncateTrait - - /// Truncates the specified table. - /// Name of the table to Truncate. - /// The number of rows deleted or null if the database doesn't provide that information. - public Tortuga.Chain.ILink Truncate(Tortuga.Chain.SqlServer.SqlServerObjectName tableName) - { - return __Trait1.Truncate(tableName); - } - - /// Truncates the specified table. - /// This class used to determine which table to Truncate - /// The number of rows deleted or null if the database doesn't provide that information. - public Tortuga.Chain.ILink Truncate()where TObject : class - { - return __Trait1.Truncate(); - } - - // Exposing trait Traits.SupportsUpdateByKeyListTrait - - /// - /// Update a record by its primary key. - /// - /// The type of the t argument. - /// - /// Name of the table. - /// The new values to use. - /// The key. - /// The options. - /// MultipleRowDbCommandBuilder<AbstractCommand, AbstractParameter>. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder UpdateByKey(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, TArgument newValues, TKey key, Tortuga.Chain.UpdateOptions options = 0)where TKey : struct - { - return __Trait7.UpdateByKey(tableName, newValues, key, options); - } - - /// - /// Update a record by its primary key. - /// - /// The type of the t argument. - /// Name of the table. - /// The new values to use. - /// The key. - /// The options. - /// MultipleRowDbCommandBuilder<OleDbCommand, OleDbParameter>. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder UpdateByKey(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, TArgument newValues, System.String key, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait7.UpdateByKey(tableName, newValues, key, options); - } - - /// - /// Update multiple rows by key. - /// - /// The type of the t argument. - /// The type of the t key. - /// Name of the table. - /// The new values to use. - /// The keys. - /// Update options. - /// MultipleRowDbCommandBuilder<OleDbCommand, OleDbParameter>. - /// - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder UpdateByKeyList(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, TArgument newValues, System.Collections.Generic.IEnumerable keys, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait7.UpdateByKeyList(tableName, newValues, keys, options); - } - - // Exposing trait Traits.SupportsUpdateSet - - /// - /// Update multiple records using an update expression. - /// - /// Name of the table. - /// The update expression. - /// The argument value. - /// The update options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.String updateExpression, System.Object? updateArgumentValue, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait9.UpdateSet(tableName, updateExpression, updateArgumentValue, options); - } - - /// - /// Update multiple records using an update value. - /// - /// Name of the table. - /// The new values to use. - /// The options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.Object newValues, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait9.UpdateSet(tableName, newValues, options); - } - - /// - /// Update multiple records using an update expression. - /// - /// Name of the table. - /// The update expression. - /// The update options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.String updateExpression, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait9.UpdateSet(tableName, updateExpression, options); - } - - /// - /// Update multiple records using an update expression. - /// - /// Class used to determine the table name. - /// The update expression. - /// The argument for the update expression. - /// The update options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(System.String updateExpression, System.Object updateArgumentValue, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait9.UpdateSet(updateExpression, updateArgumentValue, options); - } - - /// - /// Update multiple records using an update value. - /// - /// Class used to determine the table name. - /// The new values to use. - /// The options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(System.Object newValues, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait9.UpdateSet(newValues, options); - } - - /// - /// Update multiple records using an update expression. - /// - /// Class used to determine the table name. - /// The update expression. - /// The update options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(System.String updateExpression, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait9.UpdateSet(updateExpression, options); - } - - // Exposing trait Traits.SupportsUpdateTrait - - /// - /// Update an object in the specified table. - /// - /// - /// The argument value. - /// The update options. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Update(TArgument argumentValue, Tortuga.Chain.UpdateOptions options = 0)where TArgument : class - { - return __Trait6.Update(argumentValue, options); - } - - /// - /// Update an object in the specified table. - /// - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Update(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, TArgument argumentValue, Tortuga.Chain.UpdateOptions options = 0)where TArgument : class - { - return __Trait6.Update(tableName, argumentValue, options); - } - - // Exposing trait Traits.SupportsUpsertTrait - - /// - /// Creates a operation used to perform an "upsert" operation. - /// - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Upsert(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, TArgument argumentValue, Tortuga.Chain.UpsertOptions options = 0)where TArgument : class - { - return __Trait13.Upsert(tableName, argumentValue, options); - } - - /// - /// Perform an insert or update operation as appropriate. - /// - /// - /// The argument value. - /// The options for how the insert/update occurs. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Upsert(TArgument argumentValue, Tortuga.Chain.UpsertOptions options = 0)where TArgument : class - { - return __Trait13.Upsert(argumentValue, options); - } - - private partial Tortuga.Chain.ILink OnDeleteAll(Tortuga.Chain.SqlServer.SqlServerObjectName tableName ); - - private partial Tortuga.Chain.CommandBuilders.ProcedureDbCommandBuilder OnProcedure(Tortuga.Chain.SqlServer.SqlServerObjectName procedureName, System.Object? argumentValue ); - - private partial Tortuga.Chain.CommandBuilders.ScalarDbCommandBuilder OnScalarFunction(Tortuga.Chain.SqlServer.SqlServerObjectName scalarFunctionName, System.Object? argumentValue ); - - private partial Tortuga.Chain.CommandBuilders.MultipleTableDbCommandBuilder OnSql(System.String sqlStatement, System.Object? argumentValue ); - - private partial Tortuga.Chain.CommandBuilders.TableDbCommandBuilder OnTableFunction(Tortuga.Chain.SqlServer.SqlServerObjectName tableFunctionName, System.Object? functionArgumentValue ); - - private partial Tortuga.Chain.ILink OnTruncate(Tortuga.Chain.SqlServer.SqlServerObjectName tableName ); - - private void __RegisterTraits() - { - __TraitsRegistered = true; - __Trait0.OnDeleteAll = OnDeleteAll; - __Trait0.DataSource = this; - __Trait1.OnTruncate = OnTruncate; - __Trait1.DataSource = this; - __Trait2.OnSql = OnSql; - __Trait3.DataSource = this; - __Trait4.DataSource = this; - __Trait5.DataSource = this; - __Trait6.DataSource = this; - __Trait7.DataSource = this; - __Trait8.DataSource = this; - __Trait9.DataSource = this; - __Trait10.DataSource = this; - __Trait11.DataSource = this; - __Trait12.DataSource = this; - __Trait13.DataSource = this; - __Trait14.DataSource = this; - __Trait15.OnScalarFunction = OnScalarFunction; - __Trait15.DataSource = this; - __Trait16.OnProcedure = OnProcedure; - __Trait16.DataSource = this; - __Trait17.OnTableFunction = OnTableFunction; - __Trait17.DataSource = this; - __Trait18.DataSource = this; - } - - } -} diff --git a/Tortuga.Chain/Tortuga.Chain.SqlServer.MDS/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.SqlServerOpenDataSource.cs b/Tortuga.Chain/Tortuga.Chain.SqlServer.MDS/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.SqlServerOpenDataSource.cs deleted file mode 100644 index b1f4cc75b..000000000 --- a/Tortuga.Chain/Tortuga.Chain.SqlServer.MDS/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.SqlServerOpenDataSource.cs +++ /dev/null @@ -1,192 +0,0 @@ -//This file was generated by Tortuga Shipwright - -namespace Tortuga.Chain.SqlServer -{ - partial class SqlServerOpenDataSource: Tortuga.Chain.DataSources.IOpenDataSource - { - - private bool __TraitsRegistered; - - // These fields and/or properties hold the traits. They should not be referenced directly. - private Traits.OpenDataSourceTrait ___Trait0 = new(); - private Traits.OpenDataSourceTrait __Trait0 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait0; - } - } - - // Explicit interface implementation Tortuga.Chain.DataSources.IOpenDataSource - System.Data.Common.DbConnection Tortuga.Chain.DataSources.IOpenDataSource.AssociatedConnection - { - get => ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).AssociatedConnection; - } - System.Data.Common.DbTransaction? Tortuga.Chain.DataSources.IOpenDataSource.AssociatedTransaction - { - get => ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).AssociatedTransaction; - } - void Tortuga.Chain.DataSources.IOpenDataSource.Close() - { - ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).Close(); - } - - System.Boolean Tortuga.Chain.DataSources.IOpenDataSource.TryCommit() - { - return ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).TryCommit(); - } - - System.Boolean Tortuga.Chain.DataSources.IOpenDataSource.TryRollback() - { - return ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).TryRollback(); - } - - // Exposing trait Traits.OpenDataSourceTrait - - /// - /// Returns the associated connection. - /// - /// The associated connection. - public Microsoft.Data.SqlClient.SqlConnection AssociatedConnection - { - get => __Trait0.AssociatedConnection; - } - /// - /// Returns the associated transaction. - /// - /// The associated transaction. - public Microsoft.Data.SqlClient.SqlTransaction? AssociatedTransaction - { - get => __Trait0.AssociatedTransaction; - } - /// - /// Gets or sets the cache to be used by this data source. The default is .NET's System.Runtime.Caching.MemoryCache. - /// - public override Tortuga.Chain.Core.ICacheAdapter Cache - { - get => __Trait0.Cache; - } - /// - /// Closes the connection and transaction associated with this data source. - /// - public void Close() - { - __Trait0.Close(); - } - - /// - /// Gets the database metadata. - /// - public override Tortuga.Chain.SqlServer.SqlServerMetadataCache DatabaseMetadata - { - get => __Trait0.DatabaseMetadata; - } - /// - /// The extension cache is used by extensions to store data source specific information. - /// - /// - /// The extension cache. - /// - protected override System.Collections.Concurrent.ConcurrentDictionary ExtensionCache - { - get => __Trait0.ExtensionCache; - } - - private Tortuga.Chain.SqlServerDataSource m_BaseDataSource - { - get => __Trait0.m_BaseDataSource; - init => __Trait0.m_BaseDataSource = value; - } - - private Microsoft.Data.SqlClient.SqlConnection m_Connection - { - get => __Trait0.m_Connection; - init => __Trait0.m_Connection = value; - } - - private Microsoft.Data.SqlClient.SqlTransaction? m_Transaction - { - get => __Trait0.m_Transaction; - init => __Trait0.m_Transaction = value; - } - /// - /// Tests the connection. - /// - public override void TestConnection() - { - __Trait0.TestConnection(); - } - - /// - /// Tests the connection asynchronously. - /// - /// - public override System.Threading.Tasks.Task TestConnectionAsync() - { - return __Trait0.TestConnectionAsync(); - } - - /// - /// Tries the commit the transaction associated with this data source. - /// - /// True if there was an open transaction associated with this data source, otherwise false. - public System.Boolean TryCommit() - { - return __Trait0.TryCommit(); - } - - /// - /// Tries to rollback the transaction associated with this data source. - /// - /// True if there was an open transaction associated with this data source, otherwise false. - public System.Boolean TryRollback() - { - return __Trait0.TryRollback(); - } - - /// - /// Modifies this data source with additional audit rules. - /// - /// The additional rules. - /// - public Tortuga.Chain.SqlServer.SqlServerOpenDataSource WithRules(params Tortuga.Chain.AuditRules.AuditRule[] additionalRules) - { - return __Trait0.WithRules(additionalRules); - } - - /// - /// Modifies this data source with additional audit rules. - /// - /// The additional rules. - /// - public Tortuga.Chain.SqlServer.SqlServerOpenDataSource WithRules(System.Collections.Generic.IEnumerable additionalRules) - { - return __Trait0.WithRules(additionalRules); - } - - /// - /// Modifies this data source to include the indicated user. - /// - /// The user value. - /// - /// - /// This is used in conjunction with audit rules. - /// - public Tortuga.Chain.SqlServer.SqlServerOpenDataSource WithUser(System.Object? userValue) - { - return __Trait0.WithUser(userValue); - } - - private partial Tortuga.Chain.SqlServer.SqlServerOpenDataSource OnOverride(System.Collections.Generic.IEnumerable? additionalRules, System.Object? userValue ); - - private void __RegisterTraits() - { - __TraitsRegistered = true; - __Trait0.OnOverride = OnOverride; - __Trait0.Container = this; - __Trait0.DisposableContainer = this as Traits.IHasOnDispose; - } - - } -} diff --git a/Tortuga.Chain/Tortuga.Chain.SqlServer.MDS/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.SqlServerTransactionalDataSource.cs b/Tortuga.Chain/Tortuga.Chain.SqlServer.MDS/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.SqlServerTransactionalDataSource.cs deleted file mode 100644 index 4c9abb7c8..000000000 --- a/Tortuga.Chain/Tortuga.Chain.SqlServer.MDS/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.SqlServerTransactionalDataSource.cs +++ /dev/null @@ -1,181 +0,0 @@ -//This file was generated by Tortuga Shipwright - -namespace Tortuga.Chain.SqlServer -{ - partial class SqlServerTransactionalDataSource: Tortuga.Chain.DataSources.ITransactionalDataSource, Tortuga.Chain.DataSources.IOpenDataSource, System.IDisposable - { - - private bool __TraitsRegistered; - - // These fields and/or properties hold the traits. They should not be referenced directly. - private Traits.TransactionalDataSourceTrait ___Trait0 = new(); - private Traits.TransactionalDataSourceTrait __Trait0 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait0; - } - } - - // Explicit interface implementation System.IDisposable - void System.IDisposable.Dispose() - { - ((System.IDisposable)__Trait0).Dispose(); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.IOpenDataSource - System.Data.Common.DbConnection Tortuga.Chain.DataSources.IOpenDataSource.AssociatedConnection - { - get => ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).AssociatedConnection; - } - System.Data.Common.DbTransaction? Tortuga.Chain.DataSources.IOpenDataSource.AssociatedTransaction - { - get => ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).AssociatedTransaction; - } - void Tortuga.Chain.DataSources.IOpenDataSource.Close() - { - ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).Close(); - } - - System.Boolean Tortuga.Chain.DataSources.IOpenDataSource.TryCommit() - { - return ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).TryCommit(); - } - - System.Boolean Tortuga.Chain.DataSources.IOpenDataSource.TryRollback() - { - return ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).TryRollback(); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ITransactionalDataSource - void Tortuga.Chain.DataSources.ITransactionalDataSource.Commit() - { - ((Tortuga.Chain.DataSources.ITransactionalDataSource)__Trait0).Commit(); - } - - // Exposing trait Traits.TransactionalDataSourceTrait - - /// - /// Returns the associated connection. - /// - /// The associated connection. - public Microsoft.Data.SqlClient.SqlConnection AssociatedConnection - { - get => __Trait0.AssociatedConnection; - } - /// - /// Returns the associated transaction. - /// - /// The associated transaction. - public Microsoft.Data.SqlClient.SqlTransaction AssociatedTransaction - { - get => __Trait0.AssociatedTransaction; - } - /// - /// Gets or sets the cache to be used by this data source. The default is .NET's System.Runtime.Caching.MemoryCache. - /// - public override Tortuga.Chain.Core.ICacheAdapter Cache - { - get => __Trait0.Cache; - } - /// - /// Commits the transaction and disposes the underlying connection. - /// - public void Commit() - { - __Trait0.Commit(); - } - - /// - /// Gets the database metadata. - /// - public override Tortuga.Chain.SqlServer.SqlServerMetadataCache DatabaseMetadata - { - get => __Trait0.DatabaseMetadata; - } - /// - /// Closes the current transaction and connection. If not committed, the transaction is rolled back. - /// - public void Dispose() - { - __Trait0.Dispose(); - } - - /// - /// Closes the current transaction and connection. If not committed, the transaction is rolled back. - /// - /// - protected virtual void Dispose(System.Boolean disposing) - { - __Trait0.Dispose(disposing); - } - - /// - /// The extension cache is used by extensions to store data source specific information. - /// - /// - /// The extension cache. - /// - protected override System.Collections.Concurrent.ConcurrentDictionary ExtensionCache - { - get => __Trait0.ExtensionCache; - } - - private Tortuga.Chain.SqlServerDataSource m_BaseDataSource - { - get => __Trait0.m_BaseDataSource; - init => __Trait0.m_BaseDataSource = value; - } - - private Microsoft.Data.SqlClient.SqlConnection m_Connection - { - get => __Trait0.m_Connection; - init => __Trait0.m_Connection = value; - } - - private System.Boolean m_Disposed - { - get => __Trait0.m_Disposed; - set => __Trait0.m_Disposed = value; - } - - private Microsoft.Data.SqlClient.SqlTransaction m_Transaction - { - get => __Trait0.m_Transaction; - init => __Trait0.m_Transaction = value; - } - /// - /// Rolls back the transaction and disposes the underlying connection. - /// - public void Rollback() - { - __Trait0.Rollback(); - } - - /// - /// Tests the connection. - /// - public override void TestConnection() - { - __Trait0.TestConnection(); - } - - /// - /// Tests the connection asynchronously. - /// - /// - public override System.Threading.Tasks.Task TestConnectionAsync() - { - return __Trait0.TestConnectionAsync(); - } - - private void __RegisterTraits() - { - __TraitsRegistered = true; - __Trait0.Container = this; - __Trait0.DisposableContainer = this as Traits.IHasOnDispose; - } - - } -} diff --git a/Tortuga.Chain/Tortuga.Chain.SqlServer.MDS/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServerDataSource.cs b/Tortuga.Chain/Tortuga.Chain.SqlServer.MDS/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServerDataSource.cs deleted file mode 100644 index 565e37889..000000000 --- a/Tortuga.Chain/Tortuga.Chain.SqlServer.MDS/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServerDataSource.cs +++ /dev/null @@ -1,282 +0,0 @@ -//This file was generated by Tortuga Shipwright - -namespace Tortuga.Chain -{ - partial class SqlServerDataSource: Tortuga.Chain.DataSources.IRootDataSource, Traits.IHasExtensionCache - { - - private bool __TraitsRegistered; - - // These fields and/or properties hold the traits. They should not be referenced directly. - private Traits.RootDataSourceTrait ___Trait0 = new(); - private Traits.RootDataSourceTrait __Trait0 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait0; - } - } - - // Explicit interface implementation Traits.IHasExtensionCache - System.Collections.Concurrent.ConcurrentDictionary Traits.IHasExtensionCache.ExtensionCache - { - get => ((Traits.IHasExtensionCache)__Trait0).ExtensionCache; - } - // Explicit interface implementation Tortuga.Chain.DataSources.IRootDataSource - Tortuga.Chain.DataSources.ITransactionalDataSource Tortuga.Chain.DataSources.IRootDataSource.BeginTransaction() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).BeginTransaction(); - } - - System.Threading.Tasks.Task Tortuga.Chain.DataSources.IRootDataSource.BeginTransactionAsync() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).BeginTransactionAsync(); - } - - System.Data.Common.DbConnection Tortuga.Chain.DataSources.IRootDataSource.CreateConnection() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateConnection(); - } - - System.Threading.Tasks.Task Tortuga.Chain.DataSources.IRootDataSource.CreateConnectionAsync() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateConnectionAsync(); - } - - Tortuga.Chain.DataSources.IOpenDataSource Tortuga.Chain.DataSources.IRootDataSource.CreateOpenDataSource() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateOpenDataSource(); - } - - Tortuga.Chain.DataSources.IOpenDataSource Tortuga.Chain.DataSources.IRootDataSource.CreateOpenDataSource(System.Data.Common.DbConnection connection, System.Data.Common.DbTransaction? transaction) - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateOpenDataSource(connection, transaction); - } - - Tortuga.Chain.DataSources.IOpenDataSource Tortuga.Chain.DataSources.IRootDataSource.CreateOpenDataSource(System.Data.IDbConnection connection, System.Data.IDbTransaction? transaction) - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateOpenDataSource(connection, transaction); - } - - // Exposing trait Traits.RootDataSourceTrait - - /// - /// Creates a new transaction. - /// - /// - /// The caller of this method is responsible for closing the transaction. - public Tortuga.Chain.SqlServer.SqlServerTransactionalDataSource BeginTransaction() - { - return __Trait0.BeginTransaction(); - } - - /// - /// Creates a new transaction. - /// - /// - /// - /// - /// The caller of this method is responsible for closing the transaction. - public Tortuga.Chain.SqlServer.SqlServerTransactionalDataSource BeginTransaction(System.Nullable isolationLevel = default, System.Boolean forwardEvents = true) - { - return __Trait0.BeginTransaction(isolationLevel, forwardEvents); - } - - /// - /// Creates a new transaction. - /// - /// - /// - /// - /// - /// The caller of this method is responsible for closing the transaction. - public System.Threading.Tasks.Task BeginTransactionAsync(System.Nullable isolationLevel = default, System.Boolean forwardEvents = true, System.Threading.CancellationToken cancellationToken = default) - { - return __Trait0.BeginTransactionAsync(isolationLevel, forwardEvents, cancellationToken); - } - - /// - /// Creates a new transaction. - /// - /// - /// The caller of this method is responsible for closing the transaction. - public System.Threading.Tasks.Task BeginTransactionAsync() - { - return __Trait0.BeginTransactionAsync(); - } - - /// - /// Gets or sets the cache to be used by this data source. The default is .NET's System.Runtime.Caching.MemoryCache. - /// - public override Tortuga.Chain.Core.ICacheAdapter Cache - { - get => __Trait0.Cache; - } - /// - /// The composed connection string. - /// - /// This is created and cached by a ConnectionStringBuilder. - internal System.String ConnectionString - { - get => __Trait0.ConnectionString; - } - /// - /// Creates and opens a new Access connection - /// - /// - /// The caller of this method is responsible for closing the connection. - public Microsoft.Data.SqlClient.SqlConnection CreateConnection() - { - return __Trait0.CreateConnection(); - } - - /// - /// Creates the connection asynchronous. - /// - /// The cancellation token. - /// - /// - /// The caller of this method is responsible for closing the connection. - /// - public System.Threading.Tasks.Task CreateConnectionAsync(System.Threading.CancellationToken cancellationToken = default) - { - return __Trait0.CreateConnectionAsync(cancellationToken); - } - - /// - /// Creates an open data source using the supplied connection and optional transaction. - /// - /// The connection to wrap. - /// The transaction to wrap. - /// IOpenDataSource. - /// WARNING: The caller of this method is responsible for closing the connection. - public Tortuga.Chain.SqlServer.SqlServerOpenDataSource CreateOpenDataSource(Microsoft.Data.SqlClient.SqlConnection connection, Microsoft.Data.SqlClient.SqlTransaction? transaction = default) - { - return __Trait0.CreateOpenDataSource(connection, transaction); - } - - /// - /// Creates an open data source with a new connection. - /// - /// WARNING: The caller of this method is responsible for closing the connection. - public Tortuga.Chain.SqlServer.SqlServerOpenDataSource CreateOpenDataSource() - { - return __Trait0.CreateOpenDataSource(); - } - - /// - /// The extension cache is used by extensions to store data source specific information. - /// - /// - /// The extension cache. - /// - protected override System.Collections.Concurrent.ConcurrentDictionary ExtensionCache - { - get => __Trait0.ExtensionCache; - } - - internal Tortuga.Chain.Core.ICacheAdapter m_Cache - { - get => __Trait0.m_Cache; - set => __Trait0.m_Cache = value; - } - /// - /// This object can be used to access the database connection string. - /// - private Microsoft.Data.SqlClient.SqlConnectionStringBuilder m_ConnectionBuilder - { - get => __Trait0.m_ConnectionBuilder; - init => __Trait0.m_ConnectionBuilder = value; - } - - internal System.Collections.Concurrent.ConcurrentDictionary m_ExtensionCache - { - get => __Trait0.m_ExtensionCache; - set => __Trait0.m_ExtensionCache = value; - } - /// - /// Tests the connection. - /// - public override void TestConnection() - { - __Trait0.TestConnection(); - } - - /// - /// Tests the connection asynchronously. - /// - /// - public override System.Threading.Tasks.Task TestConnectionAsync() - { - return __Trait0.TestConnectionAsync(); - } - - /// - /// Creates a new data source with the provided cache. - /// - /// The cache. - /// - public Tortuga.Chain.SqlServerDataSource WithCache(Tortuga.Chain.Core.ICacheAdapter cache) - { - return __Trait0.WithCache(cache); - } - - /// - /// Creates a new data source with additional audit rules. - /// - /// The additional rules. - /// - public Tortuga.Chain.SqlServerDataSource WithRules(params Tortuga.Chain.AuditRules.AuditRule[] additionalRules) - { - return __Trait0.WithRules(additionalRules); - } - - /// - /// Creates a new data source with additional audit rules. - /// - /// The additional rules. - /// - public Tortuga.Chain.SqlServerDataSource WithRules(System.Collections.Generic.IEnumerable additionalRules) - { - return __Trait0.WithRules(additionalRules); - } - - /// - /// Creates a new data source with the indicated user. - /// - /// The user value. - /// - /// - /// This is used in conjunction with audit rules. - /// - public Tortuga.Chain.SqlServerDataSource WithUser(System.Object? userValue) - { - return __Trait0.WithUser(userValue); - } - - private partial Tortuga.Chain.SqlServer.SqlServerTransactionalDataSource OnBeginTransaction(System.Nullable isolationLevel, System.Boolean forwardEvents ); - - private partial System.Threading.Tasks.Task OnBeginTransactionAsync(System.Nullable isolationLevel, System.Boolean forwardEvents, System.Threading.CancellationToken cancellationToken ); - - private partial Tortuga.Chain.SqlServerDataSource OnCloneWithOverrides(Tortuga.Chain.Core.ICacheAdapter? cache, System.Collections.Generic.IEnumerable? additionalRules, System.Object? userValue ); - - private partial Microsoft.Data.SqlClient.SqlConnection OnCreateConnection( ); - - private partial System.Threading.Tasks.Task OnCreateConnectionAsync(System.Threading.CancellationToken cancellationToken ); - - private partial Tortuga.Chain.SqlServer.SqlServerOpenDataSource OnCreateOpenDataSource(Microsoft.Data.SqlClient.SqlConnection connection, Microsoft.Data.SqlClient.SqlTransaction? transaction ); - - private void __RegisterTraits() - { - __TraitsRegistered = true; - __Trait0.OnBeginTransaction = OnBeginTransaction; - __Trait0.OnBeginTransactionAsync = OnBeginTransactionAsync; - __Trait0.OnCreateConnection = OnCreateConnection; - __Trait0.OnCreateConnectionAsync = OnCreateConnectionAsync; - __Trait0.OnCreateOpenDataSource = OnCreateOpenDataSource; - __Trait0.OnCloneWithOverrides = OnCloneWithOverrides; - } - - } -} diff --git a/Tortuga.Chain/Tortuga.Chain.SqlServer.MDS/Tortuga.Chain.SqlServer.MDS.csproj b/Tortuga.Chain/Tortuga.Chain.SqlServer.MDS/Tortuga.Chain.SqlServer.MDS.csproj index 2e10b8182..6cac48abe 100644 --- a/Tortuga.Chain/Tortuga.Chain.SqlServer.MDS/Tortuga.Chain.SqlServer.MDS.csproj +++ b/Tortuga.Chain/Tortuga.Chain.SqlServer.MDS/Tortuga.Chain.SqlServer.MDS.csproj @@ -86,7 +86,7 @@ - true + Generated @@ -94,7 +94,7 @@ - + diff --git a/Tortuga.Chain/Tortuga.Chain.SqlServer.OleDb/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Logs.cs b/Tortuga.Chain/Tortuga.Chain.SqlServer.OleDb/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Logs.cs deleted file mode 100644 index 053155f78..000000000 --- a/Tortuga.Chain/Tortuga.Chain.SqlServer.OleDb/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Logs.cs +++ /dev/null @@ -1,31 +0,0 @@ -/* -Container class: Tortuga.Chain.OleDbSqlServerDataSource - Adding trait: Traits.RootDataSourceTrait -Container class: Tortuga.Chain.SqlServer.OleDbSqlServerDataSourceBase - Adding trait: Traits.SupportsDeleteAllTrait - Adding trait: Traits.SupportsTruncateTrait - Adding trait: Traits.SupportsSqlQueriesTrait - Adding trait: Traits.SupportsDeleteByKeyListTrait - Adding trait: Traits.SupportsDeleteTrait - Adding trait: Traits.SupportsUpdateTrait - Adding trait: Traits.SupportsUpdateByKeyListTrait - Adding trait: Traits.SupportsInsertTrait - Adding trait: Traits.SupportsUpdateSet - Adding trait: Traits.SupportsDeleteSet - Adding trait: Traits.SupportsFromTrait - Adding trait: Traits.SupportsGetByKeyListTrait - Adding trait: Traits.SupportsUpsertTrait - Adding trait: Traits.SupportsScalarFunctionTrait - Adding trait: Traits.SupportsProcedureTrait - Adding trait: Traits.SupportsTableFunctionTrait - Adding trait: Traits.SupportsGetByColumnListTrait -Container class: Tortuga.Chain.SqlServer.OleDbSqlServerOpenDataSource - Adding trait: Traits.OpenDataSourceTrait -Container class: Tortuga.Chain.SqlServer.OleDbSqlServerTransactionalDataSource - Adding trait: Traits.TransactionalDataSourceTrait -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Traits.IHasExtensionCache.get_ExtensionCache -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Tortuga.Chain.DataSources.IOpenDataSource.get_AssociatedConnection -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Tortuga.Chain.DataSources.IOpenDataSource.get_AssociatedTransaction -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Tortuga.Chain.DataSources.IOpenDataSource.get_AssociatedConnection -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Tortuga.Chain.DataSources.IOpenDataSource.get_AssociatedTransaction -*/ \ No newline at end of file diff --git a/Tortuga.Chain/Tortuga.Chain.SqlServer.OleDb/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.OleDbSqlServerDataSource.cs b/Tortuga.Chain/Tortuga.Chain.SqlServer.OleDb/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.OleDbSqlServerDataSource.cs deleted file mode 100644 index ab0bcdeaf..000000000 --- a/Tortuga.Chain/Tortuga.Chain.SqlServer.OleDb/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.OleDbSqlServerDataSource.cs +++ /dev/null @@ -1,282 +0,0 @@ -//This file was generated by Tortuga Shipwright - -namespace Tortuga.Chain -{ - partial class OleDbSqlServerDataSource: Tortuga.Chain.DataSources.IRootDataSource, Traits.IHasExtensionCache - { - - private bool __TraitsRegistered; - - // These fields and/or properties hold the traits. They should not be referenced directly. - private Traits.RootDataSourceTrait ___Trait0 = new(); - private Traits.RootDataSourceTrait __Trait0 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait0; - } - } - - // Explicit interface implementation Traits.IHasExtensionCache - System.Collections.Concurrent.ConcurrentDictionary Traits.IHasExtensionCache.ExtensionCache - { - get => ((Traits.IHasExtensionCache)__Trait0).ExtensionCache; - } - // Explicit interface implementation Tortuga.Chain.DataSources.IRootDataSource - Tortuga.Chain.DataSources.ITransactionalDataSource Tortuga.Chain.DataSources.IRootDataSource.BeginTransaction() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).BeginTransaction(); - } - - System.Threading.Tasks.Task Tortuga.Chain.DataSources.IRootDataSource.BeginTransactionAsync() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).BeginTransactionAsync(); - } - - System.Data.Common.DbConnection Tortuga.Chain.DataSources.IRootDataSource.CreateConnection() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateConnection(); - } - - System.Threading.Tasks.Task Tortuga.Chain.DataSources.IRootDataSource.CreateConnectionAsync() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateConnectionAsync(); - } - - Tortuga.Chain.DataSources.IOpenDataSource Tortuga.Chain.DataSources.IRootDataSource.CreateOpenDataSource() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateOpenDataSource(); - } - - Tortuga.Chain.DataSources.IOpenDataSource Tortuga.Chain.DataSources.IRootDataSource.CreateOpenDataSource(System.Data.Common.DbConnection connection, System.Data.Common.DbTransaction? transaction) - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateOpenDataSource(connection, transaction); - } - - Tortuga.Chain.DataSources.IOpenDataSource Tortuga.Chain.DataSources.IRootDataSource.CreateOpenDataSource(System.Data.IDbConnection connection, System.Data.IDbTransaction? transaction) - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateOpenDataSource(connection, transaction); - } - - // Exposing trait Traits.RootDataSourceTrait - - /// - /// Creates a new transaction. - /// - /// - /// The caller of this method is responsible for closing the transaction. - public Tortuga.Chain.SqlServer.OleDbSqlServerTransactionalDataSource BeginTransaction() - { - return __Trait0.BeginTransaction(); - } - - /// - /// Creates a new transaction. - /// - /// - /// - /// - /// The caller of this method is responsible for closing the transaction. - public Tortuga.Chain.SqlServer.OleDbSqlServerTransactionalDataSource BeginTransaction(System.Nullable isolationLevel = default, System.Boolean forwardEvents = true) - { - return __Trait0.BeginTransaction(isolationLevel, forwardEvents); - } - - /// - /// Creates a new transaction. - /// - /// - /// - /// - /// - /// The caller of this method is responsible for closing the transaction. - public System.Threading.Tasks.Task BeginTransactionAsync(System.Nullable isolationLevel = default, System.Boolean forwardEvents = true, System.Threading.CancellationToken cancellationToken = default) - { - return __Trait0.BeginTransactionAsync(isolationLevel, forwardEvents, cancellationToken); - } - - /// - /// Creates a new transaction. - /// - /// - /// The caller of this method is responsible for closing the transaction. - public System.Threading.Tasks.Task BeginTransactionAsync() - { - return __Trait0.BeginTransactionAsync(); - } - - /// - /// Gets or sets the cache to be used by this data source. The default is .NET's System.Runtime.Caching.MemoryCache. - /// - public override Tortuga.Chain.Core.ICacheAdapter Cache - { - get => __Trait0.Cache; - } - /// - /// The composed connection string. - /// - /// This is created and cached by a ConnectionStringBuilder. - internal System.String ConnectionString - { - get => __Trait0.ConnectionString; - } - /// - /// Creates and opens a new Access connection - /// - /// - /// The caller of this method is responsible for closing the connection. - public System.Data.OleDb.OleDbConnection CreateConnection() - { - return __Trait0.CreateConnection(); - } - - /// - /// Creates the connection asynchronous. - /// - /// The cancellation token. - /// - /// - /// The caller of this method is responsible for closing the connection. - /// - public System.Threading.Tasks.Task CreateConnectionAsync(System.Threading.CancellationToken cancellationToken = default) - { - return __Trait0.CreateConnectionAsync(cancellationToken); - } - - /// - /// Creates an open data source using the supplied connection and optional transaction. - /// - /// The connection to wrap. - /// The transaction to wrap. - /// IOpenDataSource. - /// WARNING: The caller of this method is responsible for closing the connection. - public Tortuga.Chain.SqlServer.OleDbSqlServerOpenDataSource CreateOpenDataSource(System.Data.OleDb.OleDbConnection connection, System.Data.OleDb.OleDbTransaction? transaction = default) - { - return __Trait0.CreateOpenDataSource(connection, transaction); - } - - /// - /// Creates an open data source with a new connection. - /// - /// WARNING: The caller of this method is responsible for closing the connection. - public Tortuga.Chain.SqlServer.OleDbSqlServerOpenDataSource CreateOpenDataSource() - { - return __Trait0.CreateOpenDataSource(); - } - - /// - /// The extension cache is used by extensions to store data source specific information. - /// - /// - /// The extension cache. - /// - protected override System.Collections.Concurrent.ConcurrentDictionary ExtensionCache - { - get => __Trait0.ExtensionCache; - } - - internal Tortuga.Chain.Core.ICacheAdapter m_Cache - { - get => __Trait0.m_Cache; - set => __Trait0.m_Cache = value; - } - /// - /// This object can be used to access the database connection string. - /// - private System.Data.OleDb.OleDbConnectionStringBuilder m_ConnectionBuilder - { - get => __Trait0.m_ConnectionBuilder; - init => __Trait0.m_ConnectionBuilder = value; - } - - internal System.Collections.Concurrent.ConcurrentDictionary m_ExtensionCache - { - get => __Trait0.m_ExtensionCache; - set => __Trait0.m_ExtensionCache = value; - } - /// - /// Tests the connection. - /// - public override void TestConnection() - { - __Trait0.TestConnection(); - } - - /// - /// Tests the connection asynchronously. - /// - /// - public override System.Threading.Tasks.Task TestConnectionAsync() - { - return __Trait0.TestConnectionAsync(); - } - - /// - /// Creates a new data source with the provided cache. - /// - /// The cache. - /// - public Tortuga.Chain.OleDbSqlServerDataSource WithCache(Tortuga.Chain.Core.ICacheAdapter cache) - { - return __Trait0.WithCache(cache); - } - - /// - /// Creates a new data source with additional audit rules. - /// - /// The additional rules. - /// - public Tortuga.Chain.OleDbSqlServerDataSource WithRules(params Tortuga.Chain.AuditRules.AuditRule[] additionalRules) - { - return __Trait0.WithRules(additionalRules); - } - - /// - /// Creates a new data source with additional audit rules. - /// - /// The additional rules. - /// - public Tortuga.Chain.OleDbSqlServerDataSource WithRules(System.Collections.Generic.IEnumerable additionalRules) - { - return __Trait0.WithRules(additionalRules); - } - - /// - /// Creates a new data source with the indicated user. - /// - /// The user value. - /// - /// - /// This is used in conjunction with audit rules. - /// - public Tortuga.Chain.OleDbSqlServerDataSource WithUser(System.Object? userValue) - { - return __Trait0.WithUser(userValue); - } - - private partial Tortuga.Chain.SqlServer.OleDbSqlServerTransactionalDataSource OnBeginTransaction(System.Nullable isolationLevel, System.Boolean forwardEvents ); - - private partial System.Threading.Tasks.Task OnBeginTransactionAsync(System.Nullable isolationLevel, System.Boolean forwardEvents, System.Threading.CancellationToken cancellationToken ); - - private partial Tortuga.Chain.OleDbSqlServerDataSource OnCloneWithOverrides(Tortuga.Chain.Core.ICacheAdapter? cache, System.Collections.Generic.IEnumerable? additionalRules, System.Object? userValue ); - - private partial System.Data.OleDb.OleDbConnection OnCreateConnection( ); - - private partial System.Threading.Tasks.Task OnCreateConnectionAsync(System.Threading.CancellationToken cancellationToken ); - - private partial Tortuga.Chain.SqlServer.OleDbSqlServerOpenDataSource OnCreateOpenDataSource(System.Data.OleDb.OleDbConnection connection, System.Data.OleDb.OleDbTransaction? transaction ); - - private void __RegisterTraits() - { - __TraitsRegistered = true; - __Trait0.OnBeginTransaction = OnBeginTransaction; - __Trait0.OnBeginTransactionAsync = OnBeginTransactionAsync; - __Trait0.OnCreateConnection = OnCreateConnection; - __Trait0.OnCreateConnectionAsync = OnCreateConnectionAsync; - __Trait0.OnCreateOpenDataSource = OnCreateOpenDataSource; - __Trait0.OnCloneWithOverrides = OnCloneWithOverrides; - } - - } -} diff --git a/Tortuga.Chain/Tortuga.Chain.SqlServer.OleDb/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.OleDbSqlServerDataSourceBase.cs b/Tortuga.Chain/Tortuga.Chain.SqlServer.OleDb/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.OleDbSqlServerDataSourceBase.cs deleted file mode 100644 index ebc168356..000000000 --- a/Tortuga.Chain/Tortuga.Chain.SqlServer.OleDb/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.OleDbSqlServerDataSourceBase.cs +++ /dev/null @@ -1,1498 +0,0 @@ -//This file was generated by Tortuga Shipwright - -namespace Tortuga.Chain.SqlServer -{ - partial class OleDbSqlServerDataSourceBase: Tortuga.Chain.DataSources.ISupportsDeleteAll, Tortuga.Chain.DataSources.ISupportsTruncate, Tortuga.Chain.DataSources.ISupportsSqlQueries, Tortuga.Chain.DataSources.ISupportsDeleteByKeyList, Tortuga.Chain.DataSources.ISupportsDeleteByKey, Tortuga.Chain.DataSources.ISupportsDelete, Tortuga.Chain.DataSources.ISupportsUpdate, Tortuga.Chain.DataSources.ISupportsUpdateByKey, Tortuga.Chain.DataSources.ISupportsUpdateByKeyList, Tortuga.Chain.DataSources.ISupportsInsert, Tortuga.Chain.DataSources.ISupportsUpdateSet, Tortuga.Chain.DataSources.ISupportsDeleteSet, Tortuga.Chain.DataSources.ISupportsFrom, Tortuga.Chain.DataSources.ISupportsGetByKeyList, Tortuga.Chain.DataSources.ISupportsGetByKey, Tortuga.Chain.DataSources.ISupportsUpsert, Tortuga.Chain.DataSources.ISupportsScalarFunction, Tortuga.Chain.DataSources.ISupportsProcedure, Tortuga.Chain.DataSources.ISupportsTableFunction, Tortuga.Chain.DataSources.ISupportsGetByColumnList, Tortuga.Chain.DataSources.ISupportsGetByColumn, Traits.ICommandHelper, Traits.IUpdateDeleteByKeyHelper, Traits.IUpdateDeleteHelper, Traits.IInsertHelper, Traits.IUpdateDeleteSetHelper, Traits.IFromHelper, Traits.IGetByKeyHelper, Traits.IUpsertHelper, Traits.ICommandHelper - { - - private bool __TraitsRegistered; - - // These fields and/or properties hold the traits. They should not be referenced directly. - private Traits.SupportsDeleteAllTrait ___Trait0 = new(); - private Traits.SupportsDeleteAllTrait __Trait0 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait0; - } - } - private Traits.SupportsTruncateTrait ___Trait1 = new(); - private Traits.SupportsTruncateTrait __Trait1 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait1; - } - } - private Traits.SupportsSqlQueriesTrait ___Trait2 = new(); - private Traits.SupportsSqlQueriesTrait __Trait2 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait2; - } - } - private Traits.SupportsDeleteByKeyListTrait ___Trait3 = new(); - private Traits.SupportsDeleteByKeyListTrait __Trait3 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait3; - } - } - private Traits.SupportsDeleteTrait ___Trait4 = new(); - private Traits.SupportsDeleteTrait __Trait4 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait4; - } - } - private Traits.SupportsUpdateTrait ___Trait5 = new(); - private Traits.SupportsUpdateTrait __Trait5 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait5; - } - } - private Traits.SupportsUpdateByKeyListTrait ___Trait6 = new(); - private Traits.SupportsUpdateByKeyListTrait __Trait6 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait6; - } - } - private Traits.SupportsInsertTrait ___Trait7 = new(); - private Traits.SupportsInsertTrait __Trait7 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait7; - } - } - private Traits.SupportsUpdateSet ___Trait8 = new(); - private Traits.SupportsUpdateSet __Trait8 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait8; - } - } - private Traits.SupportsDeleteSet ___Trait9 = new(); - private Traits.SupportsDeleteSet __Trait9 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait9; - } - } - private Traits.SupportsFromTrait ___Trait10 = new(); - private Traits.SupportsFromTrait __Trait10 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait10; - } - } - private Traits.SupportsGetByKeyListTrait ___Trait11 = new(); - private Traits.SupportsGetByKeyListTrait __Trait11 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait11; - } - } - private Traits.SupportsUpsertTrait ___Trait12 = new(); - private Traits.SupportsUpsertTrait __Trait12 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait12; - } - } - private Traits.SupportsScalarFunctionTrait ___Trait13 = new(); - private Traits.SupportsScalarFunctionTrait __Trait13 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait13; - } - } - private Traits.SupportsProcedureTrait ___Trait14 = new(); - private Traits.SupportsProcedureTrait __Trait14 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait14; - } - } - private Traits.SupportsTableFunctionTrait ___Trait15 = new(); - private Traits.SupportsTableFunctionTrait __Trait15 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait15; - } - } - private Traits.SupportsGetByColumnListTrait ___Trait16 = new(); - private Traits.SupportsGetByColumnListTrait __Trait16 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait16; - } - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDelete - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDelete.Delete(System.String tableName, TArgument argumentValue, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDelete)__Trait4).Delete(tableName, argumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDelete.Delete(TArgument argumentValue, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDelete)__Trait4).Delete(argumentValue, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDeleteAll - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsDeleteAll.DeleteAll(System.String tableName) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteAll)__Trait0).DeleteAll(tableName); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsDeleteAll.DeleteAll() - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteAll)__Trait0).DeleteAll(); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDeleteByKey - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteByKey.DeleteByKey(System.String tableName, TKey key, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteByKey)__Trait3).DeleteByKey(tableName, key, options); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteByKey.DeleteByKey(System.String tableName, System.String key, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteByKey)__Trait3).DeleteByKey(tableName, key, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDeleteByKeyList - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteByKeyList.DeleteByKeyList(System.String tableName, System.Collections.Generic.IEnumerable keys, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteByKeyList)__Trait3).DeleteByKeyList(tableName, keys, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDeleteSet - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteSet.DeleteSet(System.String tableName, System.String whereClause) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteSet)__Trait9).DeleteSet(tableName, whereClause); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteSet.DeleteSet(System.String tableName, System.String whereClause, System.Object? argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteSet)__Trait9).DeleteSet(tableName, whereClause, argumentValue); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteSet.DeleteSet(System.String tableName, System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteSet)__Trait9).DeleteSet(tableName, filterValue, filterOptions); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsFrom - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String tableOrViewName) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait10).From(tableOrViewName); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String tableOrViewName, System.String whereClause) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait10).From(tableOrViewName, whereClause); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String tableOrViewName, System.String whereClause, System.Object argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait10).From(tableOrViewName, whereClause, argumentValue); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String tableOrViewName, System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait10).From(tableOrViewName, filterValue, filterOptions); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From() - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait10).From(); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String whereClause) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait10).From(whereClause); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String whereClause, System.Object argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait10).From(whereClause, argumentValue); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.Object filterValue) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait10).From(filterValue); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsGetByColumn - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String tableName, System.String columnName, TKey key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait16).GetByColumn(tableName, columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String tableName, System.String columnName, System.String key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait16).GetByColumn(tableName, columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, TKey key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait16).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.String key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait16).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.Int16 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait16).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.Int32 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait16).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.Int64 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait16).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.Guid key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait16).GetByColumn(columnName, key); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsGetByColumnList - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String tableName, System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait16).GetByColumnList(tableName, columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait16).GetByColumnList(columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait16).GetByColumnList(columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait16).GetByColumnList(columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait16).GetByColumnList(columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait16).GetByColumnList(columnName, keys); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsGetByKey - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.String tableName, TKey key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait11).GetByKey(tableName, key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.String tableName, System.String key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait11).GetByKey(tableName, key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(TKey key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait11).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.String key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait11).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.Int16 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait11).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.Int32 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait11).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.Int64 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait11).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.Guid key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait11).GetByKey(key); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsGetByKeyList - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.String tableName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait11).GetByKeyList(tableName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait11).GetByKeyList(keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait11).GetByKeyList(keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait11).GetByKeyList(keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait11).GetByKeyList(keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait11).GetByKeyList(keys); - } - - [System.Obsolete(@"This will be replaced by GetByColumn")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.String tableName, System.String keyColumn, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait11).GetByKeyList(tableName, keyColumn, keys); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsInsert - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsInsert.Insert(System.String tableName, TArgument argumentValue, Tortuga.Chain.InsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsInsert)__Trait7).Insert(tableName, argumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsInsert.Insert(TArgument argumentValue, Tortuga.Chain.InsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsInsert)__Trait7).Insert(argumentValue, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsProcedure - Tortuga.Chain.CommandBuilders.IProcedureDbCommandBuilder Tortuga.Chain.DataSources.ISupportsProcedure.Procedure(System.String procedureName) - { - return ((Tortuga.Chain.DataSources.ISupportsProcedure)__Trait14).Procedure(procedureName); - } - - Tortuga.Chain.CommandBuilders.IProcedureDbCommandBuilder Tortuga.Chain.DataSources.ISupportsProcedure.Procedure(System.String procedureName, System.Object argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsProcedure)__Trait14).Procedure(procedureName, argumentValue); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsScalarFunction - Tortuga.Chain.CommandBuilders.IScalarDbCommandBuilder Tortuga.Chain.DataSources.ISupportsScalarFunction.ScalarFunction(System.String scalarFunctionName) - { - return ((Tortuga.Chain.DataSources.ISupportsScalarFunction)__Trait13).ScalarFunction(scalarFunctionName); - } - - Tortuga.Chain.CommandBuilders.IScalarDbCommandBuilder Tortuga.Chain.DataSources.ISupportsScalarFunction.ScalarFunction(System.String scalarFunctionName, System.Object functionArgumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsScalarFunction)__Trait13).ScalarFunction(scalarFunctionName, functionArgumentValue); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsSqlQueries - Tortuga.Chain.CommandBuilders.IMultipleTableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsSqlQueries.Sql(System.String sqlStatement, System.Object argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsSqlQueries)__Trait2).Sql(sqlStatement, argumentValue); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsTableFunction - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsTableFunction.TableFunction(System.String functionName) - { - return ((Tortuga.Chain.DataSources.ISupportsTableFunction)__Trait15).TableFunction(functionName); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsTableFunction.TableFunction(System.String functionName, System.Object functionArgumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsTableFunction)__Trait15).TableFunction(functionName, functionArgumentValue); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsTruncate - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsTruncate.Truncate(System.String tableName) - { - return ((Tortuga.Chain.DataSources.ISupportsTruncate)__Trait1).Truncate(tableName); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsTruncate.Truncate() - { - return ((Tortuga.Chain.DataSources.ISupportsTruncate)__Trait1).Truncate(); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpdate - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdate.Update(System.String tableName, TArgument argumentValue, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdate)__Trait5).Update(tableName, argumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdate.Update(TArgument argumentValue, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdate)__Trait5).Update(argumentValue, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpdateByKey - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateByKey.UpdateByKey(System.String tableName, TArgument newValues, TKey key, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateByKey)__Trait6).UpdateByKey(tableName, newValues, key, options); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateByKey.UpdateByKey(System.String tableName, TArgument newValues, System.String key, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateByKey)__Trait6).UpdateByKey(tableName, newValues, key, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpdateByKeyList - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateByKeyList.UpdateByKeyList(System.String tableName, TArgument newValues, System.Collections.Generic.IEnumerable keys, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateByKeyList)__Trait6).UpdateByKeyList(tableName, newValues, keys, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpdateSet - Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateSet.UpdateSet(System.String tableName, System.String updateExpression, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateSet)__Trait8).UpdateSet(tableName, updateExpression, options); - } - - Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateSet.UpdateSet(System.String tableName, System.String updateExpression, System.Object? updateArgumentValue, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateSet)__Trait8).UpdateSet(tableName, updateExpression, updateArgumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateSet.UpdateSet(System.String tableName, System.Object newValues, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateSet)__Trait8).UpdateSet(tableName, newValues, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpsert - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpsert.Upsert(System.String tableName, TArgument argumentValue, Tortuga.Chain.UpsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpsert)__Trait12).Upsert(tableName, argumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpsert.Upsert(TArgument argumentValue, Tortuga.Chain.UpsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpsert)__Trait12).Upsert(argumentValue, options); - } - - // Exposing trait Traits.SupportsDeleteAllTrait - - /// Deletes all records in the specified table. - /// Name of the table to clear. - /// The number of rows deleted or null if the database doesn't provide that information. - public Tortuga.Chain.ILink DeleteAll(Tortuga.Chain.SqlServer.SqlServerObjectName tableName) - { - return __Trait0.DeleteAll(tableName); - } - - /// Deletes all records in the specified table. - /// This class used to determine which table to clear - /// The number of rows deleted or null if the database doesn't provide that information. - public Tortuga.Chain.ILink DeleteAll()where TObject : class - { - return __Trait0.DeleteAll(); - } - - // Exposing trait Traits.SupportsDeleteByKeyListTrait - - /// - /// Delete a record by its primary key. - /// - /// - /// Name of the table. - /// The key. - /// The options. - /// MultipleRowDbCommandBuilder<TCommand, TParameter>. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, T key, Tortuga.Chain.DeleteOptions options = 0)where T : struct - { - return __Trait3.DeleteByKey(tableName, key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Name of the table. - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.String key, Tortuga.Chain.DeleteOptions options = 0) - { - return __Trait3.DeleteByKey(tableName, key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Used to determine the table name - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(System.Guid key, Tortuga.Chain.DeleteOptions options = 0)where TObject : class - { - return __Trait3.DeleteByKey(key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Used to determine the table name - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(System.Int64 key, Tortuga.Chain.DeleteOptions options = 0)where TObject : class - { - return __Trait3.DeleteByKey(key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Used to determine the table name - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(System.Int32 key, Tortuga.Chain.DeleteOptions options = 0)where TObject : class - { - return __Trait3.DeleteByKey(key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Used to determine the table name - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(System.String key, Tortuga.Chain.DeleteOptions options = 0)where TObject : class - { - return __Trait3.DeleteByKey(key, options); - } - - /// - /// Delete multiple rows by key. - /// - /// The type of the t key. - /// Name of the table. - /// The keys. - /// Delete options. - /// - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteByKeyList(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.Collections.Generic.IEnumerable keys, Tortuga.Chain.DeleteOptions options = 0) - { - return __Trait3.DeleteByKeyList(tableName, keys, options); - } - - // Exposing trait Traits.SupportsDeleteSet - - /// - /// Delete multiple records using a filter object. - /// - /// Name of the table. - /// The filter value. - /// The options. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteSet(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions = 0) - { - return __Trait9.DeleteSet(tableName, filterValue, filterOptions); - } - - /// - /// Delete multiple records using a filter object. - /// - /// The filter value. - /// The options. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteSet(System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions = 0)where TObject : class - { - return __Trait9.DeleteSet(filterValue, filterOptions); - } - - /// - /// Delete multiple records using a where expression. - /// - /// Name of the table. - /// The where clause. - /// The argument value for the where clause. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteSet(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.String whereClause, System.Object? argumentValue = default) - { - return __Trait9.DeleteSet(tableName, whereClause, argumentValue); - } - - /// - /// Delete multiple records using a where expression. - /// - /// The where clause. - /// The argument value for the where clause. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteSet(System.String whereClause, System.Object? argumentValue = default)where TObject : class - { - return __Trait9.DeleteSet(whereClause, argumentValue); - } - - // Exposing trait Traits.SupportsDeleteTrait - - /// - /// Creates a command to perform a delete operation. - /// - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Delete(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, TArgument argumentValue, Tortuga.Chain.DeleteOptions options = 0)where TArgument : class - { - return __Trait4.Delete(tableName, argumentValue, options); - } - - /// - /// Delete an object model from the table indicated by the class's Table attribute. - /// - /// - /// The argument value. - /// The delete options. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Delete(TArgument argumentValue, Tortuga.Chain.DeleteOptions options = 0)where TArgument : class - { - return __Trait4.Delete(argumentValue, options); - } - - // Exposing trait Traits.SupportsFromTrait - - /// - /// Creates an operation to directly query a table or view - /// - /// - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(Tortuga.Chain.SqlServer.SqlServerObjectName tableOrViewName) - { - return __Trait10.From(tableOrViewName); - } - - /// - /// Creates an operation to directly query a table or view - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(Tortuga.Chain.SqlServer.SqlServerObjectName tableOrViewName, System.String whereClause) - { - return __Trait10.From(tableOrViewName, whereClause); - } - - /// - /// Creates an operation to directly query a table or view - /// - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(Tortuga.Chain.SqlServer.SqlServerObjectName tableOrViewName, System.String whereClause, System.Object argumentValue) - { - return __Trait10.From(tableOrViewName, whereClause, argumentValue); - } - - /// - /// Creates an operation to directly query a table or view - /// - /// Name of the table or view. - /// The filter value. - /// The filter options. - /// TableDbCommandBuilder<TCommand, TParameter, TLimitOption>. - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(Tortuga.Chain.SqlServer.SqlServerObjectName tableOrViewName, System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions = 0) - { - return __Trait10.From(tableOrViewName, filterValue, filterOptions); - } - - /// - /// This is used to directly query a table or view. - /// - /// - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From()where TObject : class - { - return __Trait10.From(); - } - - /// - /// This is used to directly query a table or view. - /// - /// The type of the object. - /// The where clause. Do not prefix this clause with "WHERE". - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(System.String whereClause)where TObject : class - { - return __Trait10.From(whereClause); - } - - /// - /// This is used to directly query a table or view. - /// - /// The type of the object. - /// The where clause. Do not prefix this clause with "WHERE". - /// Optional argument value. Every property in the argument value must have a matching parameter in the WHERE clause - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(System.String whereClause, System.Object argumentValue)where TObject : class - { - return __Trait10.From(whereClause, argumentValue); - } - - /// - /// This is used to directly query a table or view. - /// - /// The type of the object. - /// The filter value is used to generate a simple AND style WHERE clause. - /// The filter options. - /// TableDbCommandBuilder<TCommand, TParameter, TLimitOption, TObject>. - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions = 0)where TObject : class - { - return __Trait10.From(filterValue, filterOptions); - } - - // Exposing trait Traits.SupportsGetByColumnListTrait - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. Used to determine which table will be read. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.Guid key)where TObject : class - { - return __Trait16.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.Int64 key)where TObject : class - { - return __Trait16.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.Int16 key)where TObject : class - { - return __Trait16.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.Int32 key)where TObject : class - { - return __Trait16.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.String key)where TObject : class - { - return __Trait16.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The type of the key. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, TKey key)where TObject : class - { - return __Trait16.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// Name of the table. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.String columnName, System.String key) - { - return __Trait16.GetByColumn(tableName, columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// - /// Name of the table. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.String columnName, TKey key) - { - return __Trait16.GetByColumn(tableName, columnName, key); - } - - /// - /// Gets a set of records by their primary key. - /// - /// - /// Name of the table. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return __Trait16.GetByColumnList(tableName, columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The type of the key. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait16.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait16.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait16.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait16.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait16.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait16.GetByColumnList(columnName, keys); - } - - // Exposing trait Traits.SupportsGetByKeyListTrait - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. Used to determine which table will be read. - /// The key. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.Guid key)where TObject : class - { - return __Trait11.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The key. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.Int64 key)where TObject : class - { - return __Trait11.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The key. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.Int16 key)where TObject : class - { - return __Trait11.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The key. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.Int32 key)where TObject : class - { - return __Trait11.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The key. - /// - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.String key)where TObject : class - { - return __Trait11.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The type of the key. - /// The key. - /// - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(TKey key)where TObject : class - { - return __Trait11.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// Name of the table. - /// The key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.String key) - { - return __Trait11.GetByKey(tableName, key); - } - - /// - /// Gets a record by its primary key. - /// - /// - /// Name of the table. - /// The key. - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, TKey key) - { - return __Trait11.GetByKey(tableName, key); - } - - /// - /// Gets a set of records by their primary key. - /// - /// - /// Name of the table. - /// The keys. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.Collections.Generic.IEnumerable keys) - { - return __Trait11.GetByKeyList(tableName, keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The type of the key. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait11.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait11.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait11.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait11.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait11.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait11.GetByKeyList(keys); - } - - /// Gets a set of records by an unique key. - /// The type of the t key. - /// Name of the table. - /// Name of the key column. This should be a primary or unique key, but that's not enforced. - /// The keys. - /// IMultipleRowDbCommandBuilder. - [System.Obsolete(@"This will be replaced by GetByColumn")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.String tableName, System.String keyColumn, System.Collections.Generic.IEnumerable keys) - { - return __Trait11.GetByKeyList(tableName, keyColumn, keys); - } - - // Exposing trait Traits.SupportsInsertTrait - - /// - /// Inserts an object into the specified table. - /// - /// - /// The argument value. - /// The options for how the insert occurs. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Insert(TArgument argumentValue, Tortuga.Chain.InsertOptions options = 0)where TArgument : class - { - return __Trait7.Insert(argumentValue, options); - } - - /// - /// Creates an operation used to perform an insert operation. - /// - /// Name of the table. - /// The argument value. - /// The options. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Insert(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, TArgument argumentValue, Tortuga.Chain.InsertOptions options = 0)where TArgument : class - { - return __Trait7.Insert(tableName, argumentValue, options); - } - - // Exposing trait Traits.SupportsProcedureTrait - - /// - /// Loads a procedure definition - /// - /// Name of the procedure. - /// - public Tortuga.Chain.CommandBuilders.ProcedureDbCommandBuilder Procedure(Tortuga.Chain.SqlServer.SqlServerObjectName procedureName) - { - return __Trait14.Procedure(procedureName); - } - - /// - /// Loads a procedure definition and populates it using the parameter object. - /// - /// Name of the procedure. - /// The argument value. - /// - /// - /// The procedure's definition is loaded from the database and used to determine which properties on the parameter object to use. - /// - public Tortuga.Chain.CommandBuilders.ProcedureDbCommandBuilder Procedure(Tortuga.Chain.SqlServer.SqlServerObjectName procedureName, System.Object argumentValue) - { - return __Trait14.Procedure(procedureName, argumentValue); - } - - // Exposing trait Traits.SupportsScalarFunctionTrait - - /// - /// This is used to query a scalar function. - /// - /// Name of the scalar function. - /// - public Tortuga.Chain.CommandBuilders.ScalarDbCommandBuilder ScalarFunction(Tortuga.Chain.SqlServer.SqlServerObjectName scalarFunctionName) - { - return __Trait13.ScalarFunction(scalarFunctionName); - } - - /// - /// This is used to query a scalar function. - /// - /// Name of the scalar function. - /// The function argument. - /// - public Tortuga.Chain.CommandBuilders.ScalarDbCommandBuilder ScalarFunction(Tortuga.Chain.SqlServer.SqlServerObjectName scalarFunctionName, System.Object functionArgumentValue) - { - return __Trait13.ScalarFunction(scalarFunctionName, functionArgumentValue); - } - - // Exposing trait Traits.SupportsSqlQueriesTrait - - /// - /// Creates a operation based on a raw SQL statement. - /// - /// The SQL statement. - /// - public Tortuga.Chain.CommandBuilders.MultipleTableDbCommandBuilder Sql(System.String sqlStatement) - { - return __Trait2.Sql(sqlStatement); - } - - /// - /// Creates a operation based on a raw SQL statement. - /// - /// The SQL statement. - /// The argument value. - /// SqlServerSqlCall. - public Tortuga.Chain.CommandBuilders.MultipleTableDbCommandBuilder Sql(System.String sqlStatement, System.Object argumentValue) - { - return __Trait2.Sql(sqlStatement, argumentValue); - } - - // Exposing trait Traits.SupportsTableFunctionTrait - - /// - /// This is used to query a table valued function. - /// - /// Name of the table function. - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder TableFunction(Tortuga.Chain.SqlServer.SqlServerObjectName tableFunctionName) - { - return __Trait15.TableFunction(tableFunctionName); - } - - /// - /// This is used to query a table valued function. - /// - /// Name of the table function. - /// The function argument. - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder TableFunction(Tortuga.Chain.SqlServer.SqlServerObjectName tableFunctionName, System.Object functionArgumentValue) - { - return __Trait15.TableFunction(tableFunctionName, functionArgumentValue); - } - - // Exposing trait Traits.SupportsTruncateTrait - - /// Truncates the specified table. - /// Name of the table to Truncate. - /// The number of rows deleted or null if the database doesn't provide that information. - public Tortuga.Chain.ILink Truncate(Tortuga.Chain.SqlServer.SqlServerObjectName tableName) - { - return __Trait1.Truncate(tableName); - } - - /// Truncates the specified table. - /// This class used to determine which table to Truncate - /// The number of rows deleted or null if the database doesn't provide that information. - public Tortuga.Chain.ILink Truncate()where TObject : class - { - return __Trait1.Truncate(); - } - - // Exposing trait Traits.SupportsUpdateByKeyListTrait - - /// - /// Update a record by its primary key. - /// - /// The type of the t argument. - /// - /// Name of the table. - /// The new values to use. - /// The key. - /// The options. - /// MultipleRowDbCommandBuilder<AbstractCommand, AbstractParameter>. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder UpdateByKey(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, TArgument newValues, TKey key, Tortuga.Chain.UpdateOptions options = 0)where TKey : struct - { - return __Trait6.UpdateByKey(tableName, newValues, key, options); - } - - /// - /// Update a record by its primary key. - /// - /// The type of the t argument. - /// Name of the table. - /// The new values to use. - /// The key. - /// The options. - /// MultipleRowDbCommandBuilder<OleDbCommand, OleDbParameter>. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder UpdateByKey(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, TArgument newValues, System.String key, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait6.UpdateByKey(tableName, newValues, key, options); - } - - /// - /// Update multiple rows by key. - /// - /// The type of the t argument. - /// The type of the t key. - /// Name of the table. - /// The new values to use. - /// The keys. - /// Update options. - /// MultipleRowDbCommandBuilder<OleDbCommand, OleDbParameter>. - /// - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder UpdateByKeyList(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, TArgument newValues, System.Collections.Generic.IEnumerable keys, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait6.UpdateByKeyList(tableName, newValues, keys, options); - } - - // Exposing trait Traits.SupportsUpdateSet - - /// - /// Update multiple records using an update expression. - /// - /// Name of the table. - /// The update expression. - /// The argument value. - /// The update options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.String updateExpression, System.Object? updateArgumentValue, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait8.UpdateSet(tableName, updateExpression, updateArgumentValue, options); - } - - /// - /// Update multiple records using an update value. - /// - /// Name of the table. - /// The new values to use. - /// The options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.Object newValues, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait8.UpdateSet(tableName, newValues, options); - } - - /// - /// Update multiple records using an update expression. - /// - /// Name of the table. - /// The update expression. - /// The update options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.String updateExpression, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait8.UpdateSet(tableName, updateExpression, options); - } - - /// - /// Update multiple records using an update expression. - /// - /// Class used to determine the table name. - /// The update expression. - /// The argument for the update expression. - /// The update options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(System.String updateExpression, System.Object updateArgumentValue, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait8.UpdateSet(updateExpression, updateArgumentValue, options); - } - - /// - /// Update multiple records using an update value. - /// - /// Class used to determine the table name. - /// The new values to use. - /// The options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(System.Object newValues, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait8.UpdateSet(newValues, options); - } - - /// - /// Update multiple records using an update expression. - /// - /// Class used to determine the table name. - /// The update expression. - /// The update options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(System.String updateExpression, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait8.UpdateSet(updateExpression, options); - } - - // Exposing trait Traits.SupportsUpdateTrait - - /// - /// Update an object in the specified table. - /// - /// - /// The argument value. - /// The update options. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Update(TArgument argumentValue, Tortuga.Chain.UpdateOptions options = 0)where TArgument : class - { - return __Trait5.Update(argumentValue, options); - } - - /// - /// Update an object in the specified table. - /// - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Update(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, TArgument argumentValue, Tortuga.Chain.UpdateOptions options = 0)where TArgument : class - { - return __Trait5.Update(tableName, argumentValue, options); - } - - // Exposing trait Traits.SupportsUpsertTrait - - /// - /// Creates a operation used to perform an "upsert" operation. - /// - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Upsert(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, TArgument argumentValue, Tortuga.Chain.UpsertOptions options = 0)where TArgument : class - { - return __Trait12.Upsert(tableName, argumentValue, options); - } - - /// - /// Perform an insert or update operation as appropriate. - /// - /// - /// The argument value. - /// The options for how the insert/update occurs. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Upsert(TArgument argumentValue, Tortuga.Chain.UpsertOptions options = 0)where TArgument : class - { - return __Trait12.Upsert(argumentValue, options); - } - - private partial Tortuga.Chain.ILink OnDeleteAll(Tortuga.Chain.SqlServer.SqlServerObjectName tableName ); - - private partial Tortuga.Chain.CommandBuilders.ProcedureDbCommandBuilder OnProcedure(Tortuga.Chain.SqlServer.SqlServerObjectName procedureName, System.Object? argumentValue ); - - private partial Tortuga.Chain.CommandBuilders.ScalarDbCommandBuilder OnScalarFunction(Tortuga.Chain.SqlServer.SqlServerObjectName scalarFunctionName, System.Object? argumentValue ); - - private partial Tortuga.Chain.CommandBuilders.MultipleTableDbCommandBuilder OnSql(System.String sqlStatement, System.Object? argumentValue ); - - private partial Tortuga.Chain.CommandBuilders.TableDbCommandBuilder OnTableFunction(Tortuga.Chain.SqlServer.SqlServerObjectName tableFunctionName, System.Object? functionArgumentValue ); - - private partial Tortuga.Chain.ILink OnTruncate(Tortuga.Chain.SqlServer.SqlServerObjectName tableName ); - - private void __RegisterTraits() - { - __TraitsRegistered = true; - __Trait0.OnDeleteAll = OnDeleteAll; - __Trait0.DataSource = this; - __Trait1.OnTruncate = OnTruncate; - __Trait1.DataSource = this; - __Trait2.OnSql = OnSql; - __Trait3.DataSource = this; - __Trait4.DataSource = this; - __Trait5.DataSource = this; - __Trait6.DataSource = this; - __Trait7.DataSource = this; - __Trait8.DataSource = this; - __Trait9.DataSource = this; - __Trait10.DataSource = this; - __Trait11.DataSource = this; - __Trait12.DataSource = this; - __Trait13.OnScalarFunction = OnScalarFunction; - __Trait13.DataSource = this; - __Trait14.OnProcedure = OnProcedure; - __Trait14.DataSource = this; - __Trait15.OnTableFunction = OnTableFunction; - __Trait15.DataSource = this; - __Trait16.DataSource = this; - } - - } -} diff --git a/Tortuga.Chain/Tortuga.Chain.SqlServer.OleDb/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.OleDbSqlServerOpenDataSource.cs b/Tortuga.Chain/Tortuga.Chain.SqlServer.OleDb/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.OleDbSqlServerOpenDataSource.cs deleted file mode 100644 index 9e9e8a18a..000000000 --- a/Tortuga.Chain/Tortuga.Chain.SqlServer.OleDb/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.OleDbSqlServerOpenDataSource.cs +++ /dev/null @@ -1,192 +0,0 @@ -//This file was generated by Tortuga Shipwright - -namespace Tortuga.Chain.SqlServer -{ - partial class OleDbSqlServerOpenDataSource: Tortuga.Chain.DataSources.IOpenDataSource - { - - private bool __TraitsRegistered; - - // These fields and/or properties hold the traits. They should not be referenced directly. - private Traits.OpenDataSourceTrait ___Trait0 = new(); - private Traits.OpenDataSourceTrait __Trait0 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait0; - } - } - - // Explicit interface implementation Tortuga.Chain.DataSources.IOpenDataSource - System.Data.Common.DbConnection Tortuga.Chain.DataSources.IOpenDataSource.AssociatedConnection - { - get => ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).AssociatedConnection; - } - System.Data.Common.DbTransaction? Tortuga.Chain.DataSources.IOpenDataSource.AssociatedTransaction - { - get => ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).AssociatedTransaction; - } - void Tortuga.Chain.DataSources.IOpenDataSource.Close() - { - ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).Close(); - } - - System.Boolean Tortuga.Chain.DataSources.IOpenDataSource.TryCommit() - { - return ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).TryCommit(); - } - - System.Boolean Tortuga.Chain.DataSources.IOpenDataSource.TryRollback() - { - return ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).TryRollback(); - } - - // Exposing trait Traits.OpenDataSourceTrait - - /// - /// Returns the associated connection. - /// - /// The associated connection. - public System.Data.OleDb.OleDbConnection AssociatedConnection - { - get => __Trait0.AssociatedConnection; - } - /// - /// Returns the associated transaction. - /// - /// The associated transaction. - public System.Data.OleDb.OleDbTransaction? AssociatedTransaction - { - get => __Trait0.AssociatedTransaction; - } - /// - /// Gets or sets the cache to be used by this data source. The default is .NET's System.Runtime.Caching.MemoryCache. - /// - public override Tortuga.Chain.Core.ICacheAdapter Cache - { - get => __Trait0.Cache; - } - /// - /// Closes the connection and transaction associated with this data source. - /// - public void Close() - { - __Trait0.Close(); - } - - /// - /// Gets the database metadata. - /// - public override Tortuga.Chain.SqlServer.OleDbSqlServerMetadataCache DatabaseMetadata - { - get => __Trait0.DatabaseMetadata; - } - /// - /// The extension cache is used by extensions to store data source specific information. - /// - /// - /// The extension cache. - /// - protected override System.Collections.Concurrent.ConcurrentDictionary ExtensionCache - { - get => __Trait0.ExtensionCache; - } - - private Tortuga.Chain.OleDbSqlServerDataSource m_BaseDataSource - { - get => __Trait0.m_BaseDataSource; - init => __Trait0.m_BaseDataSource = value; - } - - private System.Data.OleDb.OleDbConnection m_Connection - { - get => __Trait0.m_Connection; - init => __Trait0.m_Connection = value; - } - - private System.Data.OleDb.OleDbTransaction? m_Transaction - { - get => __Trait0.m_Transaction; - init => __Trait0.m_Transaction = value; - } - /// - /// Tests the connection. - /// - public override void TestConnection() - { - __Trait0.TestConnection(); - } - - /// - /// Tests the connection asynchronously. - /// - /// - public override System.Threading.Tasks.Task TestConnectionAsync() - { - return __Trait0.TestConnectionAsync(); - } - - /// - /// Tries the commit the transaction associated with this data source. - /// - /// True if there was an open transaction associated with this data source, otherwise false. - public System.Boolean TryCommit() - { - return __Trait0.TryCommit(); - } - - /// - /// Tries to rollback the transaction associated with this data source. - /// - /// True if there was an open transaction associated with this data source, otherwise false. - public System.Boolean TryRollback() - { - return __Trait0.TryRollback(); - } - - /// - /// Modifies this data source with additional audit rules. - /// - /// The additional rules. - /// - public Tortuga.Chain.SqlServer.OleDbSqlServerOpenDataSource WithRules(params Tortuga.Chain.AuditRules.AuditRule[] additionalRules) - { - return __Trait0.WithRules(additionalRules); - } - - /// - /// Modifies this data source with additional audit rules. - /// - /// The additional rules. - /// - public Tortuga.Chain.SqlServer.OleDbSqlServerOpenDataSource WithRules(System.Collections.Generic.IEnumerable additionalRules) - { - return __Trait0.WithRules(additionalRules); - } - - /// - /// Modifies this data source to include the indicated user. - /// - /// The user value. - /// - /// - /// This is used in conjunction with audit rules. - /// - public Tortuga.Chain.SqlServer.OleDbSqlServerOpenDataSource WithUser(System.Object? userValue) - { - return __Trait0.WithUser(userValue); - } - - private partial Tortuga.Chain.SqlServer.OleDbSqlServerOpenDataSource OnOverride(System.Collections.Generic.IEnumerable? additionalRules, System.Object? userValue ); - - private void __RegisterTraits() - { - __TraitsRegistered = true; - __Trait0.OnOverride = OnOverride; - __Trait0.Container = this; - __Trait0.DisposableContainer = this as Traits.IHasOnDispose; - } - - } -} diff --git a/Tortuga.Chain/Tortuga.Chain.SqlServer.OleDb/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.OleDbSqlServerTransactionalDataSource.cs b/Tortuga.Chain/Tortuga.Chain.SqlServer.OleDb/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.OleDbSqlServerTransactionalDataSource.cs deleted file mode 100644 index b103159ff..000000000 --- a/Tortuga.Chain/Tortuga.Chain.SqlServer.OleDb/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.OleDbSqlServerTransactionalDataSource.cs +++ /dev/null @@ -1,181 +0,0 @@ -//This file was generated by Tortuga Shipwright - -namespace Tortuga.Chain.SqlServer -{ - partial class OleDbSqlServerTransactionalDataSource: Tortuga.Chain.DataSources.ITransactionalDataSource, Tortuga.Chain.DataSources.IOpenDataSource, System.IDisposable - { - - private bool __TraitsRegistered; - - // These fields and/or properties hold the traits. They should not be referenced directly. - private Traits.TransactionalDataSourceTrait ___Trait0 = new(); - private Traits.TransactionalDataSourceTrait __Trait0 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait0; - } - } - - // Explicit interface implementation System.IDisposable - void System.IDisposable.Dispose() - { - ((System.IDisposable)__Trait0).Dispose(); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.IOpenDataSource - System.Data.Common.DbConnection Tortuga.Chain.DataSources.IOpenDataSource.AssociatedConnection - { - get => ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).AssociatedConnection; - } - System.Data.Common.DbTransaction? Tortuga.Chain.DataSources.IOpenDataSource.AssociatedTransaction - { - get => ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).AssociatedTransaction; - } - void Tortuga.Chain.DataSources.IOpenDataSource.Close() - { - ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).Close(); - } - - System.Boolean Tortuga.Chain.DataSources.IOpenDataSource.TryCommit() - { - return ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).TryCommit(); - } - - System.Boolean Tortuga.Chain.DataSources.IOpenDataSource.TryRollback() - { - return ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).TryRollback(); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ITransactionalDataSource - void Tortuga.Chain.DataSources.ITransactionalDataSource.Commit() - { - ((Tortuga.Chain.DataSources.ITransactionalDataSource)__Trait0).Commit(); - } - - // Exposing trait Traits.TransactionalDataSourceTrait - - /// - /// Returns the associated connection. - /// - /// The associated connection. - public System.Data.OleDb.OleDbConnection AssociatedConnection - { - get => __Trait0.AssociatedConnection; - } - /// - /// Returns the associated transaction. - /// - /// The associated transaction. - public System.Data.OleDb.OleDbTransaction AssociatedTransaction - { - get => __Trait0.AssociatedTransaction; - } - /// - /// Gets or sets the cache to be used by this data source. The default is .NET's System.Runtime.Caching.MemoryCache. - /// - public override Tortuga.Chain.Core.ICacheAdapter Cache - { - get => __Trait0.Cache; - } - /// - /// Commits the transaction and disposes the underlying connection. - /// - public void Commit() - { - __Trait0.Commit(); - } - - /// - /// Gets the database metadata. - /// - public override Tortuga.Chain.SqlServer.OleDbSqlServerMetadataCache DatabaseMetadata - { - get => __Trait0.DatabaseMetadata; - } - /// - /// Closes the current transaction and connection. If not committed, the transaction is rolled back. - /// - public void Dispose() - { - __Trait0.Dispose(); - } - - /// - /// Closes the current transaction and connection. If not committed, the transaction is rolled back. - /// - /// - protected virtual void Dispose(System.Boolean disposing) - { - __Trait0.Dispose(disposing); - } - - /// - /// The extension cache is used by extensions to store data source specific information. - /// - /// - /// The extension cache. - /// - protected override System.Collections.Concurrent.ConcurrentDictionary ExtensionCache - { - get => __Trait0.ExtensionCache; - } - - private Tortuga.Chain.OleDbSqlServerDataSource m_BaseDataSource - { - get => __Trait0.m_BaseDataSource; - init => __Trait0.m_BaseDataSource = value; - } - - private System.Data.OleDb.OleDbConnection m_Connection - { - get => __Trait0.m_Connection; - init => __Trait0.m_Connection = value; - } - - private System.Boolean m_Disposed - { - get => __Trait0.m_Disposed; - set => __Trait0.m_Disposed = value; - } - - private System.Data.OleDb.OleDbTransaction m_Transaction - { - get => __Trait0.m_Transaction; - init => __Trait0.m_Transaction = value; - } - /// - /// Rolls back the transaction and disposes the underlying connection. - /// - public void Rollback() - { - __Trait0.Rollback(); - } - - /// - /// Tests the connection. - /// - public override void TestConnection() - { - __Trait0.TestConnection(); - } - - /// - /// Tests the connection asynchronously. - /// - /// - public override System.Threading.Tasks.Task TestConnectionAsync() - { - return __Trait0.TestConnectionAsync(); - } - - private void __RegisterTraits() - { - __TraitsRegistered = true; - __Trait0.Container = this; - __Trait0.DisposableContainer = this as Traits.IHasOnDispose; - } - - } -} diff --git a/Tortuga.Chain/Tortuga.Chain.SqlServer.OleDb/Tortuga.Chain.SqlServer.OleDb.csproj b/Tortuga.Chain/Tortuga.Chain.SqlServer.OleDb/Tortuga.Chain.SqlServer.OleDb.csproj index 97f8863ca..682fa6f17 100644 --- a/Tortuga.Chain/Tortuga.Chain.SqlServer.OleDb/Tortuga.Chain.SqlServer.OleDb.csproj +++ b/Tortuga.Chain/Tortuga.Chain.SqlServer.OleDb/Tortuga.Chain.SqlServer.OleDb.csproj @@ -79,7 +79,7 @@ - true + Generated @@ -87,7 +87,7 @@ - + diff --git a/Tortuga.Chain/Tortuga.Chain.SqlServer/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Logs.cs b/Tortuga.Chain/Tortuga.Chain.SqlServer/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Logs.cs deleted file mode 100644 index 3775105d7..000000000 --- a/Tortuga.Chain/Tortuga.Chain.SqlServer/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Logs.cs +++ /dev/null @@ -1,33 +0,0 @@ -/* -Container class: Tortuga.Chain.SqlServerDataSource - Adding trait: Traits.RootDataSourceTrait -Container class: Tortuga.Chain.SqlServer.SqlServerDataSourceBase - Adding trait: Traits.SupportsDeleteAllTrait - Adding trait: Traits.SupportsTruncateTrait - Adding trait: Traits.SupportsSqlQueriesTrait - Adding trait: Traits.SupportsInsertBatchTrait> - Adding trait: Traits.SupportsDeleteByKeyListTrait - Adding trait: Traits.SupportsDeleteTrait - Adding trait: Traits.SupportsUpdateTrait - Adding trait: Traits.SupportsUpdateByKeyListTrait - Adding trait: Traits.SupportsInsertTrait - Adding trait: Traits.SupportsUpdateSet - Adding trait: Traits.SupportsDeleteSet - Adding trait: Traits.SupportsFromTrait - Adding trait: Traits.SupportsGetByKeyListTrait - Adding trait: Traits.SupportsUpsertTrait - Adding trait: Traits.SupportsInsertBulkTrait - Adding trait: Traits.SupportsScalarFunctionTrait - Adding trait: Traits.SupportsProcedureTrait - Adding trait: Traits.SupportsTableFunctionTrait - Adding trait: Traits.SupportsGetByColumnListTrait -Container class: Tortuga.Chain.SqlServer.SqlServerOpenDataSource - Adding trait: Traits.OpenDataSourceTrait -Container class: Tortuga.Chain.SqlServer.SqlServerTransactionalDataSource - Adding trait: Traits.TransactionalDataSourceTrait -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Traits.IHasExtensionCache.get_ExtensionCache -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Tortuga.Chain.DataSources.IOpenDataSource.get_AssociatedConnection -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Tortuga.Chain.DataSources.IOpenDataSource.get_AssociatedTransaction -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Tortuga.Chain.DataSources.IOpenDataSource.get_AssociatedConnection -Unable to process interface member of type Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.MethodSymbol named Tortuga.Chain.DataSources.IOpenDataSource.get_AssociatedTransaction -*/ \ No newline at end of file diff --git a/Tortuga.Chain/Tortuga.Chain.SqlServer/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.SqlServerDataSourceBase.cs b/Tortuga.Chain/Tortuga.Chain.SqlServer/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.SqlServerDataSourceBase.cs deleted file mode 100644 index 7beb823e2..000000000 --- a/Tortuga.Chain/Tortuga.Chain.SqlServer/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.SqlServerDataSourceBase.cs +++ /dev/null @@ -1,1693 +0,0 @@ -//This file was generated by Tortuga Shipwright - -namespace Tortuga.Chain.SqlServer -{ - partial class SqlServerDataSourceBase: Tortuga.Chain.DataSources.ISupportsDeleteAll, Tortuga.Chain.DataSources.ISupportsTruncate, Tortuga.Chain.DataSources.ISupportsSqlQueries, Tortuga.Chain.DataSources.ISupportsInsertBatch, Tortuga.Chain.DataSources.ISupportsDeleteByKeyList, Tortuga.Chain.DataSources.ISupportsDeleteByKey, Tortuga.Chain.DataSources.ISupportsDelete, Tortuga.Chain.DataSources.ISupportsUpdate, Tortuga.Chain.DataSources.ISupportsUpdateByKey, Tortuga.Chain.DataSources.ISupportsUpdateByKeyList, Tortuga.Chain.DataSources.ISupportsInsert, Tortuga.Chain.DataSources.ISupportsUpdateSet, Tortuga.Chain.DataSources.ISupportsDeleteSet, Tortuga.Chain.DataSources.ISupportsFrom, Tortuga.Chain.DataSources.ISupportsGetByKeyList, Tortuga.Chain.DataSources.ISupportsGetByKey, Tortuga.Chain.DataSources.ISupportsUpsert, Tortuga.Chain.DataSources.ISupportsInsertBulk, Tortuga.Chain.DataSources.ISupportsScalarFunction, Tortuga.Chain.DataSources.ISupportsProcedure, Tortuga.Chain.DataSources.ISupportsTableFunction, Tortuga.Chain.DataSources.ISupportsGetByColumnList, Tortuga.Chain.DataSources.ISupportsGetByColumn, Traits.ICommandHelper, Traits.IInsertBatchHelper, Traits.IUpdateDeleteByKeyHelper, Traits.IUpdateDeleteHelper, Traits.IInsertHelper, Traits.IUpdateDeleteSetHelper, Traits.IFromHelper, Traits.IGetByKeyHelper, Traits.IUpsertHelper, Traits.IInsertBulkHelper, Traits.ICommandHelper - { - - private bool __TraitsRegistered; - - // These fields and/or properties hold the traits. They should not be referenced directly. - private Traits.SupportsDeleteAllTrait ___Trait0 = new(); - private Traits.SupportsDeleteAllTrait __Trait0 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait0; - } - } - private Traits.SupportsTruncateTrait ___Trait1 = new(); - private Traits.SupportsTruncateTrait __Trait1 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait1; - } - } - private Traits.SupportsSqlQueriesTrait ___Trait2 = new(); - private Traits.SupportsSqlQueriesTrait __Trait2 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait2; - } - } - private Traits.SupportsInsertBatchTrait> ___Trait3 = new(); - private Traits.SupportsInsertBatchTrait> __Trait3 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait3; - } - } - private Traits.SupportsDeleteByKeyListTrait ___Trait4 = new(); - private Traits.SupportsDeleteByKeyListTrait __Trait4 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait4; - } - } - private Traits.SupportsDeleteTrait ___Trait5 = new(); - private Traits.SupportsDeleteTrait __Trait5 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait5; - } - } - private Traits.SupportsUpdateTrait ___Trait6 = new(); - private Traits.SupportsUpdateTrait __Trait6 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait6; - } - } - private Traits.SupportsUpdateByKeyListTrait ___Trait7 = new(); - private Traits.SupportsUpdateByKeyListTrait __Trait7 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait7; - } - } - private Traits.SupportsInsertTrait ___Trait8 = new(); - private Traits.SupportsInsertTrait __Trait8 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait8; - } - } - private Traits.SupportsUpdateSet ___Trait9 = new(); - private Traits.SupportsUpdateSet __Trait9 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait9; - } - } - private Traits.SupportsDeleteSet ___Trait10 = new(); - private Traits.SupportsDeleteSet __Trait10 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait10; - } - } - private Traits.SupportsFromTrait ___Trait11 = new(); - private Traits.SupportsFromTrait __Trait11 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait11; - } - } - private Traits.SupportsGetByKeyListTrait ___Trait12 = new(); - private Traits.SupportsGetByKeyListTrait __Trait12 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait12; - } - } - private Traits.SupportsUpsertTrait ___Trait13 = new(); - private Traits.SupportsUpsertTrait __Trait13 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait13; - } - } - private Traits.SupportsInsertBulkTrait ___Trait14 = new(); - private Traits.SupportsInsertBulkTrait __Trait14 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait14; - } - } - private Traits.SupportsScalarFunctionTrait ___Trait15 = new(); - private Traits.SupportsScalarFunctionTrait __Trait15 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait15; - } - } - private Traits.SupportsProcedureTrait ___Trait16 = new(); - private Traits.SupportsProcedureTrait __Trait16 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait16; - } - } - private Traits.SupportsTableFunctionTrait ___Trait17 = new(); - private Traits.SupportsTableFunctionTrait __Trait17 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait17; - } - } - private Traits.SupportsGetByColumnListTrait ___Trait18 = new(); - private Traits.SupportsGetByColumnListTrait __Trait18 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait18; - } - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDelete - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDelete.Delete(System.String tableName, TArgument argumentValue, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDelete)__Trait5).Delete(tableName, argumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDelete.Delete(TArgument argumentValue, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDelete)__Trait5).Delete(argumentValue, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDeleteAll - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsDeleteAll.DeleteAll(System.String tableName) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteAll)__Trait0).DeleteAll(tableName); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsDeleteAll.DeleteAll() - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteAll)__Trait0).DeleteAll(); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDeleteByKey - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteByKey.DeleteByKey(System.String tableName, TKey key, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteByKey)__Trait4).DeleteByKey(tableName, key, options); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteByKey.DeleteByKey(System.String tableName, System.String key, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteByKey)__Trait4).DeleteByKey(tableName, key, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDeleteByKeyList - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteByKeyList.DeleteByKeyList(System.String tableName, System.Collections.Generic.IEnumerable keys, Tortuga.Chain.DeleteOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteByKeyList)__Trait4).DeleteByKeyList(tableName, keys, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsDeleteSet - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteSet.DeleteSet(System.String tableName, System.String whereClause) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteSet)__Trait10).DeleteSet(tableName, whereClause); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteSet.DeleteSet(System.String tableName, System.String whereClause, System.Object? argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteSet)__Trait10).DeleteSet(tableName, whereClause, argumentValue); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsDeleteSet.DeleteSet(System.String tableName, System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions) - { - return ((Tortuga.Chain.DataSources.ISupportsDeleteSet)__Trait10).DeleteSet(tableName, filterValue, filterOptions); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsFrom - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String tableOrViewName) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(tableOrViewName); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String tableOrViewName, System.String whereClause) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(tableOrViewName, whereClause); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String tableOrViewName, System.String whereClause, System.Object argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(tableOrViewName, whereClause, argumentValue); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String tableOrViewName, System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(tableOrViewName, filterValue, filterOptions); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From() - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String whereClause) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(whereClause); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.String whereClause, System.Object argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(whereClause, argumentValue); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsFrom.From(System.Object filterValue) - { - return ((Tortuga.Chain.DataSources.ISupportsFrom)__Trait11).From(filterValue); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsGetByColumn - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String tableName, System.String columnName, TKey key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait18).GetByColumn(tableName, columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String tableName, System.String columnName, System.String key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait18).GetByColumn(tableName, columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, TKey key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait18).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.String key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait18).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.Int16 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait18).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.Int32 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait18).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.Int64 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait18).GetByColumn(columnName, key); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumn.GetByColumn(System.String columnName, System.Guid key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumn)__Trait18).GetByColumn(columnName, key); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsGetByColumnList - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String tableName, System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait18).GetByColumnList(tableName, columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait18).GetByColumnList(columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait18).GetByColumnList(columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait18).GetByColumnList(columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait18).GetByColumnList(columnName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByColumnList.GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByColumnList)__Trait18).GetByColumnList(columnName, keys); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsGetByKey - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.String tableName, TKey key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(tableName, key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.String tableName, System.String key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(tableName, key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(TKey key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.String key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.Int16 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.Int32 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.Int64 key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(key); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKey.GetByKey(System.Guid key) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKey)__Trait12).GetByKey(key); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsGetByKeyList - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.String tableName, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(tableName, keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(keys); - } - - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(keys); - } - - [System.Obsolete(@"This will be replaced by GetByColumn")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsGetByKeyList.GetByKeyList(System.String tableName, System.String keyColumn, System.Collections.Generic.IEnumerable keys) - { - return ((Tortuga.Chain.DataSources.ISupportsGetByKeyList)__Trait12).GetByKeyList(tableName, keyColumn, keys); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsInsert - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsInsert.Insert(System.String tableName, TArgument argumentValue, Tortuga.Chain.InsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsInsert)__Trait8).Insert(tableName, argumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsInsert.Insert(TArgument argumentValue, Tortuga.Chain.InsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsInsert)__Trait8).Insert(argumentValue, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsInsertBatch - Tortuga.Chain.CommandBuilders.IDbCommandBuilder Tortuga.Chain.DataSources.ISupportsInsertBatch.InsertBatch(System.Collections.Generic.IEnumerable objects, Tortuga.Chain.InsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBatch)__Trait3).InsertBatch(objects, options); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBatch.InsertMultipleBatch(System.String tableName, System.Collections.Generic.IReadOnlyList objects, Tortuga.Chain.InsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBatch)__Trait3).InsertMultipleBatch(tableName, objects, options); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBatch.InsertMultipleBatch(System.Collections.Generic.IReadOnlyList objects, Tortuga.Chain.InsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBatch)__Trait3).InsertMultipleBatch(objects, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsInsertBulk - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBulk.InsertBulk(System.String tableName, System.Data.DataTable dataTable) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBulk)__Trait14).InsertBulk(tableName, dataTable); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBulk.InsertBulk(System.String tableName, System.Data.IDataReader dataReader) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBulk)__Trait14).InsertBulk(tableName, dataReader); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBulk.InsertBulk(System.String tableName, System.Collections.Generic.IEnumerable objects) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBulk)__Trait14).InsertBulk(tableName, objects); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBulk.InsertBulk(System.Data.DataTable dataTable) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBulk)__Trait14).InsertBulk(dataTable); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBulk.InsertBulk(System.Data.IDataReader dataReader) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBulk)__Trait14).InsertBulk(dataReader); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsInsertBulk.InsertBulk(System.Collections.Generic.IEnumerable objects) - { - return ((Tortuga.Chain.DataSources.ISupportsInsertBulk)__Trait14).InsertBulk(objects); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsProcedure - Tortuga.Chain.CommandBuilders.IProcedureDbCommandBuilder Tortuga.Chain.DataSources.ISupportsProcedure.Procedure(System.String procedureName) - { - return ((Tortuga.Chain.DataSources.ISupportsProcedure)__Trait16).Procedure(procedureName); - } - - Tortuga.Chain.CommandBuilders.IProcedureDbCommandBuilder Tortuga.Chain.DataSources.ISupportsProcedure.Procedure(System.String procedureName, System.Object argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsProcedure)__Trait16).Procedure(procedureName, argumentValue); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsScalarFunction - Tortuga.Chain.CommandBuilders.IScalarDbCommandBuilder Tortuga.Chain.DataSources.ISupportsScalarFunction.ScalarFunction(System.String scalarFunctionName) - { - return ((Tortuga.Chain.DataSources.ISupportsScalarFunction)__Trait15).ScalarFunction(scalarFunctionName); - } - - Tortuga.Chain.CommandBuilders.IScalarDbCommandBuilder Tortuga.Chain.DataSources.ISupportsScalarFunction.ScalarFunction(System.String scalarFunctionName, System.Object functionArgumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsScalarFunction)__Trait15).ScalarFunction(scalarFunctionName, functionArgumentValue); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsSqlQueries - Tortuga.Chain.CommandBuilders.IMultipleTableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsSqlQueries.Sql(System.String sqlStatement, System.Object argumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsSqlQueries)__Trait2).Sql(sqlStatement, argumentValue); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsTableFunction - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsTableFunction.TableFunction(System.String functionName) - { - return ((Tortuga.Chain.DataSources.ISupportsTableFunction)__Trait17).TableFunction(functionName); - } - - Tortuga.Chain.CommandBuilders.ITableDbCommandBuilder Tortuga.Chain.DataSources.ISupportsTableFunction.TableFunction(System.String functionName, System.Object functionArgumentValue) - { - return ((Tortuga.Chain.DataSources.ISupportsTableFunction)__Trait17).TableFunction(functionName, functionArgumentValue); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsTruncate - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsTruncate.Truncate(System.String tableName) - { - return ((Tortuga.Chain.DataSources.ISupportsTruncate)__Trait1).Truncate(tableName); - } - - Tortuga.Chain.ILink Tortuga.Chain.DataSources.ISupportsTruncate.Truncate() - { - return ((Tortuga.Chain.DataSources.ISupportsTruncate)__Trait1).Truncate(); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpdate - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdate.Update(System.String tableName, TArgument argumentValue, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdate)__Trait6).Update(tableName, argumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdate.Update(TArgument argumentValue, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdate)__Trait6).Update(argumentValue, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpdateByKey - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateByKey.UpdateByKey(System.String tableName, TArgument newValues, TKey key, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateByKey)__Trait7).UpdateByKey(tableName, newValues, key, options); - } - - Tortuga.Chain.CommandBuilders.ISingleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateByKey.UpdateByKey(System.String tableName, TArgument newValues, System.String key, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateByKey)__Trait7).UpdateByKey(tableName, newValues, key, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpdateByKeyList - Tortuga.Chain.CommandBuilders.IMultipleRowDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateByKeyList.UpdateByKeyList(System.String tableName, TArgument newValues, System.Collections.Generic.IEnumerable keys, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateByKeyList)__Trait7).UpdateByKeyList(tableName, newValues, keys, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpdateSet - Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateSet.UpdateSet(System.String tableName, System.String updateExpression, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateSet)__Trait9).UpdateSet(tableName, updateExpression, options); - } - - Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateSet.UpdateSet(System.String tableName, System.String updateExpression, System.Object? updateArgumentValue, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateSet)__Trait9).UpdateSet(tableName, updateExpression, updateArgumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpdateSet.UpdateSet(System.String tableName, System.Object newValues, Tortuga.Chain.UpdateOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpdateSet)__Trait9).UpdateSet(tableName, newValues, options); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ISupportsUpsert - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpsert.Upsert(System.String tableName, TArgument argumentValue, Tortuga.Chain.UpsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpsert)__Trait13).Upsert(tableName, argumentValue, options); - } - - Tortuga.Chain.CommandBuilders.IObjectDbCommandBuilder Tortuga.Chain.DataSources.ISupportsUpsert.Upsert(TArgument argumentValue, Tortuga.Chain.UpsertOptions options) - { - return ((Tortuga.Chain.DataSources.ISupportsUpsert)__Trait13).Upsert(argumentValue, options); - } - - // Exposing trait Traits.SupportsDeleteAllTrait - - /// Deletes all records in the specified table. - /// Name of the table to clear. - /// The number of rows deleted or null if the database doesn't provide that information. - public Tortuga.Chain.ILink DeleteAll(Tortuga.Chain.SqlServer.SqlServerObjectName tableName) - { - return __Trait0.DeleteAll(tableName); - } - - /// Deletes all records in the specified table. - /// This class used to determine which table to clear - /// The number of rows deleted or null if the database doesn't provide that information. - public Tortuga.Chain.ILink DeleteAll()where TObject : class - { - return __Trait0.DeleteAll(); - } - - // Exposing trait Traits.SupportsDeleteByKeyListTrait - - /// - /// Delete a record by its primary key. - /// - /// - /// Name of the table. - /// The key. - /// The options. - /// MultipleRowDbCommandBuilder<TCommand, TParameter>. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, T key, Tortuga.Chain.DeleteOptions options = 0)where T : struct - { - return __Trait4.DeleteByKey(tableName, key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Name of the table. - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.String key, Tortuga.Chain.DeleteOptions options = 0) - { - return __Trait4.DeleteByKey(tableName, key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Used to determine the table name - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(System.Guid key, Tortuga.Chain.DeleteOptions options = 0)where TObject : class - { - return __Trait4.DeleteByKey(key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Used to determine the table name - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(System.Int64 key, Tortuga.Chain.DeleteOptions options = 0)where TObject : class - { - return __Trait4.DeleteByKey(key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Used to determine the table name - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(System.Int32 key, Tortuga.Chain.DeleteOptions options = 0)where TObject : class - { - return __Trait4.DeleteByKey(key, options); - } - - /// - /// Delete a record by its primary key. - /// - /// Used to determine the table name - /// The key. - /// The options. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder DeleteByKey(System.String key, Tortuga.Chain.DeleteOptions options = 0)where TObject : class - { - return __Trait4.DeleteByKey(key, options); - } - - /// - /// Delete multiple rows by key. - /// - /// The type of the t key. - /// Name of the table. - /// The keys. - /// Delete options. - /// - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteByKeyList(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.Collections.Generic.IEnumerable keys, Tortuga.Chain.DeleteOptions options = 0) - { - return __Trait4.DeleteByKeyList(tableName, keys, options); - } - - // Exposing trait Traits.SupportsDeleteSet - - /// - /// Delete multiple records using a filter object. - /// - /// Name of the table. - /// The filter value. - /// The options. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteSet(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions = 0) - { - return __Trait10.DeleteSet(tableName, filterValue, filterOptions); - } - - /// - /// Delete multiple records using a filter object. - /// - /// The filter value. - /// The options. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteSet(System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions = 0)where TObject : class - { - return __Trait10.DeleteSet(filterValue, filterOptions); - } - - /// - /// Delete multiple records using a where expression. - /// - /// Name of the table. - /// The where clause. - /// The argument value for the where clause. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteSet(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.String whereClause, System.Object? argumentValue = default) - { - return __Trait10.DeleteSet(tableName, whereClause, argumentValue); - } - - /// - /// Delete multiple records using a where expression. - /// - /// The where clause. - /// The argument value for the where clause. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder DeleteSet(System.String whereClause, System.Object? argumentValue = default)where TObject : class - { - return __Trait10.DeleteSet(whereClause, argumentValue); - } - - // Exposing trait Traits.SupportsDeleteTrait - - /// - /// Creates a command to perform a delete operation. - /// - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Delete(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, TArgument argumentValue, Tortuga.Chain.DeleteOptions options = 0)where TArgument : class - { - return __Trait5.Delete(tableName, argumentValue, options); - } - - /// - /// Delete an object model from the table indicated by the class's Table attribute. - /// - /// - /// The argument value. - /// The delete options. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Delete(TArgument argumentValue, Tortuga.Chain.DeleteOptions options = 0)where TArgument : class - { - return __Trait5.Delete(argumentValue, options); - } - - // Exposing trait Traits.SupportsFromTrait - - /// - /// Creates an operation to directly query a table or view - /// - /// - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(Tortuga.Chain.SqlServer.SqlServerObjectName tableOrViewName) - { - return __Trait11.From(tableOrViewName); - } - - /// - /// Creates an operation to directly query a table or view - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(Tortuga.Chain.SqlServer.SqlServerObjectName tableOrViewName, System.String whereClause) - { - return __Trait11.From(tableOrViewName, whereClause); - } - - /// - /// Creates an operation to directly query a table or view - /// - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(Tortuga.Chain.SqlServer.SqlServerObjectName tableOrViewName, System.String whereClause, System.Object argumentValue) - { - return __Trait11.From(tableOrViewName, whereClause, argumentValue); - } - - /// - /// Creates an operation to directly query a table or view - /// - /// Name of the table or view. - /// The filter value. - /// The filter options. - /// TableDbCommandBuilder<TCommand, TParameter, TLimitOption>. - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(Tortuga.Chain.SqlServer.SqlServerObjectName tableOrViewName, System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions = 0) - { - return __Trait11.From(tableOrViewName, filterValue, filterOptions); - } - - /// - /// This is used to directly query a table or view. - /// - /// - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From()where TObject : class - { - return __Trait11.From(); - } - - /// - /// This is used to directly query a table or view. - /// - /// The type of the object. - /// The where clause. Do not prefix this clause with "WHERE". - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(System.String whereClause)where TObject : class - { - return __Trait11.From(whereClause); - } - - /// - /// This is used to directly query a table or view. - /// - /// The type of the object. - /// The where clause. Do not prefix this clause with "WHERE". - /// Optional argument value. Every property in the argument value must have a matching parameter in the WHERE clause - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(System.String whereClause, System.Object argumentValue)where TObject : class - { - return __Trait11.From(whereClause, argumentValue); - } - - /// - /// This is used to directly query a table or view. - /// - /// The type of the object. - /// The filter value is used to generate a simple AND style WHERE clause. - /// The filter options. - /// TableDbCommandBuilder<TCommand, TParameter, TLimitOption, TObject>. - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder From(System.Object filterValue, Tortuga.Chain.FilterOptions filterOptions = 0)where TObject : class - { - return __Trait11.From(filterValue, filterOptions); - } - - // Exposing trait Traits.SupportsGetByColumnListTrait - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. Used to determine which table will be read. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.Guid key)where TObject : class - { - return __Trait18.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.Int64 key)where TObject : class - { - return __Trait18.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.Int16 key)where TObject : class - { - return __Trait18.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.Int32 key)where TObject : class - { - return __Trait18.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, System.String key)where TObject : class - { - return __Trait18.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the object. - /// The type of the key. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(System.String columnName, TKey key)where TObject : class - { - return __Trait18.GetByColumn(columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// Name of the table. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.String columnName, System.String key) - { - return __Trait18.GetByColumn(tableName, columnName, key); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// - /// Name of the table. - /// The name of the column to search. - /// The search key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumn(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.String columnName, TKey key) - { - return __Trait18.GetByColumn(tableName, columnName, key); - } - - /// - /// Gets a set of records by their primary key. - /// - /// - /// Name of the table. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.String columnName, System.Collections.Generic.IEnumerable keys) - { - return __Trait18.GetByColumnList(tableName, columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The type of the key. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait18.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait18.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait18.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait18.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait18.GetByColumnList(columnName, keys); - } - - /// - /// Gets one or more records by an arbitrary column. - /// - /// The type of the returned object. - /// The name of the column to search. - /// The search keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByColumnList(System.String columnName, System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait18.GetByColumnList(columnName, keys); - } - - // Exposing trait Traits.SupportsGetByKeyListTrait - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. Used to determine which table will be read. - /// The key. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.Guid key)where TObject : class - { - return __Trait12.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The key. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.Int64 key)where TObject : class - { - return __Trait12.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The key. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.Int16 key)where TObject : class - { - return __Trait12.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The key. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.Int32 key)where TObject : class - { - return __Trait12.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The key. - /// - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(System.String key)where TObject : class - { - return __Trait12.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// The type of the object. - /// The type of the key. - /// The key. - /// - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(TKey key)where TObject : class - { - return __Trait12.GetByKey(key); - } - - /// - /// Gets a record by its primary key. - /// - /// Name of the table. - /// The key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.String key) - { - return __Trait12.GetByKey(tableName, key); - } - - /// - /// Gets a record by its primary key. - /// - /// - /// Name of the table. - /// The key. - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder GetByKey(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, TKey key) - { - return __Trait12.GetByKey(tableName, key); - } - - /// - /// Gets a set of records by their primary key. - /// - /// - /// Name of the table. - /// The keys. - /// - /// This only works on tables that have a scalar primary key. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.Collections.Generic.IEnumerable keys) - { - return __Trait12.GetByKeyList(tableName, keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The type of the key. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait12.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait12.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait12.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait12.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait12.GetByKeyList(keys); - } - - /// - /// Gets a set of records by a key list. - /// - /// The type of the returned object. - /// The keys. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.Collections.Generic.IEnumerable keys)where TObject : class - { - return __Trait12.GetByKeyList(keys); - } - - /// Gets a set of records by an unique key. - /// The type of the t key. - /// Name of the table. - /// Name of the key column. This should be a primary or unique key, but that's not enforced. - /// The keys. - /// IMultipleRowDbCommandBuilder. - [System.Obsolete(@"This will be replaced by GetByColumn")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder GetByKeyList(System.String tableName, System.String keyColumn, System.Collections.Generic.IEnumerable keys) - { - return __Trait12.GetByKeyList(tableName, keyColumn, keys); - } - - // Exposing trait Traits.SupportsInsertBatchTrait> - - /// - /// Inserts the batch of records as one operation. - /// - /// - /// Name of the table. - /// The objects to insert. - /// The options. - /// MultipleRowDbCommandBuilder<SqlCommand, SqlParameter>. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder InsertBatch(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.Collections.Generic.IEnumerable objects, Tortuga.Chain.InsertOptions options = 0)where TObject : class - { - return __Trait3.InsertBatch(tableName, objects, options); - } - - /// - /// Inserts the batch of records as one operation. - /// - /// - /// The objects to insert. - /// The options. - /// MultipleRowDbCommandBuilder<SqlCommand, SqlParameter>. - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder InsertBatch(System.Collections.Generic.IEnumerable objects, Tortuga.Chain.InsertOptions options = 0)where TObject : class - { - return __Trait3.InsertBatch(objects, options); - } - - /// - /// Performs a series of batch inserts. - /// - /// The type of the t object. - /// Name of the table. - /// The objects. - /// The options. - /// Tortuga.Chain.ILink<System.Int32>. - /// This operation is not atomic. It should be wrapped in a transaction. - public Tortuga.Chain.ILink InsertMultipleBatch(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.Collections.Generic.IEnumerable objects, Tortuga.Chain.InsertOptions options = 0)where TObject : class - { - return __Trait3.InsertMultipleBatch(tableName, objects, options); - } - - /// - /// Inserts the batch of records as one operation. - /// - /// - /// The objects to insert. - /// The options. - /// MultipleRowDbCommandBuilder<SqlCommand, SqlParameter>. - public Tortuga.Chain.ILink InsertMultipleBatch(System.Collections.Generic.IReadOnlyList objects, Tortuga.Chain.InsertOptions options = 0)where TObject : class - { - return __Trait3.InsertMultipleBatch(objects, options); - } - - // Exposing trait Traits.SupportsInsertBulkTrait - - /// - /// Inserts the batch of records using bulk insert. - /// - /// Name of the table. - /// The data table. - /// TInsertBulkCommand. - public Tortuga.Chain.SqlServer.CommandBuilders.SqlServerInsertBulk InsertBulk(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.Data.DataTable dataTable) - { - return __Trait14.InsertBulk(tableName, dataTable); - } - - /// - /// Inserts the batch of records using bulk insert. - /// - /// Name of the table. - /// The data reader. - /// TInsertBulkCommand. - public Tortuga.Chain.SqlServer.CommandBuilders.SqlServerInsertBulk InsertBulk(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.Data.IDataReader dataReader) - { - return __Trait14.InsertBulk(tableName, dataReader); - } - - /// - /// Inserts the batch of records using bulk insert. - /// - /// - /// Name of the table. - /// The objects. - /// TInsertBulkCommand. - public Tortuga.Chain.SqlServer.CommandBuilders.SqlServerInsertBulk InsertBulk(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.Collections.Generic.IEnumerable objects)where TObject : class - { - return __Trait14.InsertBulk(tableName, objects); - } - - /// - /// Inserts the batch of records using bulk insert. - /// - /// The type of the object. - /// The data table. - /// - /// TInsertBulkCommand. - /// - public Tortuga.Chain.SqlServer.CommandBuilders.SqlServerInsertBulk InsertBulk(System.Data.DataTable dataTable)where TObject : class - { - return __Trait14.InsertBulk(dataTable); - } - - /// - /// Inserts the batch of records using bulk insert. - /// - /// The type of the object. - /// The data reader. - /// - /// TInsertBulkCommand. - /// - public Tortuga.Chain.SqlServer.CommandBuilders.SqlServerInsertBulk InsertBulk(System.Data.IDataReader dataReader)where TObject : class - { - return __Trait14.InsertBulk(dataReader); - } - - /// - /// Inserts the batch of records using bulk insert. - /// - /// The type of the object. - /// The objects. - /// - /// TInsertBulkCommand. - /// - public Tortuga.Chain.SqlServer.CommandBuilders.SqlServerInsertBulk InsertBulk(System.Collections.Generic.IEnumerable objects)where TObject : class - { - return __Trait14.InsertBulk(objects); - } - - // Exposing trait Traits.SupportsInsertTrait - - /// - /// Inserts an object into the specified table. - /// - /// - /// The argument value. - /// The options for how the insert occurs. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Insert(TArgument argumentValue, Tortuga.Chain.InsertOptions options = 0)where TArgument : class - { - return __Trait8.Insert(argumentValue, options); - } - - /// - /// Creates an operation used to perform an insert operation. - /// - /// Name of the table. - /// The argument value. - /// The options. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Insert(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, TArgument argumentValue, Tortuga.Chain.InsertOptions options = 0)where TArgument : class - { - return __Trait8.Insert(tableName, argumentValue, options); - } - - // Exposing trait Traits.SupportsProcedureTrait - - /// - /// Loads a procedure definition - /// - /// Name of the procedure. - /// - public Tortuga.Chain.CommandBuilders.ProcedureDbCommandBuilder Procedure(Tortuga.Chain.SqlServer.SqlServerObjectName procedureName) - { - return __Trait16.Procedure(procedureName); - } - - /// - /// Loads a procedure definition and populates it using the parameter object. - /// - /// Name of the procedure. - /// The argument value. - /// - /// - /// The procedure's definition is loaded from the database and used to determine which properties on the parameter object to use. - /// - public Tortuga.Chain.CommandBuilders.ProcedureDbCommandBuilder Procedure(Tortuga.Chain.SqlServer.SqlServerObjectName procedureName, System.Object argumentValue) - { - return __Trait16.Procedure(procedureName, argumentValue); - } - - // Exposing trait Traits.SupportsScalarFunctionTrait - - /// - /// This is used to query a scalar function. - /// - /// Name of the scalar function. - /// - public Tortuga.Chain.CommandBuilders.ScalarDbCommandBuilder ScalarFunction(Tortuga.Chain.SqlServer.SqlServerObjectName scalarFunctionName) - { - return __Trait15.ScalarFunction(scalarFunctionName); - } - - /// - /// This is used to query a scalar function. - /// - /// Name of the scalar function. - /// The function argument. - /// - public Tortuga.Chain.CommandBuilders.ScalarDbCommandBuilder ScalarFunction(Tortuga.Chain.SqlServer.SqlServerObjectName scalarFunctionName, System.Object functionArgumentValue) - { - return __Trait15.ScalarFunction(scalarFunctionName, functionArgumentValue); - } - - // Exposing trait Traits.SupportsSqlQueriesTrait - - /// - /// Creates a operation based on a raw SQL statement. - /// - /// The SQL statement. - /// - public Tortuga.Chain.CommandBuilders.MultipleTableDbCommandBuilder Sql(System.String sqlStatement) - { - return __Trait2.Sql(sqlStatement); - } - - /// - /// Creates a operation based on a raw SQL statement. - /// - /// The SQL statement. - /// The argument value. - /// SqlServerSqlCall. - public Tortuga.Chain.CommandBuilders.MultipleTableDbCommandBuilder Sql(System.String sqlStatement, System.Object argumentValue) - { - return __Trait2.Sql(sqlStatement, argumentValue); - } - - // Exposing trait Traits.SupportsTableFunctionTrait - - /// - /// This is used to query a table valued function. - /// - /// Name of the table function. - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder TableFunction(Tortuga.Chain.SqlServer.SqlServerObjectName tableFunctionName) - { - return __Trait17.TableFunction(tableFunctionName); - } - - /// - /// This is used to query a table valued function. - /// - /// Name of the table function. - /// The function argument. - /// - public Tortuga.Chain.CommandBuilders.TableDbCommandBuilder TableFunction(Tortuga.Chain.SqlServer.SqlServerObjectName tableFunctionName, System.Object functionArgumentValue) - { - return __Trait17.TableFunction(tableFunctionName, functionArgumentValue); - } - - // Exposing trait Traits.SupportsTruncateTrait - - /// Truncates the specified table. - /// Name of the table to Truncate. - /// The number of rows deleted or null if the database doesn't provide that information. - public Tortuga.Chain.ILink Truncate(Tortuga.Chain.SqlServer.SqlServerObjectName tableName) - { - return __Trait1.Truncate(tableName); - } - - /// Truncates the specified table. - /// This class used to determine which table to Truncate - /// The number of rows deleted or null if the database doesn't provide that information. - public Tortuga.Chain.ILink Truncate()where TObject : class - { - return __Trait1.Truncate(); - } - - // Exposing trait Traits.SupportsUpdateByKeyListTrait - - /// - /// Update a record by its primary key. - /// - /// The type of the t argument. - /// - /// Name of the table. - /// The new values to use. - /// The key. - /// The options. - /// MultipleRowDbCommandBuilder<AbstractCommand, AbstractParameter>. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder UpdateByKey(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, TArgument newValues, TKey key, Tortuga.Chain.UpdateOptions options = 0)where TKey : struct - { - return __Trait7.UpdateByKey(tableName, newValues, key, options); - } - - /// - /// Update a record by its primary key. - /// - /// The type of the t argument. - /// Name of the table. - /// The new values to use. - /// The key. - /// The options. - /// MultipleRowDbCommandBuilder<OleDbCommand, OleDbParameter>. - public Tortuga.Chain.CommandBuilders.SingleRowDbCommandBuilder UpdateByKey(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, TArgument newValues, System.String key, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait7.UpdateByKey(tableName, newValues, key, options); - } - - /// - /// Update multiple rows by key. - /// - /// The type of the t argument. - /// The type of the t key. - /// Name of the table. - /// The new values to use. - /// The keys. - /// Update options. - /// MultipleRowDbCommandBuilder<OleDbCommand, OleDbParameter>. - /// - public Tortuga.Chain.CommandBuilders.MultipleRowDbCommandBuilder UpdateByKeyList(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, TArgument newValues, System.Collections.Generic.IEnumerable keys, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait7.UpdateByKeyList(tableName, newValues, keys, options); - } - - // Exposing trait Traits.SupportsUpdateSet - - /// - /// Update multiple records using an update expression. - /// - /// Name of the table. - /// The update expression. - /// The argument value. - /// The update options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.String updateExpression, System.Object? updateArgumentValue, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait9.UpdateSet(tableName, updateExpression, updateArgumentValue, options); - } - - /// - /// Update multiple records using an update value. - /// - /// Name of the table. - /// The new values to use. - /// The options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.Object newValues, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait9.UpdateSet(tableName, newValues, options); - } - - /// - /// Update multiple records using an update expression. - /// - /// Name of the table. - /// The update expression. - /// The update options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, System.String updateExpression, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait9.UpdateSet(tableName, updateExpression, options); - } - - /// - /// Update multiple records using an update expression. - /// - /// Class used to determine the table name. - /// The update expression. - /// The argument for the update expression. - /// The update options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(System.String updateExpression, System.Object updateArgumentValue, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait9.UpdateSet(updateExpression, updateArgumentValue, options); - } - - /// - /// Update multiple records using an update value. - /// - /// Class used to determine the table name. - /// The new values to use. - /// The options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(System.Object newValues, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait9.UpdateSet(newValues, options); - } - - /// - /// Update multiple records using an update expression. - /// - /// Class used to determine the table name. - /// The update expression. - /// The update options. - /// Use .WithFilter to apply a WHERE clause. - public Tortuga.Chain.CommandBuilders.IUpdateSetDbCommandBuilder UpdateSet(System.String updateExpression, Tortuga.Chain.UpdateOptions options = 0) - { - return __Trait9.UpdateSet(updateExpression, options); - } - - // Exposing trait Traits.SupportsUpdateTrait - - /// - /// Update an object in the specified table. - /// - /// - /// The argument value. - /// The update options. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Update(TArgument argumentValue, Tortuga.Chain.UpdateOptions options = 0)where TArgument : class - { - return __Trait6.Update(argumentValue, options); - } - - /// - /// Update an object in the specified table. - /// - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Update(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, TArgument argumentValue, Tortuga.Chain.UpdateOptions options = 0)where TArgument : class - { - return __Trait6.Update(tableName, argumentValue, options); - } - - // Exposing trait Traits.SupportsUpsertTrait - - /// - /// Creates a operation used to perform an "upsert" operation. - /// - /// - /// - /// - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Upsert(Tortuga.Chain.SqlServer.SqlServerObjectName tableName, TArgument argumentValue, Tortuga.Chain.UpsertOptions options = 0)where TArgument : class - { - return __Trait13.Upsert(tableName, argumentValue, options); - } - - /// - /// Perform an insert or update operation as appropriate. - /// - /// - /// The argument value. - /// The options for how the insert/update occurs. - /// - public Tortuga.Chain.CommandBuilders.ObjectDbCommandBuilder Upsert(TArgument argumentValue, Tortuga.Chain.UpsertOptions options = 0)where TArgument : class - { - return __Trait13.Upsert(argumentValue, options); - } - - private partial Tortuga.Chain.ILink OnDeleteAll(Tortuga.Chain.SqlServer.SqlServerObjectName tableName ); - - private partial Tortuga.Chain.CommandBuilders.ProcedureDbCommandBuilder OnProcedure(Tortuga.Chain.SqlServer.SqlServerObjectName procedureName, System.Object? argumentValue ); - - private partial Tortuga.Chain.CommandBuilders.ScalarDbCommandBuilder OnScalarFunction(Tortuga.Chain.SqlServer.SqlServerObjectName scalarFunctionName, System.Object? argumentValue ); - - private partial Tortuga.Chain.CommandBuilders.MultipleTableDbCommandBuilder OnSql(System.String sqlStatement, System.Object? argumentValue ); - - private partial Tortuga.Chain.CommandBuilders.TableDbCommandBuilder OnTableFunction(Tortuga.Chain.SqlServer.SqlServerObjectName tableFunctionName, System.Object? functionArgumentValue ); - - private partial Tortuga.Chain.ILink OnTruncate(Tortuga.Chain.SqlServer.SqlServerObjectName tableName ); - - private void __RegisterTraits() - { - __TraitsRegistered = true; - __Trait0.OnDeleteAll = OnDeleteAll; - __Trait0.DataSource = this; - __Trait1.OnTruncate = OnTruncate; - __Trait1.DataSource = this; - __Trait2.OnSql = OnSql; - __Trait3.DataSource = this; - __Trait4.DataSource = this; - __Trait5.DataSource = this; - __Trait6.DataSource = this; - __Trait7.DataSource = this; - __Trait8.DataSource = this; - __Trait9.DataSource = this; - __Trait10.DataSource = this; - __Trait11.DataSource = this; - __Trait12.DataSource = this; - __Trait13.DataSource = this; - __Trait14.DataSource = this; - __Trait15.OnScalarFunction = OnScalarFunction; - __Trait15.DataSource = this; - __Trait16.OnProcedure = OnProcedure; - __Trait16.DataSource = this; - __Trait17.OnTableFunction = OnTableFunction; - __Trait17.DataSource = this; - __Trait18.DataSource = this; - } - - } -} diff --git a/Tortuga.Chain/Tortuga.Chain.SqlServer/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.SqlServerOpenDataSource.cs b/Tortuga.Chain/Tortuga.Chain.SqlServer/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.SqlServerOpenDataSource.cs deleted file mode 100644 index 567373587..000000000 --- a/Tortuga.Chain/Tortuga.Chain.SqlServer/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.SqlServerOpenDataSource.cs +++ /dev/null @@ -1,192 +0,0 @@ -//This file was generated by Tortuga Shipwright - -namespace Tortuga.Chain.SqlServer -{ - partial class SqlServerOpenDataSource: Tortuga.Chain.DataSources.IOpenDataSource - { - - private bool __TraitsRegistered; - - // These fields and/or properties hold the traits. They should not be referenced directly. - private Traits.OpenDataSourceTrait ___Trait0 = new(); - private Traits.OpenDataSourceTrait __Trait0 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait0; - } - } - - // Explicit interface implementation Tortuga.Chain.DataSources.IOpenDataSource - System.Data.Common.DbConnection Tortuga.Chain.DataSources.IOpenDataSource.AssociatedConnection - { - get => ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).AssociatedConnection; - } - System.Data.Common.DbTransaction? Tortuga.Chain.DataSources.IOpenDataSource.AssociatedTransaction - { - get => ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).AssociatedTransaction; - } - void Tortuga.Chain.DataSources.IOpenDataSource.Close() - { - ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).Close(); - } - - System.Boolean Tortuga.Chain.DataSources.IOpenDataSource.TryCommit() - { - return ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).TryCommit(); - } - - System.Boolean Tortuga.Chain.DataSources.IOpenDataSource.TryRollback() - { - return ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).TryRollback(); - } - - // Exposing trait Traits.OpenDataSourceTrait - - /// - /// Returns the associated connection. - /// - /// The associated connection. - public System.Data.SqlClient.SqlConnection AssociatedConnection - { - get => __Trait0.AssociatedConnection; - } - /// - /// Returns the associated transaction. - /// - /// The associated transaction. - public System.Data.SqlClient.SqlTransaction? AssociatedTransaction - { - get => __Trait0.AssociatedTransaction; - } - /// - /// Gets or sets the cache to be used by this data source. The default is .NET's System.Runtime.Caching.MemoryCache. - /// - public override Tortuga.Chain.Core.ICacheAdapter Cache - { - get => __Trait0.Cache; - } - /// - /// Closes the connection and transaction associated with this data source. - /// - public void Close() - { - __Trait0.Close(); - } - - /// - /// Gets the database metadata. - /// - public override Tortuga.Chain.SqlServer.SqlServerMetadataCache DatabaseMetadata - { - get => __Trait0.DatabaseMetadata; - } - /// - /// The extension cache is used by extensions to store data source specific information. - /// - /// - /// The extension cache. - /// - protected override System.Collections.Concurrent.ConcurrentDictionary ExtensionCache - { - get => __Trait0.ExtensionCache; - } - - private Tortuga.Chain.SqlServerDataSource m_BaseDataSource - { - get => __Trait0.m_BaseDataSource; - init => __Trait0.m_BaseDataSource = value; - } - - private System.Data.SqlClient.SqlConnection m_Connection - { - get => __Trait0.m_Connection; - init => __Trait0.m_Connection = value; - } - - private System.Data.SqlClient.SqlTransaction? m_Transaction - { - get => __Trait0.m_Transaction; - init => __Trait0.m_Transaction = value; - } - /// - /// Tests the connection. - /// - public override void TestConnection() - { - __Trait0.TestConnection(); - } - - /// - /// Tests the connection asynchronously. - /// - /// - public override System.Threading.Tasks.Task TestConnectionAsync() - { - return __Trait0.TestConnectionAsync(); - } - - /// - /// Tries the commit the transaction associated with this data source. - /// - /// True if there was an open transaction associated with this data source, otherwise false. - public System.Boolean TryCommit() - { - return __Trait0.TryCommit(); - } - - /// - /// Tries to rollback the transaction associated with this data source. - /// - /// True if there was an open transaction associated with this data source, otherwise false. - public System.Boolean TryRollback() - { - return __Trait0.TryRollback(); - } - - /// - /// Modifies this data source with additional audit rules. - /// - /// The additional rules. - /// - public Tortuga.Chain.SqlServer.SqlServerOpenDataSource WithRules(params Tortuga.Chain.AuditRules.AuditRule[] additionalRules) - { - return __Trait0.WithRules(additionalRules); - } - - /// - /// Modifies this data source with additional audit rules. - /// - /// The additional rules. - /// - public Tortuga.Chain.SqlServer.SqlServerOpenDataSource WithRules(System.Collections.Generic.IEnumerable additionalRules) - { - return __Trait0.WithRules(additionalRules); - } - - /// - /// Modifies this data source to include the indicated user. - /// - /// The user value. - /// - /// - /// This is used in conjunction with audit rules. - /// - public Tortuga.Chain.SqlServer.SqlServerOpenDataSource WithUser(System.Object? userValue) - { - return __Trait0.WithUser(userValue); - } - - private partial Tortuga.Chain.SqlServer.SqlServerOpenDataSource OnOverride(System.Collections.Generic.IEnumerable? additionalRules, System.Object? userValue ); - - private void __RegisterTraits() - { - __TraitsRegistered = true; - __Trait0.OnOverride = OnOverride; - __Trait0.Container = this; - __Trait0.DisposableContainer = this as Traits.IHasOnDispose; - } - - } -} diff --git a/Tortuga.Chain/Tortuga.Chain.SqlServer/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.SqlServerTransactionalDataSource.cs b/Tortuga.Chain/Tortuga.Chain.SqlServer/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.SqlServerTransactionalDataSource.cs deleted file mode 100644 index 38bcbe396..000000000 --- a/Tortuga.Chain/Tortuga.Chain.SqlServer/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServer.SqlServerTransactionalDataSource.cs +++ /dev/null @@ -1,181 +0,0 @@ -//This file was generated by Tortuga Shipwright - -namespace Tortuga.Chain.SqlServer -{ - partial class SqlServerTransactionalDataSource: Tortuga.Chain.DataSources.ITransactionalDataSource, Tortuga.Chain.DataSources.IOpenDataSource, System.IDisposable - { - - private bool __TraitsRegistered; - - // These fields and/or properties hold the traits. They should not be referenced directly. - private Traits.TransactionalDataSourceTrait ___Trait0 = new(); - private Traits.TransactionalDataSourceTrait __Trait0 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait0; - } - } - - // Explicit interface implementation System.IDisposable - void System.IDisposable.Dispose() - { - ((System.IDisposable)__Trait0).Dispose(); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.IOpenDataSource - System.Data.Common.DbConnection Tortuga.Chain.DataSources.IOpenDataSource.AssociatedConnection - { - get => ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).AssociatedConnection; - } - System.Data.Common.DbTransaction? Tortuga.Chain.DataSources.IOpenDataSource.AssociatedTransaction - { - get => ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).AssociatedTransaction; - } - void Tortuga.Chain.DataSources.IOpenDataSource.Close() - { - ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).Close(); - } - - System.Boolean Tortuga.Chain.DataSources.IOpenDataSource.TryCommit() - { - return ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).TryCommit(); - } - - System.Boolean Tortuga.Chain.DataSources.IOpenDataSource.TryRollback() - { - return ((Tortuga.Chain.DataSources.IOpenDataSource)__Trait0).TryRollback(); - } - - // Explicit interface implementation Tortuga.Chain.DataSources.ITransactionalDataSource - void Tortuga.Chain.DataSources.ITransactionalDataSource.Commit() - { - ((Tortuga.Chain.DataSources.ITransactionalDataSource)__Trait0).Commit(); - } - - // Exposing trait Traits.TransactionalDataSourceTrait - - /// - /// Returns the associated connection. - /// - /// The associated connection. - public System.Data.SqlClient.SqlConnection AssociatedConnection - { - get => __Trait0.AssociatedConnection; - } - /// - /// Returns the associated transaction. - /// - /// The associated transaction. - public System.Data.SqlClient.SqlTransaction AssociatedTransaction - { - get => __Trait0.AssociatedTransaction; - } - /// - /// Gets or sets the cache to be used by this data source. The default is .NET's System.Runtime.Caching.MemoryCache. - /// - public override Tortuga.Chain.Core.ICacheAdapter Cache - { - get => __Trait0.Cache; - } - /// - /// Commits the transaction and disposes the underlying connection. - /// - public void Commit() - { - __Trait0.Commit(); - } - - /// - /// Gets the database metadata. - /// - public override Tortuga.Chain.SqlServer.SqlServerMetadataCache DatabaseMetadata - { - get => __Trait0.DatabaseMetadata; - } - /// - /// Closes the current transaction and connection. If not committed, the transaction is rolled back. - /// - public void Dispose() - { - __Trait0.Dispose(); - } - - /// - /// Closes the current transaction and connection. If not committed, the transaction is rolled back. - /// - /// - protected virtual void Dispose(System.Boolean disposing) - { - __Trait0.Dispose(disposing); - } - - /// - /// The extension cache is used by extensions to store data source specific information. - /// - /// - /// The extension cache. - /// - protected override System.Collections.Concurrent.ConcurrentDictionary ExtensionCache - { - get => __Trait0.ExtensionCache; - } - - private Tortuga.Chain.SqlServerDataSource m_BaseDataSource - { - get => __Trait0.m_BaseDataSource; - init => __Trait0.m_BaseDataSource = value; - } - - private System.Data.SqlClient.SqlConnection m_Connection - { - get => __Trait0.m_Connection; - init => __Trait0.m_Connection = value; - } - - private System.Boolean m_Disposed - { - get => __Trait0.m_Disposed; - set => __Trait0.m_Disposed = value; - } - - private System.Data.SqlClient.SqlTransaction m_Transaction - { - get => __Trait0.m_Transaction; - init => __Trait0.m_Transaction = value; - } - /// - /// Rolls back the transaction and disposes the underlying connection. - /// - public void Rollback() - { - __Trait0.Rollback(); - } - - /// - /// Tests the connection. - /// - public override void TestConnection() - { - __Trait0.TestConnection(); - } - - /// - /// Tests the connection asynchronously. - /// - /// - public override System.Threading.Tasks.Task TestConnectionAsync() - { - return __Trait0.TestConnectionAsync(); - } - - private void __RegisterTraits() - { - __TraitsRegistered = true; - __Trait0.Container = this; - __Trait0.DisposableContainer = this as Traits.IHasOnDispose; - } - - } -} diff --git a/Tortuga.Chain/Tortuga.Chain.SqlServer/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServerDataSource.cs b/Tortuga.Chain/Tortuga.Chain.SqlServer/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServerDataSource.cs deleted file mode 100644 index fbba70785..000000000 --- a/Tortuga.Chain/Tortuga.Chain.SqlServer/Generated/Tortuga.Shipwright/Tortuga.Shipwright.TraitGenerator/Tortuga.Chain.SqlServerDataSource.cs +++ /dev/null @@ -1,282 +0,0 @@ -//This file was generated by Tortuga Shipwright - -namespace Tortuga.Chain -{ - partial class SqlServerDataSource: Tortuga.Chain.DataSources.IRootDataSource, Traits.IHasExtensionCache - { - - private bool __TraitsRegistered; - - // These fields and/or properties hold the traits. They should not be referenced directly. - private Traits.RootDataSourceTrait ___Trait0 = new(); - private Traits.RootDataSourceTrait __Trait0 - { - get - { - if (!__TraitsRegistered) __RegisterTraits(); - return ___Trait0; - } - } - - // Explicit interface implementation Traits.IHasExtensionCache - System.Collections.Concurrent.ConcurrentDictionary Traits.IHasExtensionCache.ExtensionCache - { - get => ((Traits.IHasExtensionCache)__Trait0).ExtensionCache; - } - // Explicit interface implementation Tortuga.Chain.DataSources.IRootDataSource - Tortuga.Chain.DataSources.ITransactionalDataSource Tortuga.Chain.DataSources.IRootDataSource.BeginTransaction() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).BeginTransaction(); - } - - System.Threading.Tasks.Task Tortuga.Chain.DataSources.IRootDataSource.BeginTransactionAsync() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).BeginTransactionAsync(); - } - - System.Data.Common.DbConnection Tortuga.Chain.DataSources.IRootDataSource.CreateConnection() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateConnection(); - } - - System.Threading.Tasks.Task Tortuga.Chain.DataSources.IRootDataSource.CreateConnectionAsync() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateConnectionAsync(); - } - - Tortuga.Chain.DataSources.IOpenDataSource Tortuga.Chain.DataSources.IRootDataSource.CreateOpenDataSource() - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateOpenDataSource(); - } - - Tortuga.Chain.DataSources.IOpenDataSource Tortuga.Chain.DataSources.IRootDataSource.CreateOpenDataSource(System.Data.Common.DbConnection connection, System.Data.Common.DbTransaction? transaction) - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateOpenDataSource(connection, transaction); - } - - Tortuga.Chain.DataSources.IOpenDataSource Tortuga.Chain.DataSources.IRootDataSource.CreateOpenDataSource(System.Data.IDbConnection connection, System.Data.IDbTransaction? transaction) - { - return ((Tortuga.Chain.DataSources.IRootDataSource)__Trait0).CreateOpenDataSource(connection, transaction); - } - - // Exposing trait Traits.RootDataSourceTrait - - /// - /// Creates a new transaction. - /// - /// - /// The caller of this method is responsible for closing the transaction. - public Tortuga.Chain.SqlServer.SqlServerTransactionalDataSource BeginTransaction() - { - return __Trait0.BeginTransaction(); - } - - /// - /// Creates a new transaction. - /// - /// - /// - /// - /// The caller of this method is responsible for closing the transaction. - public Tortuga.Chain.SqlServer.SqlServerTransactionalDataSource BeginTransaction(System.Nullable isolationLevel = default, System.Boolean forwardEvents = true) - { - return __Trait0.BeginTransaction(isolationLevel, forwardEvents); - } - - /// - /// Creates a new transaction. - /// - /// - /// - /// - /// - /// The caller of this method is responsible for closing the transaction. - public System.Threading.Tasks.Task BeginTransactionAsync(System.Nullable isolationLevel = default, System.Boolean forwardEvents = true, System.Threading.CancellationToken cancellationToken = default) - { - return __Trait0.BeginTransactionAsync(isolationLevel, forwardEvents, cancellationToken); - } - - /// - /// Creates a new transaction. - /// - /// - /// The caller of this method is responsible for closing the transaction. - public System.Threading.Tasks.Task BeginTransactionAsync() - { - return __Trait0.BeginTransactionAsync(); - } - - /// - /// Gets or sets the cache to be used by this data source. The default is .NET's System.Runtime.Caching.MemoryCache. - /// - public override Tortuga.Chain.Core.ICacheAdapter Cache - { - get => __Trait0.Cache; - } - /// - /// The composed connection string. - /// - /// This is created and cached by a ConnectionStringBuilder. - internal System.String ConnectionString - { - get => __Trait0.ConnectionString; - } - /// - /// Creates and opens a new Access connection - /// - /// - /// The caller of this method is responsible for closing the connection. - public System.Data.SqlClient.SqlConnection CreateConnection() - { - return __Trait0.CreateConnection(); - } - - /// - /// Creates the connection asynchronous. - /// - /// The cancellation token. - /// - /// - /// The caller of this method is responsible for closing the connection. - /// - public System.Threading.Tasks.Task CreateConnectionAsync(System.Threading.CancellationToken cancellationToken = default) - { - return __Trait0.CreateConnectionAsync(cancellationToken); - } - - /// - /// Creates an open data source using the supplied connection and optional transaction. - /// - /// The connection to wrap. - /// The transaction to wrap. - /// IOpenDataSource. - /// WARNING: The caller of this method is responsible for closing the connection. - public Tortuga.Chain.SqlServer.SqlServerOpenDataSource CreateOpenDataSource(System.Data.SqlClient.SqlConnection connection, System.Data.SqlClient.SqlTransaction? transaction = default) - { - return __Trait0.CreateOpenDataSource(connection, transaction); - } - - /// - /// Creates an open data source with a new connection. - /// - /// WARNING: The caller of this method is responsible for closing the connection. - public Tortuga.Chain.SqlServer.SqlServerOpenDataSource CreateOpenDataSource() - { - return __Trait0.CreateOpenDataSource(); - } - - /// - /// The extension cache is used by extensions to store data source specific information. - /// - /// - /// The extension cache. - /// - protected override System.Collections.Concurrent.ConcurrentDictionary ExtensionCache - { - get => __Trait0.ExtensionCache; - } - - internal Tortuga.Chain.Core.ICacheAdapter m_Cache - { - get => __Trait0.m_Cache; - set => __Trait0.m_Cache = value; - } - /// - /// This object can be used to access the database connection string. - /// - private System.Data.SqlClient.SqlConnectionStringBuilder m_ConnectionBuilder - { - get => __Trait0.m_ConnectionBuilder; - init => __Trait0.m_ConnectionBuilder = value; - } - - internal System.Collections.Concurrent.ConcurrentDictionary m_ExtensionCache - { - get => __Trait0.m_ExtensionCache; - set => __Trait0.m_ExtensionCache = value; - } - /// - /// Tests the connection. - /// - public override void TestConnection() - { - __Trait0.TestConnection(); - } - - /// - /// Tests the connection asynchronously. - /// - /// - public override System.Threading.Tasks.Task TestConnectionAsync() - { - return __Trait0.TestConnectionAsync(); - } - - /// - /// Creates a new data source with the provided cache. - /// - /// The cache. - /// - public Tortuga.Chain.SqlServerDataSource WithCache(Tortuga.Chain.Core.ICacheAdapter cache) - { - return __Trait0.WithCache(cache); - } - - /// - /// Creates a new data source with additional audit rules. - /// - /// The additional rules. - /// - public Tortuga.Chain.SqlServerDataSource WithRules(params Tortuga.Chain.AuditRules.AuditRule[] additionalRules) - { - return __Trait0.WithRules(additionalRules); - } - - /// - /// Creates a new data source with additional audit rules. - /// - /// The additional rules. - /// - public Tortuga.Chain.SqlServerDataSource WithRules(System.Collections.Generic.IEnumerable additionalRules) - { - return __Trait0.WithRules(additionalRules); - } - - /// - /// Creates a new data source with the indicated user. - /// - /// The user value. - /// - /// - /// This is used in conjunction with audit rules. - /// - public Tortuga.Chain.SqlServerDataSource WithUser(System.Object? userValue) - { - return __Trait0.WithUser(userValue); - } - - private partial Tortuga.Chain.SqlServer.SqlServerTransactionalDataSource OnBeginTransaction(System.Nullable isolationLevel, System.Boolean forwardEvents ); - - private partial System.Threading.Tasks.Task OnBeginTransactionAsync(System.Nullable isolationLevel, System.Boolean forwardEvents, System.Threading.CancellationToken cancellationToken ); - - private partial Tortuga.Chain.SqlServerDataSource OnCloneWithOverrides(Tortuga.Chain.Core.ICacheAdapter? cache, System.Collections.Generic.IEnumerable? additionalRules, System.Object? userValue ); - - private partial System.Data.SqlClient.SqlConnection OnCreateConnection( ); - - private partial System.Threading.Tasks.Task OnCreateConnectionAsync(System.Threading.CancellationToken cancellationToken ); - - private partial Tortuga.Chain.SqlServer.SqlServerOpenDataSource OnCreateOpenDataSource(System.Data.SqlClient.SqlConnection connection, System.Data.SqlClient.SqlTransaction? transaction ); - - private void __RegisterTraits() - { - __TraitsRegistered = true; - __Trait0.OnBeginTransaction = OnBeginTransaction; - __Trait0.OnBeginTransactionAsync = OnBeginTransactionAsync; - __Trait0.OnCreateConnection = OnCreateConnection; - __Trait0.OnCreateConnectionAsync = OnCreateConnectionAsync; - __Trait0.OnCreateOpenDataSource = OnCreateOpenDataSource; - __Trait0.OnCloneWithOverrides = OnCloneWithOverrides; - } - - } -} diff --git a/Tortuga.Chain/Tortuga.Chain.SqlServer/Tortuga.Chain.SqlServer.csproj b/Tortuga.Chain/Tortuga.Chain.SqlServer/Tortuga.Chain.SqlServer.csproj index 281fe56c1..fc5dbec5f 100644 --- a/Tortuga.Chain/Tortuga.Chain.SqlServer/Tortuga.Chain.SqlServer.csproj +++ b/Tortuga.Chain/Tortuga.Chain.SqlServer/Tortuga.Chain.SqlServer.csproj @@ -76,7 +76,7 @@ - true + Generated @@ -84,7 +84,7 @@ - +