├── .gitignore ├── Data ├── TestData.mdb ├── TestData.sdf └── TestData.sqlite ├── NuGet ├── CopyMe.Access.tt.txt ├── CopyMe.DB2.tt.txt ├── CopyMe.Firebird.Core.tt.txt ├── CopyMe.Firebird.tt.txt ├── CopyMe.Informix.tt.txt ├── CopyMe.MySql.Core.tt.txt ├── CopyMe.MySql.tt.txt ├── CopyMe.Oracle.Managed.tt.txt ├── CopyMe.Oracle.x64.tt.txt ├── CopyMe.Oracle.x86.tt.txt ├── CopyMe.PostgreSQL.Core.tt.txt ├── CopyMe.PostgreSQL.tt.txt ├── CopyMe.SQLite.Core.tt.txt ├── CopyMe.SQLite.tt.txt ├── CopyMe.SapHana.tt.txt ├── CopyMe.SqlCe.tt.txt ├── CopyMe.SqlServer.Core.tt.txt ├── CopyMe.SqlServer.tt.txt ├── CopyMe.Sybase.tt.txt ├── CopyMe.tt.txt ├── Init.ps1 ├── Pack.bat ├── PackAV.bat ├── Push.bat ├── install.ps1 ├── linq2db.Access.nuspec ├── linq2db.DB2.nuspec ├── linq2db.Firebird.nuspec ├── linq2db.Informix.nuspec ├── linq2db.MySql.nuspec ├── linq2db.Oracle.Managed.nuspec ├── linq2db.Oracle.x64.nuspec ├── linq2db.Oracle.x86.nuspec ├── linq2db.PostgreSQL.nuspec ├── linq2db.SQLite.nuspec ├── linq2db.SapHana.nuspec ├── linq2db.SqlCe.nuspec ├── linq2db.SqlServer.nuspec ├── linq2db.Sybase.nuspec └── linq2db.t4models.nuspec ├── README.md ├── Redist ├── IBM │ ├── IBM.Data.DB2.dll │ └── IBM.Data.Informix.dll ├── NuGet.exe ├── SapHana │ └── Sap.Data.Hana.v4.5.dll └── Sybase │ ├── Sybase.AdoNet2.AseClient.dll │ └── sybdrvado20.dll ├── T4Models.2017.sln ├── T4Models.sln ├── Templates ├── DataAnnotations.ttinclude ├── DataModel.ttinclude ├── EditableObject.ttinclude ├── Humanizer.ttinclude ├── LinqToDB.Access.ttinclude ├── LinqToDB.DB2.ttinclude ├── LinqToDB.Firebird.ttinclude ├── LinqToDB.Informix.ttinclude ├── LinqToDB.MySql.ttinclude ├── LinqToDB.Oracle.ttinclude ├── LinqToDB.PostgreSQL.ttinclude ├── LinqToDB.SQLite.ttinclude ├── LinqToDB.SapHana.ttinclude ├── LinqToDB.SqlCe.ttinclude ├── LinqToDB.SqlServer.SqlTypes.ttinclude ├── LinqToDB.SqlServer.ttinclude ├── LinqToDB.Sybase.ttinclude ├── LinqToDB.ttinclude ├── MultipleFiles.ttinclude ├── NotifyDataErrorInfo.ttinclude ├── NotifyPropertyChanged.ttinclude ├── ObsoleteAttributes.ttinclude ├── PluralizationService.ttinclude ├── T4Model.ttinclude └── Validation.ttinclude ├── Tests ├── LinqToDB │ ├── Access.generated.cs │ ├── Access.tt │ ├── App.config │ ├── DB2.generated.cs │ ├── DB2.tt │ ├── Firebird.generated.cs │ ├── Firebird.tt │ ├── Informix.generated.cs │ ├── Informix.tt │ ├── MySql.generated.cs │ ├── MySql.tt │ ├── Oracle.generated.cs │ ├── Oracle.tt │ ├── PostgreSQL.generated.cs │ ├── PostgreSQL.tt │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── SQLite.generated.cs │ ├── SQLite.tt │ ├── SapHana.generated.cs │ ├── SapHana.tt │ ├── SqlCe.generated.cs │ ├── SqlCe.tt │ ├── SqlServer.generated.cs │ ├── SqlServer.tt │ ├── SqlServer.ttinclude │ ├── SqlServerTypes │ │ ├── Loader.cs │ │ ├── readme.htm │ │ ├── x64 │ │ │ ├── SqlServerSpatial140.dll │ │ │ └── msvcr120.dll │ │ └── x86 │ │ │ ├── SqlServerSpatial140.dll │ │ │ └── msvcr120.dll │ ├── Sybase.generated.cs │ ├── Sybase.tt │ ├── T4Model.LinqToDB.csproj │ └── packages.config ├── Silverlight.Web │ ├── ClientBin │ │ └── T4Model.Silverlight.xap │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Silverlight.js │ ├── T4Model.Silverlight.Web.csproj │ ├── T4Model.SilverlightTestPage.aspx │ ├── T4Model.SilverlightTestPage.html │ ├── Web.Debug.config │ ├── Web.Release.config │ └── Web.config ├── Silverlight │ ├── App.xaml │ ├── App.xaml.cs │ ├── MainPage.xaml │ ├── MainPage.xaml.cs │ ├── Properties │ │ ├── AppManifest.xml │ │ └── AssemblyInfo.cs │ ├── T4Model.Silverlight.csproj │ ├── ViewModel.cs │ ├── ViewModel.generated.cs │ └── ViewModel.tt ├── Tests │ ├── EditableModelTest.generated.cs │ ├── EditableModelTest.tt │ ├── ModelTest.cs │ ├── ModelTest.generated.cs │ ├── ModelTest.tt │ ├── MultipleFiles.generated.cs │ ├── MultipleFiles.tt │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── T4Model.Tests.csproj │ ├── aaa.cs │ └── bbb.txt └── Wpf │ ├── App.xaml │ ├── App.xaml.cs │ ├── MainWindow.xaml │ ├── MainWindow.xaml.cs │ ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings │ ├── T4Model.Wpf.csproj │ ├── ViewModel.cs │ ├── ViewModel.generated.cs │ └── ViewModel.tt ├── ToolsGenerator ├── Program.cs ├── Properties │ └── AssemblyInfo.cs └── ToolsGenerator.csproj ├── appveyor.yml └── packages ├── FirebirdSql.Data.FirebirdClient.5.6.0 ├── FirebirdSql.Data.FirebirdClient.5.6.0.nupkg ├── content │ ├── app.config.transform │ └── web.config.transform ├── lib │ ├── net40-client │ │ ├── FirebirdSql.Data.FirebirdClient.dll │ │ └── FirebirdSql.Data.FirebirdClient.pdb │ ├── net45 │ │ ├── FirebirdSql.Data.FirebirdClient.dll │ │ └── FirebirdSql.Data.FirebirdClient.pdb │ └── netstandard1.6 │ │ ├── FirebirdSql.Data.FirebirdClient.dll │ │ └── FirebirdSql.Data.FirebirdClient.pdb └── readme.txt ├── Humanizer.Core.2.2.0 ├── Humanizer.Core.2.2.0.nupkg └── lib │ └── netstandard1.0 │ └── Humanizer.dll ├── Microsoft.SqlServer.Compact.4.0.8876.1 ├── Content │ └── web.config.transform ├── Microsoft.SqlServer.Compact.4.0.8876.1.nupkg ├── Microsoft.SqlServer.Compact.4.0.8876.1.nuspec ├── NativeBinaries │ ├── amd64 │ │ ├── Microsoft.VC90.CRT │ │ │ ├── Microsoft.VC90.CRT.manifest │ │ │ ├── README_ENU.txt │ │ │ └── msvcr90.dll │ │ ├── sqlceca40.dll │ │ ├── sqlcecompact40.dll │ │ ├── sqlceer40EN.dll │ │ ├── sqlceme40.dll │ │ ├── sqlceqp40.dll │ │ └── sqlcese40.dll │ └── x86 │ │ ├── Microsoft.VC90.CRT │ │ ├── Microsoft.VC90.CRT.manifest │ │ ├── README_ENU.txt │ │ └── msvcr90.dll │ │ ├── sqlceca40.dll │ │ ├── sqlcecompact40.dll │ │ ├── sqlceer40EN.dll │ │ ├── sqlceme40.dll │ │ ├── sqlceqp40.dll │ │ └── sqlcese40.dll ├── SQLCE_EULA_ENU.rtf ├── lib │ └── net40 │ │ └── System.Data.SqlServerCe.dll └── tools │ ├── Install.ps1 │ ├── Uninstall.ps1 │ ├── VS.psd1 │ └── VS.psm1 ├── Microsoft.SqlServer.Types.14.0.314.76 ├── Microsoft.SqlServer.Types.14.0.314.76.nupkg ├── content │ └── SqlServerTypes │ │ ├── Loader.cs │ │ └── readme.htm ├── lib │ └── net40 │ │ └── Microsoft.SqlServer.Types.dll ├── license │ └── license_SysClrTypes.rtf ├── nativeBinaries │ ├── x64 │ │ ├── SqlServerSpatial140.dll │ │ └── msvcr120.dll │ └── x86 │ │ ├── SqlServerSpatial140.dll │ │ └── msvcr120.dll └── tools │ ├── install.ps1 │ └── uninstall.ps1 ├── MySql.Data.6.9.9 ├── CHANGES ├── MySql.Data.6.9.9.nupkg ├── Readme.txt ├── content │ ├── app.config.transform │ └── web.config.transform └── lib │ ├── net40 │ └── MySql.Data.dll │ └── net45 │ └── MySql.Data.dll ├── Npgsql.3.2.5 ├── Npgsql.3.2.5.nupkg └── lib │ ├── net45 │ ├── Npgsql.dll │ └── Npgsql.xml │ ├── net451 │ ├── Npgsql.dll │ └── Npgsql.xml │ ├── netstandard1.3 │ ├── Npgsql.dll │ └── Npgsql.xml │ └── netstandard2.0 │ ├── Npgsql.dll │ └── Npgsql.xml ├── Oracle.ManagedDataAccess.12.1.24160719 ├── Oracle.ManagedDataAccess.12.1.24160719.nupkg ├── content │ └── net40 │ │ ├── App.config.install.xdt │ │ ├── App.config.transform │ │ ├── App.config.uninstall.xdt │ │ ├── Web.config.install.xdt │ │ ├── Web.config.transform │ │ └── Web.config.uninstall.xdt ├── info.txt ├── lib │ └── net40 │ │ └── Oracle.ManagedDataAccess.dll └── readme.txt ├── System.Data.SQLite.Core.1.0.103 ├── System.Data.SQLite.Core.1.0.103.nupkg ├── build │ ├── net20 │ │ ├── System.Data.SQLite.Core.targets │ │ ├── x64 │ │ │ └── SQLite.Interop.dll │ │ └── x86 │ │ │ └── SQLite.Interop.dll │ ├── net40 │ │ ├── System.Data.SQLite.Core.targets │ │ ├── x64 │ │ │ └── SQLite.Interop.dll │ │ └── x86 │ │ │ └── SQLite.Interop.dll │ ├── net45 │ │ ├── System.Data.SQLite.Core.targets │ │ ├── x64 │ │ │ └── SQLite.Interop.dll │ │ └── x86 │ │ │ └── SQLite.Interop.dll │ ├── net451 │ │ ├── System.Data.SQLite.Core.targets │ │ ├── x64 │ │ │ └── SQLite.Interop.dll │ │ └── x86 │ │ │ └── SQLite.Interop.dll │ └── net46 │ │ ├── System.Data.SQLite.Core.targets │ │ ├── x64 │ │ └── SQLite.Interop.dll │ │ └── x86 │ │ └── SQLite.Interop.dll └── lib │ ├── net20 │ ├── System.Data.SQLite.dll │ └── System.Data.SQLite.xml │ ├── net40 │ ├── System.Data.SQLite.dll │ └── System.Data.SQLite.xml │ ├── net45 │ ├── System.Data.SQLite.dll │ └── System.Data.SQLite.xml │ ├── net451 │ ├── System.Data.SQLite.dll │ └── System.Data.SQLite.xml │ └── net46 │ ├── System.Data.SQLite.dll │ └── System.Data.SQLite.xml ├── System.Threading.Tasks.Extensions.4.3.0 ├── System.Threading.Tasks.Extensions.4.3.0.nupkg ├── ThirdPartyNotices.txt ├── dotnet_library_license.txt └── lib │ ├── netstandard1.0 │ ├── System.Threading.Tasks.Extensions.dll │ └── System.Threading.Tasks.Extensions.xml │ └── portable-net45+win8+wp8+wpa81 │ ├── System.Threading.Tasks.Extensions.dll │ └── System.Threading.Tasks.Extensions.xml ├── linq2db.1.10.0 ├── Readme.txt ├── lib │ ├── net40 │ │ ├── linq2db.XML │ │ ├── linq2db.dll │ │ └── linq2db.pdb │ ├── net45 │ │ ├── linq2db.XML │ │ ├── linq2db.dll │ │ └── linq2db.pdb │ ├── netcore45 │ │ ├── linq2db.WindowsStore.XML │ │ ├── linq2db.WindowsStore.dll │ │ └── linq2db.WindowsStore.pdb │ ├── sl4 │ │ ├── linq2db.Silverlight.XML │ │ ├── linq2db.Silverlight.dll │ │ └── linq2db.Silverlight.pdb │ ├── sl5 │ │ ├── linq2db.Silverlight.XML │ │ ├── linq2db.Silverlight.dll │ │ └── linq2db.Silverlight.pdb │ └── windows8 │ │ ├── linq2db.WindowsStore.XML │ │ ├── linq2db.WindowsStore.dll │ │ └── linq2db.WindowsStore.pdb └── linq2db.1.10.0.nupkg └── repositories.config /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | #ignore thumbnails created by windows 3 | Thumbs.db 4 | #Ignore files build by Visual Studio 5 | *.obj 6 | *.exe 7 | *.pdb 8 | *.user 9 | *.aps 10 | *.pch 11 | *.vspscc 12 | *_i.c 13 | *_p.c 14 | *.ncb 15 | *.suo 16 | *.tlb 17 | *.tlh 18 | *.bak 19 | *.cache 20 | *.ilk 21 | *.log 22 | [Bb]in 23 | [Dd]ebug*/ 24 | *.lib 25 | *.sbr 26 | obj/ 27 | [Rr]elease*/ 28 | _ReSharper*/ 29 | [Tt]est[Rr]esult* 30 | 31 | Tests/T4Model.Silverlight.Web/ClientBin/ 32 | NuGet/*.nupkg 33 | !*.exe 34 | !*.dll 35 | !*.pdb 36 | .vs/* 37 | -------------------------------------------------------------------------------- /Data/TestData.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/Data/TestData.mdb -------------------------------------------------------------------------------- /Data/TestData.sdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/Data/TestData.sdf -------------------------------------------------------------------------------- /Data/TestData.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/Data/TestData.sqlite -------------------------------------------------------------------------------- /NuGet/CopyMe.Access.tt.txt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="$(ProjectDir)LinqToDB.Templates\LinqToDB.Access.Tools.ttinclude" #> 4 | <#@ include file="$(ProjectDir)LinqToDB.Templates\PluralizationService.ttinclude" #> 5 | <# 6 | /* 7 | 1. Copy this file to a folder where you would like to generate your data model, 8 | rename it, and delete .txt extension. For example: 9 | 10 | MyProject 11 | DataModels 12 | MyDatabase.tt 13 | 14 | 2. Modify the connection settings below to connect to your database. 15 | 16 | 3. Add connection string to the web/app.config file: 17 | 18 | 19 | 21 | 22 | 23 | 4. To access your database use the following code: 24 | 25 | using (var db = new MyDatabaseDB()) 26 | { 27 | var q = 28 | from c in db.Customers 29 | select c; 30 | 31 | foreach (var c in q) 32 | Console.WriteLine(c.ContactName); 33 | } 34 | 35 | 5. See more at https://github.com/linq2db/t4models 36 | */ 37 | 38 | NamespaceName = "DataModels"; 39 | 40 | LoadAccessMetadata(@"C:\Data", "MyDatabase.mdb"); 41 | // LoadAccessMetadata(string connectionString); 42 | 43 | GenerateModel(); 44 | #> 45 | -------------------------------------------------------------------------------- /NuGet/CopyMe.DB2.tt.txt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="$(ProjectDir)LinqToDB.Templates\LinqToDB.DB2.Tools.ttinclude" #> 4 | <#@ include file="$(ProjectDir)LinqToDB.Templates\PluralizationService.ttinclude" #> 5 | <# 6 | /* 7 | 1. Download and install IBM Data Server Provider for .NET. 8 | 9 | 2. Add a reference to IBM.Data.DB2.dll. 10 | 11 | 3. Copy this file to a folder where you would like to generate your data model, 12 | rename it, and delete .txt extension. For example: 13 | 14 | MyProject 15 | DataModels 16 | MyDatabase.tt 17 | 18 | 4. Modify the connection settings below to connect to your database. 19 | 20 | 5. Add connection string to the web/app.config file: 21 | 22 | 23 | 25 | 26 | 27 | 6. To access your database use the following code: 28 | 29 | using (var db = new MyDatabaseDB()) 30 | { 31 | var q = 32 | from c in db.Customers 33 | select c; 34 | 35 | foreach (var c in q) 36 | Console.WriteLine(c.ContactName); 37 | } 38 | 39 | 7. See more at https://github.com/linq2db/t4models 40 | */ 41 | 42 | NamespaceName = "DataModels"; 43 | 44 | LoadDB2Metadata("MyServer", "50000", "MyDatabase", "MyUser", "TestPassword"); 45 | // LoadDB2Metadata(string connectionString); 46 | 47 | GenerateModel(); 48 | #> 49 | -------------------------------------------------------------------------------- /NuGet/CopyMe.Firebird.Core.tt.txt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="$(SolutionDir).tools\linq2db.t4models\LinqToDB.Templates\LinqToDB.Firebird.Tools.ttinclude" #> 4 | <#@ include file="$(SolutionDir).tools\linq2db.t4models\LinqToDB.Templates\PluralizationService.ttinclude" #> 5 | <# 6 | /* 7 | 1. Copy this file to a folder where you would like to generate your data model, 8 | rename it, and delete .txt extension. For example: 9 | 10 | MyProject 11 | DataModels 12 | MyDatabase.tt 13 | 14 | 2. Modify the connection settings below to connect to your database. 15 | 16 | 3. Add connection string to the web/app.config file: 17 | 18 | 19 | 20 | 21 | 22 | 4. To access your database use the following code: 23 | 24 | using (var db = new MyDatabaseDB()) 25 | { 26 | var q = 27 | from c in db.Customers 28 | select c; 29 | 30 | foreach (var c in q) 31 | Console.WriteLine(c.ContactName); 32 | } 33 | 34 | 5. See more at https://github.com/linq2db/t4models 35 | */ 36 | 37 | NamespaceName = "DataModels"; 38 | 39 | LoadFirebirdMetadata("MyServer", @"C:\Data\MyDatabase.fdb"); 40 | // LoadFirebirdMetadata(string server, string database, string uid, string password); 41 | // LoadFirebirdMetadata(string connectionString); 42 | 43 | GenerateModel(); 44 | #> 45 | -------------------------------------------------------------------------------- /NuGet/CopyMe.Firebird.tt.txt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="$(ProjectDir)LinqToDB.Templates\LinqToDB.Firebird.Tools.ttinclude" #> 4 | <#@ include file="$(ProjectDir)LinqToDB.Templates\PluralizationService.ttinclude" #> 5 | <# 6 | /* 7 | 1. Copy this file to a folder where you would like to generate your data model, 8 | rename it, and delete .txt extension. For example: 9 | 10 | MyProject 11 | DataModels 12 | MyDatabase.tt 13 | 14 | 2. Modify the connection settings below to connect to your database. 15 | 16 | 3. Add connection string to the web/app.config file: 17 | 18 | 19 | 20 | 21 | 22 | 4. To access your database use the following code: 23 | 24 | using (var db = new MyDatabaseDB()) 25 | { 26 | var q = 27 | from c in db.Customers 28 | select c; 29 | 30 | foreach (var c in q) 31 | Console.WriteLine(c.ContactName); 32 | } 33 | 34 | 5. See more at https://github.com/linq2db/t4models 35 | */ 36 | 37 | NamespaceName = "DataModels"; 38 | 39 | LoadFirebirdMetadata("MyServer", @"C:\Data\MyDatabase.fdb"); 40 | // LoadFirebirdMetadata(string server, string database, string uid, string password); 41 | // LoadFirebirdMetadata(string connectionString); 42 | 43 | GenerateModel(); 44 | #> 45 | -------------------------------------------------------------------------------- /NuGet/CopyMe.Informix.tt.txt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="$(ProjectDir)LinqToDB.Templates\LinqToDB.Informix.Tools.ttinclude" #> 4 | <#@ include file="$(ProjectDir)LinqToDB.Templates\PluralizationService.ttinclude" #> 5 | <# 6 | /* 7 | 1. Download and install IBM Data Server Provider for .NET. 8 | 9 | 2. Add a reference to IBM.Data.Informix.dll. 10 | 11 | 3. Copy this file to a folder where you would like to generate your data model, 12 | rename it, and delete .txt extension. For example: 13 | 14 | MyProject 15 | DataModels 16 | MyDatabase.tt 17 | 18 | 4. Modify the connection settings below to connect to your database. 19 | 20 | 5. Add connection string to the web/app.config file: 21 | 22 | 23 | 26 | 27 | 28 | 6. To access your database use the following code: 29 | 30 | using (var db = new MyDatabaseDB()) 31 | { 32 | var q = 33 | from c in db.Customers 34 | select c; 35 | 36 | foreach (var c in q) 37 | Console.WriteLine(c.ContactName); 38 | } 39 | 40 | 7. See more at https://github.com/linq2db/t4models 41 | */ 42 | 43 | NamespaceName = "DataModels"; 44 | 45 | LoadInformixMetadata("MyServer", "9088", "ol_informix1170", "MyDatabase", "informix", "TestPassword"); 46 | // LoadInformixMetadata(string connectionString); 47 | 48 | GenerateModel(); 49 | #> 50 | -------------------------------------------------------------------------------- /NuGet/CopyMe.MySql.Core.tt.txt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="$(SolutionDir).tools\linq2db.t4models\LinqToDB.Templates\LinqToDB.MySql.Tools.ttinclude" #> 4 | <#@ include file="$(SolutionDir).tools\linq2db.t4models\LinqToDB.Templates\PluralizationService.ttinclude" #> 5 | <# 6 | /* 7 | 1. Copy this file to a folder where you would like to generate your data model, 8 | rename it, and delete .txt extension. For example: 9 | 10 | MyProject 11 | DataModels 12 | MyDatabase.tt 13 | 14 | 2. Modify the connection settings below to connect to your database. 15 | 16 | 3. Add connection string to the web/app.config file: 17 | 18 | 19 | 20 | 21 | 22 | 4. To access your database use the following code: 23 | 24 | using (var db = new MyDatabaseDB()) 25 | { 26 | var q = 27 | from c in db.Customers 28 | select c; 29 | 30 | foreach (var c in q) 31 | Console.WriteLine(c.ContactName); 32 | } 33 | 34 | 5. See more at https://github.com/linq2db/t4models 35 | */ 36 | 37 | NamespaceName = "DataModels"; 38 | 39 | LoadMySqlMetadata("MyServer", "MyDatabase", "root", "TestPassword"); 40 | // LoadMySqlMetadata(string connectionString); 41 | 42 | GenerateModel(); 43 | #> 44 | -------------------------------------------------------------------------------- /NuGet/CopyMe.MySql.tt.txt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="$(ProjectDir)LinqToDB.Templates\LinqToDB.MySql.Tools.ttinclude" #> 4 | <#@ include file="$(ProjectDir)LinqToDB.Templates\PluralizationService.ttinclude" #> 5 | <# 6 | /* 7 | 1. Copy this file to a folder where you would like to generate your data model, 8 | rename it, and delete .txt extension. For example: 9 | 10 | MyProject 11 | DataModels 12 | MyDatabase.tt 13 | 14 | 2. Modify the connection settings below to connect to your database. 15 | 16 | 3. Add connection string to the web/app.config file: 17 | 18 | 19 | 20 | 21 | 22 | 4. To access your database use the following code: 23 | 24 | using (var db = new MyDatabaseDB()) 25 | { 26 | var q = 27 | from c in db.Customers 28 | select c; 29 | 30 | foreach (var c in q) 31 | Console.WriteLine(c.ContactName); 32 | } 33 | 34 | 5. See more at https://github.com/linq2db/t4models 35 | */ 36 | 37 | NamespaceName = "DataModels"; 38 | 39 | LoadMySqlMetadata("MyServer", "MyDatabase", "root", "TestPassword"); 40 | // LoadMySqlMetadata(string connectionString); 41 | 42 | GenerateModel(); 43 | #> 44 | -------------------------------------------------------------------------------- /NuGet/CopyMe.Oracle.Managed.tt.txt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="$(ProjectDir)LinqToDB.Templates\LinqToDB.Oracle.Managed.Tools.ttinclude" #> 4 | <#@ include file="$(ProjectDir)LinqToDB.Templates\PluralizationService.ttinclude" #> 5 | <# 6 | /* 7 | 1. Copy this file to a folder where you would like to generate your data model, 8 | rename it, and delete .txt extension. For example: 9 | 10 | MyProject 11 | DataModels 12 | MyDatabase.tt 13 | 14 | 2. Modify the connection settings below to connect to your database. 15 | 16 | 3. Add connection string to the web/app.config file: 17 | 18 | 19 | 20 | 21 | 22 | 4. To access your database use the following code: 23 | 24 | using (var db = new MyDatabaseDB()) 25 | { 26 | var q = 27 | from c in db.Customers 28 | select c; 29 | 30 | foreach (var c in q) 31 | Console.WriteLine(c.ContactName); 32 | } 33 | 34 | 5. See more at https://github.com/linq2db/t4models 35 | */ 36 | 37 | NamespaceName = "DataModels"; 38 | 39 | LoadOracleMetadata("MyServer", "1521", "MyDatabase", "MyUser", "MyPassword"); 40 | // LoadOracleMetadata(string connectionString); 41 | 42 | GenerateModel(); 43 | #> 44 | -------------------------------------------------------------------------------- /NuGet/CopyMe.Oracle.x64.tt.txt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="$(ProjectDir)LinqToDB.Templates\LinqToDB.Oracle.x64.Tools.ttinclude" #> 4 | <#@ include file="$(ProjectDir)LinqToDB.Templates\PluralizationService.ttinclude" #> 5 | <# 6 | /* 7 | 1. Download and install Oracle data provider for .NET (http://www.oracle.com/technetwork/topics/dotnet/downloads/index.html). 8 | 9 | 2. Copy this file to a folder where you would like to generate your data model, 10 | rename it, and delete .txt extension. For example: 11 | 12 | MyProject 13 | DataModels 14 | MyDatabase.tt 15 | 16 | 3. Modify the connection settings below to connect to your database. 17 | 18 | 4. Add connection string to the web/app.config file: 19 | 20 | 21 | 22 | 23 | 24 | 5. To access your database use the following code: 25 | 26 | using (var db = new MyDatabaseDB()) 27 | { 28 | var q = 29 | from c in db.Customers 30 | select c; 31 | 32 | foreach (var c in q) 33 | Console.WriteLine(c.ContactName); 34 | } 35 | 36 | 5. See more at https://github.com/linq2db/t4models 37 | */ 38 | 39 | NamespaceName = "DataModels"; 40 | 41 | LoadOracleMetadata("MyServer", "1521", "MyDatabase", "MyUser", "MyPassword"); 42 | // LoadOracleMetadata(string connectionString); 43 | 44 | GenerateModel(); 45 | #> 46 | -------------------------------------------------------------------------------- /NuGet/CopyMe.Oracle.x86.tt.txt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="$(ProjectDir)LinqToDB.Templates\LinqToDB.Oracle.x86.Tools.ttinclude" #> 4 | <#@ include file="$(ProjectDir)LinqToDB.Templates\PluralizationService.ttinclude" #> 5 | <# 6 | /* 7 | 1. Download and install Oracle data provider for .NET (http://www.oracle.com/technetwork/topics/dotnet/downloads/index.html). 8 | 9 | 2. Copy this file to a folder where you would like to generate your data model, 10 | rename it, and delete .txt extension. For example: 11 | 12 | MyProject 13 | DataModels 14 | MyDatabase.tt 15 | 16 | 3. Modify the connection settings below to connect to your database. 17 | 18 | 4. Add connection string to the web/app.config file: 19 | 20 | 21 | 22 | 23 | 24 | 5. To access your database use the following code: 25 | 26 | using (var db = new MyDatabaseDB()) 27 | { 28 | var q = 29 | from c in db.Customers 30 | select c; 31 | 32 | foreach (var c in q) 33 | Console.WriteLine(c.ContactName); 34 | } 35 | 36 | 6. See more at https://github.com/linq2db/t4models 37 | */ 38 | 39 | NamespaceName = "DataModels"; 40 | 41 | LoadOracleMetadata("MyServer", "1521", "MyDatabase", "MyUser", "MyPassword"); 42 | // LoadOracleMetadata(string connectionString); 43 | 44 | GenerateModel(); 45 | #> 46 | -------------------------------------------------------------------------------- /NuGet/CopyMe.PostgreSQL.Core.tt.txt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file=$(SolutionDir).tools\linq2db.t4models\LinqToDB.Templates\LinqToDB.PostgreSQL.Tools.ttinclude" #> 4 | <#@ include file=$(SolutionDir).tools\linq2db.t4models\LinqToDB.Templates\PluralizationService.ttinclude" #> 5 | <# 6 | /* 7 | 1. Copy this file to a folder where you would like to generate your data model, 8 | rename it, and delete .txt extension. For example: 9 | 10 | MyProject 11 | DataModels 12 | MyDatabase.tt 13 | 14 | 2. Modify the connection settings below to connect to your database. 15 | 16 | 3. Add connection string to the web/app.config file: 17 | 18 | 19 | 20 | 21 | 22 | 4. To access your database use the following code: 23 | 24 | using (var db = new MyDatabaseDB()) 25 | { 26 | var q = 27 | from c in db.Customers 28 | select c; 29 | 30 | foreach (var c in q) 31 | Console.WriteLine(c.ContactName); 32 | } 33 | 34 | 5. See more at https://github.com/linq2db/t4models 35 | */ 36 | 37 | NamespaceName = "DataModels"; 38 | 39 | LoadPostgreSQLMetadata("MyServer", "5432", "MyDatabase", "postgres", "TestPassword"); 40 | // LoadPostgreSQLMetadata(string connectionString); 41 | 42 | GenerateModel(); 43 | #> 44 | -------------------------------------------------------------------------------- /NuGet/CopyMe.PostgreSQL.tt.txt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="$(ProjectDir)LinqToDB.Templates\LinqToDB.PostgreSQL.Tools.ttinclude" #> 4 | <#@ include file="$(ProjectDir)LinqToDB.Templates\PluralizationService.ttinclude" #> 5 | <# 6 | /* 7 | 1. Copy this file to a folder where you would like to generate your data model, 8 | rename it, and delete .txt extension. For example: 9 | 10 | MyProject 11 | DataModels 12 | MyDatabase.tt 13 | 14 | 2. Modify the connection settings below to connect to your database. 15 | 16 | 3. Add connection string to the web/app.config file: 17 | 18 | 19 | 20 | 21 | 22 | 4. To access your database use the following code: 23 | 24 | using (var db = new MyDatabaseDB()) 25 | { 26 | var q = 27 | from c in db.Customers 28 | select c; 29 | 30 | foreach (var c in q) 31 | Console.WriteLine(c.ContactName); 32 | } 33 | 34 | 5. See more at https://github.com/linq2db/t4models 35 | */ 36 | 37 | NamespaceName = "DataModels"; 38 | 39 | LoadPostgreSQLMetadata("MyServer", "5432", "MyDatabase", "postgres", "TestPassword"); 40 | // LoadPostgreSQLMetadata(string connectionString); 41 | 42 | GenerateModel(); 43 | #> 44 | -------------------------------------------------------------------------------- /NuGet/CopyMe.SQLite.Core.tt.txt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="$(SolutionDir).tools\linq2db.t4models\LinqToDB.Templates\LinqToDB.SQLite.Tools.ttinclude" #> 4 | <#@ include file="$(SolutionDir).tools\linq2db.t4models\LinqToDB.Templates\PluralizationService.ttinclude" #> 5 | <# 6 | /* 7 | 1. Copy this file to a folder where you would like to generate your data model, 8 | rename it, and delete .txt extension. For example: 9 | 10 | MyProject 11 | DataModels 12 | MyDatabase.tt 13 | 14 | 2. Modify the connection settings below to connect to your database. 15 | 16 | 3. Add connection string to the web/app.config file: 17 | 18 | 19 | 20 | 21 | 22 | 4. To access your database use the following code: 23 | 24 | using (var db = new MyDatabaseDB()) 25 | { 26 | var q = 27 | from c in db.Customers 28 | select c; 29 | 30 | foreach (var c in q) 31 | Console.WriteLine(c.ContactName); 32 | } 33 | 34 | 5. See more at https://github.com/linq2db/t4models 35 | */ 36 | 37 | NamespaceName = "DataModels"; 38 | 39 | LoadSQLiteMetadata(@"C:\Data", "MyDatabase.sqlite"); 40 | // LoadSQLiteMetadata(string connectionString); 41 | 42 | GenerateModel(); 43 | #> 44 | -------------------------------------------------------------------------------- /NuGet/CopyMe.SQLite.tt.txt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="$(ProjectDir)LinqToDB.Templates\LinqToDB.SQLite.Tools.ttinclude" #> 4 | <#@ include file="$(ProjectDir)LinqToDB.Templates\PluralizationService.ttinclude" #> 5 | <# 6 | /* 7 | 1. Copy this file to a folder where you would like to generate your data model, 8 | rename it, and delete .txt extension. For example: 9 | 10 | MyProject 11 | DataModels 12 | MyDatabase.tt 13 | 14 | 2. Modify the connection settings below to connect to your database. 15 | 16 | 3. Add connection string to the web/app.config file: 17 | 18 | 19 | 20 | 21 | 22 | 4. To access your database use the following code: 23 | 24 | using (var db = new MyDatabaseDB()) 25 | { 26 | var q = 27 | from c in db.Customers 28 | select c; 29 | 30 | foreach (var c in q) 31 | Console.WriteLine(c.ContactName); 32 | } 33 | 34 | 5. See more at https://github.com/linq2db/t4models 35 | */ 36 | 37 | NamespaceName = "DataModels"; 38 | 39 | LoadSQLiteMetadata(@"C:\Data", "MyDatabase.sqlite"); 40 | // LoadSQLiteMetadata(string connectionString); 41 | 42 | GenerateModel(); 43 | #> 44 | -------------------------------------------------------------------------------- /NuGet/CopyMe.SapHana.tt.txt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="$(ProjectDir)LinqToDB.Templates\LinqToDB.SapHana.Tools.ttinclude" #> 4 | <#@ include file="$(ProjectDir)LinqToDB.Templates\PluralizationService.ttinclude" #> 5 | <# 6 | /* 7 | 1. Download and install SapHana data provider for .NET. 8 | 9 | 2. Add a reference to Sap.Data.Hana.dll. 10 | 11 | 3. Copy this file to a folder where you would like to generate your data model, 12 | rename it, and delete .txt extension. For example: 13 | 14 | MyProject 15 | DataModels 16 | MyDatabase.tt 17 | 18 | 4. Modify the connection settings below to connect to your database. 19 | 20 | 5. Add connection string to the web/app.config file: 21 | 22 | 23 | 24 | 25 | 26 | 6. To access your database use the following code: 27 | 28 | using (var db = new MyDatabaseDB()) 29 | { 30 | var q = 31 | from c in db.Customers 32 | select c; 33 | 34 | foreach (var c in q) 35 | Console.WriteLine(c.ContactName); 36 | } 37 | 38 | 7. See more at https://github.com/linq2db/t4models 39 | */ 40 | 41 | NamespaceName = "DataModels"; 42 | 43 | LoadSybaseMetadata("MyServer", "MyDatabase", "TestUser", "TestPassword"); 44 | 45 | GenerateModel(); 46 | #> 47 | -------------------------------------------------------------------------------- /NuGet/CopyMe.SqlCe.tt.txt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="$(ProjectDir)LinqToDB.Templates\LinqToDB.SqlCe.Tools.ttinclude" #> 4 | <#@ include file="$(ProjectDir)LinqToDB.Templates\PluralizationService.ttinclude" #> 5 | <# 6 | /* 7 | 1. Copy this file to a folder where you would like to generate your data model, 8 | rename it, and delete .txt extension. For example: 9 | 10 | MyProject 11 | DataModels 12 | MyDatabase.tt 13 | 14 | 2. Modify the connection settings below to connect to your database. 15 | 16 | 3. Add connection string to the web/app.config file: 17 | 18 | 19 | 20 | 21 | 22 | 4. To access your database use the following code: 23 | 24 | using (var db = new MyDatabaseDB()) 25 | { 26 | var q = 27 | from c in db.Customers 28 | select c; 29 | 30 | foreach (var c in q) 31 | Console.WriteLine(c.ContactName); 32 | } 33 | 34 | 5. See more at https://github.com/linq2db/t4models 35 | */ 36 | 37 | NamespaceName = "DataModels"; 38 | 39 | LoadSqlCeMetadata(@"C:\Data", "MyDatabase.sdf"); 40 | // LoadSqlCeMetadata(string connectionString); 41 | 42 | GenerateModel(); 43 | #> 44 | -------------------------------------------------------------------------------- /NuGet/CopyMe.SqlServer.Core.tt.txt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="$(SolutionDir).tools\linq2db.t4models\LinqToDB.Templates\LinqToDB.SqlServer.Tools.ttinclude" #> 4 | <#@ include file="$(SolutionDir).tools\linq2db.t4models\LinqToDB.Templates\PluralizationService.ttinclude" #> 5 | <# 6 | /* 7 | 1. Copy this file to a folder where you would like to generate your data model, 8 | rename it, and delete .txt extension. For example: 9 | 10 | MyProject 11 | DataModels 12 | MyDatabase.tt 13 | 14 | 2. Modify the connection settings below to connect to your database. 15 | 16 | 3. Add connection string to the web/app.config file: 17 | 18 | 19 | 21 | 22 | 23 | 4. To access your database use the following code: 24 | 25 | using (var db = new MyDatabaseDB()) 26 | { 27 | var q = 28 | from c in db.Customers 29 | select c; 30 | 31 | foreach (var c in q) 32 | Console.WriteLine(c.ContactName); 33 | } 34 | 35 | 5. See more at https://github.com/linq2db/t4models 36 | 37 | If you need to use the Microsoft.SqlServer.Types namespace, install the Microsoft.SqlServer.Types nuget, 38 | and replace the following include at the top of this file: 39 | 40 | "$(ProjectDir)LinqToDB.Templates\LinqToDB.SqlServer.Tools.ttinclude" 41 | 42 | with 43 | 44 | "$(ProjectDir)LinqToDB.Templates\LinqToDB.SqlServer.SqlTypes.Tools.ttinclude" 45 | */ 46 | 47 | NamespaceName = "DataModels"; 48 | 49 | LoadSqlServerMetadata("MyServer", "MyDatabase", "User", "Password"); 50 | // LoadSqlServerMetadata(".", "MyDatabase"); // Integrated Security 51 | // LoadSqlServerMetadata(string connectionString); 52 | 53 | GenerateModel(); 54 | #> 55 | -------------------------------------------------------------------------------- /NuGet/CopyMe.SqlServer.tt.txt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="$(ProjectDir)LinqToDB.Templates\LinqToDB.SqlServer.Tools.ttinclude" #> 4 | <#@ include file="$(ProjectDir)LinqToDB.Templates\PluralizationService.ttinclude" #> 5 | <# 6 | /* 7 | 1. Copy this file to a folder where you would like to generate your data model, 8 | rename it, and delete .txt extension. For example: 9 | 10 | MyProject 11 | DataModels 12 | MyDatabase.tt 13 | 14 | 2. Modify the connection settings below to connect to your database. 15 | 16 | 3. Add connection string to the web/app.config file: 17 | 18 | 19 | 21 | 22 | 23 | 4. To access your database use the following code: 24 | 25 | using (var db = new MyDatabaseDB()) 26 | { 27 | var q = 28 | from c in db.Customers 29 | select c; 30 | 31 | foreach (var c in q) 32 | Console.WriteLine(c.ContactName); 33 | } 34 | 35 | 5. See more at https://github.com/linq2db/t4models 36 | 37 | If you need to use the Microsoft.SqlServer.Types namespace, install the Microsoft.SqlServer.Types nuget, 38 | and replace the following include at the top of this file: 39 | 40 | "$(ProjectDir)LinqToDB.Templates\LinqToDB.SqlServer.Tools.ttinclude" 41 | 42 | with 43 | 44 | "$(ProjectDir)LinqToDB.Templates\LinqToDB.SqlServer.SqlTypes.Tools.ttinclude" 45 | */ 46 | 47 | NamespaceName = "DataModels"; 48 | 49 | LoadSqlServerMetadata("MyServer", "MyDatabase", "User", "Password"); 50 | // LoadSqlServerMetadata(".", "MyDatabase"); // Integrated Security 51 | // LoadSqlServerMetadata(string connectionString); 52 | 53 | GenerateModel(); 54 | #> 55 | -------------------------------------------------------------------------------- /NuGet/CopyMe.Sybase.tt.txt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="$(ProjectDir)LinqToDB.Templates\LinqToDB.Sybase.Tools.ttinclude" #> 4 | <#@ include file="$(ProjectDir)LinqToDB.Templates\PluralizationService.ttinclude" #> 5 | <# 6 | /* 7 | 1. Download and install Sybase data provider for .NET (http://www.sybase.com/developer). 8 | 9 | 2. Add a reference to Sybase.AdoNet2(4).AseClient.dll. 10 | 11 | 3. Copy this file to a folder where you would like to generate your data model, 12 | rename it, and delete .txt extension. For example: 13 | 14 | MyProject 15 | DataModels 16 | MyDatabase.tt 17 | 18 | 4. Modify the connection settings below to connect to your database. 19 | 20 | 5. Add connection string to the web/app.config file: 21 | 22 | 23 | 24 | 25 | 26 | 6. To access your database use the following code: 27 | 28 | using (var db = new MyDatabaseDB()) 29 | { 30 | var q = 31 | from c in db.Customers 32 | select c; 33 | 34 | foreach (var c in q) 35 | Console.WriteLine(c.ContactName); 36 | } 37 | 38 | 7. See more at https://github.com/linq2db/t4models 39 | */ 40 | 41 | NamespaceName = "DataModels"; 42 | 43 | LoadSybaseMetadata("MyServer", "5000", "MyDatabase", "sa", "TestPassword"); 44 | // LoadSybaseMetadata(string connectionString); 45 | 46 | GenerateModel(); 47 | #> 48 | -------------------------------------------------------------------------------- /NuGet/CopyMe.tt.txt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="$(ProjectDir)LinqToDB.Templates\LinqToDB.ttinclude" #> 4 | <#@ include file="$(ProjectDir)LinqToDB.Templates\PluralizationService.ttinclude" #> 5 | <# 6 | /* 7 | 1. Copy this file to a folder where you would like to generate your data model, 8 | rename it, and delete .txt extension. For example: 9 | 10 | MyProject 11 | DataModels 12 | Northwind.tt 13 | 14 | 2. Modify the connectionString below to connect to your database. 15 | 16 | 3. Add connection string to the web/app.config file: 17 | 18 | 19 | 21 | 22 | 23 | 4. To access your database use the following code: 24 | 25 | using (var db = new NorthwindDB()) 26 | { 27 | var q = 28 | from c in db.Customers 29 | select c; 30 | 31 | foreach (var c in q) 32 | Console.WriteLine(c.ContactName); 33 | } 34 | 35 | 5. See more at https://github.com/linq2db/t4models 36 | */ 37 | 38 | NamespaceName = "DataModel"; 39 | 40 | var connectionString = "Data Source=.;Database=Northwind;Integrated Security=SSPI"; 41 | var dataConnection = LinqToDB.DataProvider.SqlServer.SqlServerFactory.CreateDataConnection(connectionString); 42 | 43 | LoadMetadata(dataConnection); 44 | 45 | GenerateModel(); 46 | #> 47 | -------------------------------------------------------------------------------- /NuGet/Init.ps1: -------------------------------------------------------------------------------- 1 | param($installPath, $toolsPath, $package) 2 | 3 | # get the active solution 4 | $solution = Get-Interface $dte.Solution ([EnvDTE80.Solution2]) 5 | $solutionPath = [System.IO.Path]::GetDirectoryName($solution.FullName) 6 | $linq2dbToolsPath = [System.IO.Path]::Combine($solutionPath, ".tools", "linq2db.t4models") 7 | $linq2dbContentPath = [System.IO.Path]::Combine($installPath, "content") 8 | 9 | # tools copy 10 | xcopy $("$toolsPath\*.*") $("$linq2dbToolsPath\") /y /e 11 | 12 | # content copy for .Net Core & similar projects 13 | xcopy $("$linq2dbContentPath\*.*") $("$linq2dbToolsPath\") /y /e 14 | 15 | -------------------------------------------------------------------------------- /NuGet/Pack.bat: -------------------------------------------------------------------------------- 1 | @rem cd ..\..\linq2db\Source 2 | @rem call Compile.bat 3 | 4 | cd ..\ToolsGenerator 5 | 6 | %windir%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe ToolsGenerator.csproj /property:Configuration=Release 7 | 8 | cd ..\NuGet 9 | 10 | del *.nupkg 11 | 12 | ..\ToolsGenerator\bin\Release\ToolsGenerator.exe 13 | 14 | ..\Redist\NuGet Pack linq2db.t4models.nuspec 15 | 16 | ..\Redist\NuGet Pack linq2db.Access.nuspec 17 | ..\Redist\NuGet Pack linq2db.Firebird.nuspec 18 | ..\Redist\NuGet Pack linq2db.MySql.nuspec 19 | ..\Redist\NuGet Pack linq2db.SqlCe.nuspec 20 | ..\Redist\NuGet Pack linq2db.SQLite.nuspec 21 | ..\Redist\NuGet Pack linq2db.PostgreSQL.nuspec 22 | ..\Redist\NuGet Pack linq2db.SqlServer.nuspec 23 | ..\Redist\NuGet Pack linq2db.Sybase.nuspec 24 | ..\Redist\NuGet Pack linq2db.SapHana.nuspec 25 | ..\Redist\NuGet Pack linq2db.Oracle.x86.nuspec 26 | ..\Redist\NuGet Pack linq2db.Oracle.x64.nuspec 27 | ..\Redist\NuGet Pack linq2db.Oracle.Managed.nuspec 28 | ..\Redist\NuGet Pack linq2db.DB2.nuspec 29 | ..\Redist\NuGet Pack linq2db.Informix.nuspec 30 | 31 | del *.ttinclude 32 | -------------------------------------------------------------------------------- /NuGet/PackAV.bat: -------------------------------------------------------------------------------- 1 | @rem Building packages for appveyor 2 | @rem 3 | @rem first parameter - target package version 4 | @rem second parameter - target linq2db version 5 | 6 | set version=%1% 7 | 8 | echo packages version: %version% for linq2db version %2% 9 | 10 | del *.nupkg 11 | 12 | ..\ToolsGenerator\bin\Release\ToolsGenerator.exe %2% 13 | 14 | ..\Redist\NuGet Pack linq2db.t4models.nuspec -Version %version% 15 | 16 | ..\Redist\NuGet Pack linq2db.Access.nuspec -Version %version% 17 | ..\Redist\NuGet Pack linq2db.Firebird.nuspec -Version %version% 18 | ..\Redist\NuGet Pack linq2db.MySql.nuspec -Version %version% 19 | ..\Redist\NuGet Pack linq2db.SqlCe.nuspec -Version %version% 20 | ..\Redist\NuGet Pack linq2db.SQLite.nuspec -Version %version% 21 | ..\Redist\NuGet Pack linq2db.PostgreSQL.nuspec -Version %version% 22 | ..\Redist\NuGet Pack linq2db.SqlServer.nuspec -Version %version% 23 | ..\Redist\NuGet Pack linq2db.Sybase.nuspec -Version %version% 24 | ..\Redist\NuGet Pack linq2db.SapHana.nuspec -Version %version% 25 | ..\Redist\NuGet Pack linq2db.Oracle.x86.nuspec -Version %version% 26 | ..\Redist\NuGet Pack linq2db.Oracle.x64.nuspec -Version %version% 27 | ..\Redist\NuGet Pack linq2db.Oracle.Managed.nuspec -Version %version% 28 | ..\Redist\NuGet Pack linq2db.DB2.nuspec -Version %version% 29 | ..\Redist\NuGet Pack linq2db.Informix.nuspec -Version %version% 30 | 31 | del *.ttinclude 32 | -------------------------------------------------------------------------------- /NuGet/Push.bat: -------------------------------------------------------------------------------- 1 | ..\Redist\NuGet Push *.nupkg 2 | del *.nupkg 3 | -------------------------------------------------------------------------------- /NuGet/install.ps1: -------------------------------------------------------------------------------- 1 | param($installPath, $toolsPath, $package, $project) 2 | 3 | $copyFrom = $("$installPath\content\*.*") 4 | $copyTo = [System.IO.Path]::GetDirectoryName($project.FullName) + "\" 5 | 6 | Write-Host $copyFrom 7 | Write-Host $copyTo 8 | 9 | xcopy $copyFrom $copyTo /y /E 10 | 11 | -------------------------------------------------------------------------------- /NuGet/linq2db.Access.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | linq2db.Access 5 | 1.10.0 6 | LINQ to Access 7 | Igor Tkachev 8 | 9 | https://github.com/linq2db/linq2db/blob/master/MIT-LICENSE.txt 10 | https://github.com/linq2db/linq2db 11 | http://www.gravatar.com/avatar/fc2e509b6ed116b9aa29a7988fdb8990?s=320 12 | false 13 | 14 | LINQ to Access is a data access technology that provides a run-time infrastructure for managing relational data as objects. 15 | 16 | 17 | This package includes a T4 template to generate data models for Access database and a reference to the linq2db nuget. 18 | 19 | linq linq2db Access LinqToDB ORM database DB SQL 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /NuGet/linq2db.DB2.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | linq2db.DB2 5 | 1.10.0 6 | LINQ to IBM DB2 7 | Igor Tkachev 8 | 9 | https://github.com/linq2db/linq2db/blob/master/MIT-LICENSE.txt 10 | https://github.com/linq2db/linq2db 11 | http://www.gravatar.com/avatar/fc2e509b6ed116b9aa29a7988fdb8990?s=320 12 | false 13 | 14 | LINQ to DB2 is a data access technology that provides a run-time infrastructure for managing relational data as objects. 15 | 16 | 17 | This package includes a T4 template to generate data models for DB2 database and a reference to the linq2db nugets. 18 | IBM Data Server Provider for .NET will still need to be installed on the production or development machine in order to connect to DB2. 19 | 20 | linq linq2db DB2 LinqToDB ORM database DB SQL 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /NuGet/linq2db.Firebird.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | linq2db.Firebird 5 | 1.10.0 6 | LINQ to Firebird 7 | Igor Tkachev 8 | 9 | https://github.com/linq2db/linq2db/blob/master/MIT-LICENSE.txt 10 | https://github.com/linq2db/linq2db 11 | http://www.gravatar.com/avatar/fc2e509b6ed116b9aa29a7988fdb8990?s=320 12 | false 13 | 14 | LINQ to Firebird is a data access technology that provides a run-time infrastructure for managing relational data as objects. 15 | 16 | 17 | This package includes a T4 template to generate data models for Firebird database and references to the linq2db and FirebirdSql.Data.FirebirdClient nugets. 18 | 19 | linq linq2db Firebird LinqToDB ORM database DB SQL 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /NuGet/linq2db.Informix.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | linq2db.Informix 5 | 1.10.0 6 | LINQ to Informix 7 | Igor Tkachev 8 | 9 | https://github.com/linq2db/linq2db/blob/master/MIT-LICENSE.txt 10 | https://github.com/linq2db/linq2db 11 | http://www.gravatar.com/avatar/fc2e509b6ed116b9aa29a7988fdb8990?s=320 12 | false 13 | 14 | LINQ to Informix is a data access technology that provides a run-time infrastructure for managing relational data as objects. 15 | 16 | 17 | This package includes a T4 template to generate data models for Informix database and a reference to the linq2db nugets. 18 | IBM Data Server Provider for .NET will still need to be installed on the production or development machine in order to connect to Informix. 19 | 20 | linq linq2db Informix LinqToDB ORM database DB SQL 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /NuGet/linq2db.MySql.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | linq2db.MySql 5 | 1.10.0 6 | LINQ to MySql 7 | Igor Tkachev 8 | 9 | https://github.com/linq2db/linq2db/blob/master/MIT-LICENSE.txt 10 | https://github.com/linq2db/linq2db 11 | http://www.gravatar.com/avatar/fc2e509b6ed116b9aa29a7988fdb8990?s=320 12 | false 13 | 14 | LINQ to MySql is a data access technology that provides a run-time infrastructure for managing relational data as objects. 15 | 16 | 17 | This package includes a T4 template to generate data models for MySql database and references to the linq2db and MySql.Data nugets. 18 | 19 | linq linq2db MySql LinqToDB ORM database DB SQL 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /NuGet/linq2db.Oracle.Managed.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | linq2db.Oracle.Managed 5 | 1.10.0 6 | LINQ to Oracle (ODP.NET) Managed 7 | Igor Tkachev 8 | 9 | https://github.com/linq2db/linq2db/blob/master/MIT-LICENSE.txt 10 | https://github.com/linq2db/linq2db 11 | http://www.gravatar.com/avatar/fc2e509b6ed116b9aa29a7988fdb8990?s=320 12 | false 13 | 14 | LINQ to Oracle is a data access technology that provides a run-time infrastructure for managing relational data as objects. 15 | 16 | 17 | This package includes a T4 template to generate data models for Oracle database and references to the linq2db and odp.net.managed nugets 18 | Oracle data provider for .NET will still need to be installed on the production or development machine in order to connect to Oracle. 19 | 20 | linq linq2db Oracle LinqToDB ORM database DB SQL 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /NuGet/linq2db.Oracle.x64.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | linq2db.Oracle.x64 5 | 1.10.0 6 | LINQ to Oracle (ODP.NET) x64 7 | Igor Tkachev 8 | 9 | https://github.com/linq2db/linq2db/blob/master/MIT-LICENSE.txt 10 | https://github.com/linq2db/linq2db 11 | http://www.gravatar.com/avatar/fc2e509b6ed116b9aa29a7988fdb8990?s=320 12 | false 13 | 14 | LINQ to Oracle is a data access technology that provides a run-time infrastructure for managing relational data as objects. 15 | 16 | 17 | This package includes a T4 template to generate data models for Oracle database and references to the linq2db and odp.net.x64 nugets 18 | Oracle data provider for .NET will still need to be installed on the production or development machine in order to connect to Oracle. 19 | 20 | linq linq2db Oracle ODP LinqToDB ORM database DB SQL 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /NuGet/linq2db.Oracle.x86.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | linq2db.Oracle.x86 5 | 1.10.0 6 | LINQ to Oracle (ODP.NET) x86 7 | Igor Tkachev 8 | 9 | https://github.com/linq2db/linq2db/blob/master/MIT-LICENSE.txt 10 | https://github.com/linq2db/linq2db 11 | http://www.gravatar.com/avatar/fc2e509b6ed116b9aa29a7988fdb8990?s=320 12 | false 13 | 14 | LINQ to Oracle is a data access technology that provides a run-time infrastructure for managing relational data as objects. 15 | 16 | 17 | This package includes a T4 template to generate data models for Oracle database and references to the linq2db and odp.net.x86 nugets 18 | Oracle data provider for .NET will still need to be installed on the production or development machine in order to connect to Oracle. 19 | 20 | linq linq2db Oracle ODP LinqToDB ORM database DB SQL 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /NuGet/linq2db.PostgreSQL.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | linq2db.PostgreSQL 5 | 1.10.0 6 | LINQ to PostgreSQL 7 | Igor Tkachev 8 | 9 | https://github.com/linq2db/linq2db/blob/master/MIT-LICENSE.txt 10 | https://github.com/linq2db/linq2db 11 | http://www.gravatar.com/avatar/fc2e509b6ed116b9aa29a7988fdb8990?s=320 12 | false 13 | 14 | LINQ to PostgreSQL is a data access technology that provides a run-time infrastructure for managing relational data as objects. 15 | 16 | 17 | This package includes a T4 template to generate data models for PostgreSQL database and references to the linq2db and Npgsql nugets. 18 | 19 | linq linq2db Npgsql PostgreSQL LinqToDB ORM database DB SQL 20 | 21 | 22 | 23 | 24 | 25 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /NuGet/linq2db.SQLite.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | linq2db.SQLite 5 | 1.10.0 6 | LINQ to SQLite 7 | Igor Tkachev 8 | 9 | https://github.com/linq2db/linq2db/blob/master/MIT-LICENSE.txt 10 | https://github.com/linq2db/linq2db 11 | http://www.gravatar.com/avatar/fc2e509b6ed116b9aa29a7988fdb8990?s=320 12 | false 13 | 14 | LINQ to SQLite is a data access technology that provides a run-time infrastructure for managing relational data as objects. 15 | 16 | 17 | This package includes a T4 template to generate data models for SQLite database and references to the linq2db and System.Data.SQLite nugets. 18 | 19 | linq linq2db SQLite LinqToDB ORM database DB SQL 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /NuGet/linq2db.SapHana.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | linq2db.SapHana 5 | 1.10.0 6 | LINQ to SAP HANA 7 | Igor Tkachev 8 | 9 | https://github.com/linq2db/linq2db/blob/master/MIT-LICENSE.txt 10 | https://github.com/linq2db/linq2db 11 | http://www.gravatar.com/avatar/fc2e509b6ed116b9aa29a7988fdb8990?s=320 12 | false 13 | 14 | LINQ to SAP HANA is a data access technology that provides a run-time infrastructure for managing relational data as objects. 15 | 16 | 17 | This package includes a T4 template to generate data models for Sybase database and a reference to the linq2db nugets. 18 | SapHana data provider for .NET will still need to be installed on the production or development machine in order to connect to Sybase. 19 | 20 | linq linq2db SapHana LinqToDB ORM database DB SQL 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /NuGet/linq2db.SqlCe.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | linq2db.SqlCe 5 | 1.10.0 6 | LINQ to SqlCe 7 | Igor Tkachev 8 | 9 | https://github.com/linq2db/linq2db/blob/master/MIT-LICENSE.txt 10 | https://github.com/linq2db/linq2db 11 | http://www.gravatar.com/avatar/fc2e509b6ed116b9aa29a7988fdb8990?s=320 12 | false 13 | 14 | LINQ to SqlCe is a data access technology that provides a run-time infrastructure for managing relational data as objects. 15 | 16 | 17 | This package includes a T4 template to generate data models for SqlCe database and references to the linq2db and Microsoft.SqlServer.Compact nugets. 18 | 19 | linq linq2db SqlCe SqlServerCe SqlServer Compact LinqToDB ORM database DB SQL 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /NuGet/linq2db.SqlServer.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | linq2db.SqlServer 5 | 1.10.0 6 | LINQ to SqlServer 7 | Igor Tkachev 8 | 9 | https://github.com/linq2db/linq2db/blob/master/MIT-LICENSE.txt 10 | https://github.com/linq2db/linq2db 11 | http://www.gravatar.com/avatar/fc2e509b6ed116b9aa29a7988fdb8990?s=320 12 | false 13 | 14 | LINQ to SqlServer is a data access technology that provides a run-time infrastructure for managing relational data as objects. 15 | 16 | 17 | This package includes a T4 template to generate data models for SqlServer database and references to the linq2db. 18 | 19 | linq linq2db SqlServer LinqToDB ORM database DB SQL 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /NuGet/linq2db.Sybase.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | linq2db.Sybase 5 | 1.10.0 6 | LINQ to Sybase ASE 7 | Igor Tkachev 8 | 9 | https://github.com/linq2db/linq2db/blob/master/MIT-LICENSE.txt 10 | https://github.com/linq2db/linq2db 11 | http://www.gravatar.com/avatar/fc2e509b6ed116b9aa29a7988fdb8990?s=320 12 | false 13 | 14 | LINQ to Sybase ASE is a data access technology that provides a run-time infrastructure for managing relational data as objects. 15 | 16 | 17 | This package includes a T4 template to generate data models for Sybase database and a reference to the linq2db nugets. 18 | Sybase data provider for .NET will still need to be installed on the production or development machine in order to connect to Sybase. 19 | 20 | linq linq2db Sybase LinqToDB ORM database DB SQL 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /NuGet/linq2db.t4models.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | linq2db.t4models 5 | 1.10.0 6 | LINQ to DB T4 Models 7 | Igor Tkachev 8 | 9 | https://github.com/linq2db/linq2db/blob/master/MIT-LICENSE.txt 10 | https://github.com/linq2db/linq2db 11 | http://www.gravatar.com/avatar/fc2e509b6ed116b9aa29a7988fdb8990?s=320 12 | false 13 | T4 templates to generate data models for LINQ to DB SQL 14 | 15 | 16 | linq linq2db LinqToDB ORM database DB T4 datamodel SqlServer Access SqlCe SqlServerCe MySql Firebird SQLite Sybase 17 | Oracle ODP PostgreSQL DB2 Informix SapHana 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Project merged into main repository: https://github.com/linq2db/linq2db/tree/master/Source/LinqToDB.Templates 2 | -------------------------------------------------------------------------------- /Redist/IBM/IBM.Data.DB2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/Redist/IBM/IBM.Data.DB2.dll -------------------------------------------------------------------------------- /Redist/IBM/IBM.Data.Informix.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/Redist/IBM/IBM.Data.Informix.dll -------------------------------------------------------------------------------- /Redist/NuGet.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/Redist/NuGet.exe -------------------------------------------------------------------------------- /Redist/SapHana/Sap.Data.Hana.v4.5.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/Redist/SapHana/Sap.Data.Hana.v4.5.dll -------------------------------------------------------------------------------- /Redist/Sybase/Sybase.AdoNet2.AseClient.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/Redist/Sybase/Sybase.AdoNet2.AseClient.dll -------------------------------------------------------------------------------- /Redist/Sybase/sybdrvado20.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/Redist/Sybase/sybdrvado20.dll -------------------------------------------------------------------------------- /Templates/DataAnnotations.ttinclude: -------------------------------------------------------------------------------- 1 | <# 2 | { 3 | var beforeGenerateModel = BeforeGenerateModel; 4 | BeforeGenerateModel = () => 5 | { 6 | beforeGenerateModel(); 7 | DataAnnotationsImpl(); 8 | }; 9 | } 10 | #> 11 | <#+ 12 | void DataAnnotationsImpl() 13 | { 14 | foreach (Class cl in GetTreeNodes(Model).OfType()) 15 | { 16 | foreach (var p in GetTreeNodes(cl).OfType()) 17 | { 18 | if (p.DisplayName != null) 19 | { 20 | p.Attributes.Add(new Attribute("Display", "Name=\"" + p.DisplayName + "\"") { IsSeparated = true }); 21 | } 22 | 23 | if (p.IsRequired) 24 | { 25 | var attr = new Attribute("Required") { IsSeparated = true }; 26 | 27 | if (p.IsRequiredMessage != null) 28 | attr.Parameters.Add(string.Format("ErrorMessage=\"" + p.IsRequiredMessage + "\"", p.DisplayName ?? p.Name)); 29 | 30 | p.Attributes.Add(attr); 31 | } 32 | 33 | if (p.StringLength > 0) 34 | { 35 | var attr = new Attribute("StringLength", p.StringLength.ToString()) { IsSeparated = true }; 36 | 37 | if (p.StringLengthMessage != null) 38 | attr.Parameters.Add(string.Format("ErrorMessage=\"" + p.StringLengthMessage + "\"", p.DisplayName ?? p.Name)); 39 | 40 | p.Attributes.Add(attr); 41 | 42 | // p.Attributes.Add( 43 | // new Attribute("StringLength", 44 | // p.StringLength.ToString(), 45 | // string.Format( 46 | // "ErrorMessage=\"The {0} must be a string with a maximum lenfth of {1}.\"", 47 | // p.DisplayName ?? "field", 48 | // p.StringLength)) 49 | // { 50 | // IsSeparated = true 51 | // }); 52 | } 53 | } 54 | } 55 | } 56 | 57 | partial class Property 58 | { 59 | public string DisplayName; 60 | public bool IsRequired; 61 | public string IsRequiredMessage; 62 | public int StringLength; 63 | public string StringLengthMessage; 64 | } 65 | #> 66 | -------------------------------------------------------------------------------- /Templates/Humanizer.ttinclude: -------------------------------------------------------------------------------- 1 | <# 2 | /* 3 | To use this extension tou should: 4 | 1) Reference Humanizer NuGet package into your project 5 | 2) Iclude Humanizer.ttinclude 6 | 3) Reference assembly like aassembly name="$(SolutionDir)\packages\Humanizer.Core.2.2.0\lib\netstandard1.0\Humanizer.dll" 7 | */ 8 | 9 | #> 10 | <#@ import namespace="Humanizer" #> 11 | <# 12 | { 13 | ToPlural = s => s.Pluralize (inputIsKnownToBeSingular: false); 14 | ToSingular = s => s.Singularize(inputIsKnownToBePlural: false); 15 | ToValidName = (s, r) => s.Pascalize(); 16 | 17 | } 18 | #> -------------------------------------------------------------------------------- /Templates/LinqToDB.Access.ttinclude: -------------------------------------------------------------------------------- 1 | <#@ include file="LinqToDB.ttinclude" #> 2 | <#+ 3 | LinqToDB.Data.DataConnection GetAccessConnection(string connectionString) 4 | { 5 | return LinqToDB.DataProvider.Access.AccessTools.CreateDataConnection(connectionString); 6 | } 7 | 8 | LinqToDB.Data.DataConnection GetAccessConnection(string path, string database) 9 | { 10 | return GetAccessConnection(string.Format( 11 | "Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0};Locale Identifier=1033;Jet OLEDB:Engine Type=5;Persist Security Info=True", 12 | System.IO.Path.Combine(path, database))); 13 | } 14 | 15 | void LoadAccessMetadata(string connectionString) 16 | { 17 | var dataConnection = GetAccessConnection(connectionString); 18 | LoadMetadata(dataConnection); 19 | } 20 | 21 | void LoadAccessMetadata(string path, string database) 22 | { 23 | var dataConnection = GetAccessConnection(path, database); 24 | LoadMetadata(dataConnection); 25 | } 26 | #> 27 | -------------------------------------------------------------------------------- /Templates/LinqToDB.DB2.ttinclude: -------------------------------------------------------------------------------- 1 | <#@ include file="LinqToDB.ttinclude" #> 2 | <# 3 | LinqToDB.DataProvider.DB2.DB2Tools.ResolveDB2( 4 | typeof(IBM.Data.DB2.DB2Connection).Assembly); 5 | #><#+ 6 | LinqToDB.Data.DataConnection GetDB2Connection(string connectionString) 7 | { 8 | var conn = new IBM.Data.DB2.DB2Connection(connectionString); 9 | return LinqToDB.DataProvider.DB2.DB2Tools.CreateDataConnection(conn); 10 | } 11 | 12 | LinqToDB.Data.DataConnection GetDB2Connection(string server, string port, string database, string uid, string password) 13 | { 14 | return GetDB2Connection(string.Format("Server={0}:{1};Database={2};UID={3};PWD={4};", server, port, database, uid, password)); 15 | } 16 | 17 | void LoadDB2Metadata(string connectionString) 18 | { 19 | var dataConnection = GetDB2Connection(connectionString); 20 | LoadMetadata(dataConnection); 21 | } 22 | 23 | void LoadDB2Metadata(string server, string port, string database, string uid, string password) 24 | { 25 | var dataConnection = GetDB2Connection(server, port, database, uid, password); 26 | LoadMetadata(dataConnection); 27 | } 28 | #> 29 | -------------------------------------------------------------------------------- /Templates/LinqToDB.Firebird.ttinclude: -------------------------------------------------------------------------------- 1 | <#@ include file="LinqToDB.ttinclude" #> 2 | <# 3 | LinqToDB.DataProvider.Firebird.FirebirdTools.ResolveFirebird( 4 | typeof(FirebirdSql.Data.FirebirdClient.FbConnection).Assembly); 5 | 6 | { 7 | var afterLoadMetadata = AfterLoadMetadata; 8 | AfterLoadMetadata = () => 9 | { 10 | afterLoadMetadata(); 11 | CheckNameCasing(); 12 | }; 13 | } 14 | #> 15 | <#+ 16 | void CheckNameCasing() 17 | { 18 | foreach (var t in Tables.Values) 19 | { 20 | var name = t.TableName; 21 | 22 | if (!name.StartsWith("\"")) 23 | if (name.StartsWith("_") || name.Any(c => char.IsLower(c) || char.IsWhiteSpace(c))) 24 | t.TableName = "\\\"" + name + "\\\""; 25 | 26 | foreach (var col in t.Columns.Values) 27 | { 28 | name = col.ColumnName; 29 | 30 | if (!name.StartsWith("\"")) 31 | if (name.StartsWith("_") || name.Any(c => char.IsLower(c) || char.IsWhiteSpace(c))) 32 | col.ColumnName = "\\\"" + name + "\\\""; 33 | } 34 | } 35 | } 36 | 37 | LinqToDB.Data.DataConnection GetFirebirdConnection(string connectionString) 38 | { 39 | return LinqToDB.DataProvider.Firebird.FirebirdTools.CreateDataConnection(connectionString); 40 | } 41 | 42 | LinqToDB.Data.DataConnection GetFirebirdConnection(string server, string database) 43 | { 44 | return GetFirebirdConnection(server, database, "SYSDBA", "masterkey"); 45 | } 46 | 47 | LinqToDB.Data.DataConnection GetFirebirdConnection(string server, string database, string uid, string password) 48 | { 49 | return GetFirebirdConnection(string.Format( 50 | "DataSource={0};Database={1};User Id={2};Password={3}", 51 | server, database, uid, password)); 52 | } 53 | 54 | void LoadFirebirdMetadata(string connectionString) 55 | { 56 | var dataConnection = GetFirebirdConnection(connectionString); 57 | LoadMetadata(dataConnection); 58 | } 59 | 60 | void LoadFirebirdMetadata(string server, string database, string uid, string password) 61 | { 62 | var dataConnection = GetFirebirdConnection(server, database, uid, password); 63 | LoadMetadata(dataConnection); 64 | } 65 | 66 | void LoadFirebirdMetadata(string server, string database) 67 | { 68 | var dataConnection = GetFirebirdConnection(server, database); 69 | LoadMetadata(dataConnection); 70 | } 71 | #> 72 | -------------------------------------------------------------------------------- /Templates/LinqToDB.Informix.ttinclude: -------------------------------------------------------------------------------- 1 | <#@ include file="LinqToDB.ttinclude" #> 2 | <# 3 | LinqToDB.DataProvider.Informix.InformixTools.ResolveInformix( 4 | typeof(IBM.Data.Informix.IfxConnection).Assembly); 5 | #><#+ 6 | LinqToDB.Data.DataConnection GetInformixConnection(string connectionString) 7 | { 8 | var conn = new IBM.Data.Informix.IfxConnection(connectionString); 9 | return LinqToDB.DataProvider.Informix.InformixTools.CreateDataConnection(conn); 10 | } 11 | 12 | LinqToDB.Data.DataConnection GetInformixConnection(string host, string port, string server, string database, string uid, string password) 13 | { 14 | return GetInformixConnection(string.Format("Host={0};Service={1};Server={2};Protocol=onsoctcp;Database={3};UID={4};PWD={5}", host, port, server, database, uid, password)); 15 | } 16 | 17 | void LoadInformixMetadata(string connectionString) 18 | { 19 | var dataConnection = GetInformixConnection(connectionString); 20 | LoadMetadata(dataConnection); 21 | } 22 | 23 | void LoadInformixMetadata(string host, string port, string server, string database, string uid, string password) 24 | { 25 | var dataConnection = GetInformixConnection(host, port, server, database, uid, password); 26 | LoadMetadata(dataConnection); 27 | } 28 | #> 29 | -------------------------------------------------------------------------------- /Templates/LinqToDB.MySql.ttinclude: -------------------------------------------------------------------------------- 1 | <#@ include file="LinqToDB.ttinclude" #> 2 | <# 3 | LinqToDB.DataProvider.MySql.MySqlTools.ResolveMySql( 4 | typeof(MySql.Data.MySqlClient.MySqlConnection).Assembly); 5 | #> 6 | <#+ 7 | LinqToDB.Data.DataConnection GetMySqlConnection(string connectionString) 8 | { 9 | return LinqToDB.DataProvider.MySql.MySqlTools.CreateDataConnection(connectionString); 10 | } 11 | 12 | LinqToDB.Data.DataConnection GetMySqlConnection(string server, string database, string uid, string password, int port=3306) 13 | { 14 | return GetMySqlConnection(string.Format( 15 | "Server={0};Port={4};Database={1};Uid={2};Pwd={3};charset=utf8;", 16 | server, database, uid, password,port)); 17 | } 18 | 19 | void LoadMySqlMetadata(string connectionString) 20 | { 21 | var dataConnection = GetMySqlConnection(connectionString); 22 | LoadMetadata(dataConnection); 23 | } 24 | 25 | void LoadMySqlMetadata(string server, string database, string uid, string password,int port=3306) 26 | { 27 | var dataConnection = GetMySqlConnection(server, database, uid, password,port); 28 | LoadMetadata(dataConnection); 29 | } 30 | #> 31 | -------------------------------------------------------------------------------- /Templates/LinqToDB.Oracle.ttinclude: -------------------------------------------------------------------------------- 1 | <#@ include file="LinqToDB.ttinclude" #> 2 | <# 3 | LinqToDB.DataProvider.Oracle.OracleTools.AssemblyName = "Oracle.ManagedDataAccess"; 4 | LinqToDB.DataProvider.Oracle.OracleTools.ResolveOracle( 5 | typeof(Oracle.ManagedDataAccess.Client.OracleConnection).Assembly); 6 | #><#+ 7 | LinqToDB.Data.DataConnection GetOracleConnection(string connectionString) 8 | { 9 | //return LinqToDB.DataProvider.Oracle.OracleTools.CreateDataConnection(connectionString); 10 | return new LinqToDB.Data.DataConnection(new LinqToDB.DataProvider.Oracle.OracleDataProvider("OracleManaged"), connectionString); 11 | } 12 | 13 | LinqToDB.Data.DataConnection GetOracleConnection(string server, string port, string database, string uid, string password) 14 | { 15 | return GetOracleConnection(string.Format("Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST={0})(PORT={1}))(CONNECT_DATA=(SERVICE_NAME={2})));User Id={3};Password={4};", server, port, database, uid, password)); 16 | } 17 | 18 | void LoadOracleMetadata(string connectionString) 19 | { 20 | var dataConnection = GetOracleConnection(connectionString); 21 | LoadMetadata(dataConnection); 22 | } 23 | 24 | void LoadOracleMetadata(string server, string port, string database, string uid, string password) 25 | { 26 | var dataConnection = GetOracleConnection(server, port, database, uid, password); 27 | LoadMetadata(dataConnection); 28 | } 29 | #> 30 | -------------------------------------------------------------------------------- /Templates/LinqToDB.PostgreSQL.ttinclude: -------------------------------------------------------------------------------- 1 | <#@ include file="LinqToDB.ttinclude" #> 2 | <# 3 | LinqToDB.DataProvider.PostgreSQL.PostgreSQLTools.ResolvePostgreSQL( 4 | typeof(Npgsql.NpgsqlConnection).Assembly); 5 | 6 | { 7 | var beforeGenerateLinqToDBModel = BeforeGenerateLinqToDBModel; 8 | BeforeGenerateLinqToDBModel = () => 9 | { 10 | beforeGenerateLinqToDBModel(); 11 | SetCaseSensitiveNames(); 12 | }; 13 | } 14 | #> 15 | <#+ 16 | bool GenerateCaseSensitiveNames = false; // Defines whether to generate case sensitive or insensitive names 17 | 18 | void SetCaseSensitiveNames() 19 | { 20 | if (GenerateCaseSensitiveNames) 21 | { 22 | foreach (var t in Tables.Values) 23 | { 24 | if (t.TableName.Any(char.IsUpper)) 25 | t.TableName = "\\\"" + t.TableName + "\\\""; 26 | 27 | foreach (var c in t.Columns.Values) 28 | { 29 | if (c.ColumnName.Any(char.IsUpper)) 30 | c.ColumnName = "\\\"" + c.ColumnName + "\\\""; 31 | } 32 | } 33 | } 34 | } 35 | 36 | LinqToDB.Data.DataConnection GetPostgreSQLConnection(string connectionString) 37 | { 38 | return LinqToDB.DataProvider.PostgreSQL.PostgreSQLTools.CreateDataConnection(connectionString); 39 | } 40 | 41 | LinqToDB.Data.DataConnection GetPostgreSQLConnection(string server, string port, string database, string uid, string password) 42 | { 43 | return GetPostgreSQLConnection(string.Format(@"Server={0};Port={1};Database={2};User Id={3};Password={4};Pooling=true;MinPoolSize=10;MaxPoolSize=100;", server, port, database, uid, password)); 44 | } 45 | 46 | void LoadPostgreSQLMetadata(string connectionString) 47 | { 48 | var dataConnection = GetPostgreSQLConnection(connectionString); 49 | LoadMetadata(dataConnection); 50 | } 51 | 52 | void LoadPostgreSQLMetadata(string server, string port, string database, string uid, string password) 53 | { 54 | var dataConnection = GetPostgreSQLConnection(server, port, database, uid, password); 55 | LoadMetadata(dataConnection); 56 | } 57 | #> 58 | -------------------------------------------------------------------------------- /Templates/LinqToDB.SQLite.ttinclude: -------------------------------------------------------------------------------- 1 | <#@ include file="LinqToDB.ttinclude" #> 2 | <# 3 | LinqToDB.DataProvider.SQLite.SQLiteTools.ResolveSQLite(typeof(System.Data.SQLite.SQLiteConnection).Assembly); 4 | 5 | { 6 | var beforeGenerateLinqToDBModel = BeforeGenerateLinqToDBModel; 7 | BeforeGenerateLinqToDBModel = () => 8 | { 9 | ConvertSQLiteMetadata(); 10 | beforeGenerateLinqToDBModel(); 11 | }; 12 | } 13 | #> 14 | <#+ 15 | void ConvertSQLiteMetadata() 16 | { 17 | foreach (var t in Tables.Values) 18 | foreach (var fk in t.ForeignKeys.Values) 19 | if (fk.MemberName.Length == 0 || char.IsDigit(fk.MemberName[0])) 20 | fk.MemberName = "FK_" + fk.MemberName; 21 | } 22 | 23 | LinqToDB.Data.DataConnection GetSQLiteConnection(string connectionString) 24 | { 25 | return LinqToDB.DataProvider.SQLite.SQLiteTools.CreateDataConnection(connectionString); 26 | } 27 | 28 | LinqToDB.Data.DataConnection GetSQLiteConnection(string path, string database) 29 | { 30 | return GetSQLiteConnection(string.Format("Data Source={0}", System.IO.Path.Combine(path, database))); 31 | } 32 | 33 | void LoadSQLiteMetadata(string connectionString) 34 | { 35 | var dataConnection = GetSQLiteConnection(connectionString); 36 | LoadMetadata(dataConnection); 37 | } 38 | 39 | void LoadSQLiteMetadata(string path, string database) 40 | { 41 | var dataConnection = GetSQLiteConnection(path, database); 42 | LoadMetadata(dataConnection); 43 | } 44 | #> 45 | -------------------------------------------------------------------------------- /Templates/LinqToDB.SapHana.ttinclude: -------------------------------------------------------------------------------- 1 | <#@ include file="LinqToDB.ttinclude" #> 2 | <#@ import namespace="LinqToDB.DataProvider.SapHana" #> 3 | <# 4 | LinqToDB.DataProvider.SapHana.SapHanaTools.ResolveSapHana( 5 | typeof(Sap.Data.Hana.HanaConnection).Assembly); 6 | 7 | Model.Usings.Add("LinqToDB.DataProvider.SapHana"); 8 | Model.Usings.Add("System.Reflection"); 9 | 10 | GenerateProviderSpecificTable = t => 11 | { 12 | var method = new Method( 13 | String.Format("ITable<{0}>", t.TypeName), 14 | t.DataContextPropertyName, 15 | t.Parameters.Select(p => p.ParameterType + " " + p.ParameterName), 16 | new [] 17 | { 18 | String.Concat("return GetTable<",t.TypeName,">(this, (MethodInfo) MethodBase.GetCurrentMethod(),"), 19 | String.Join(",", t.Parameters.Select(p => p.ParameterName)), 20 | ");" 21 | }); 22 | 23 | method.Attributes.Add(new Attribute("CalculationViewInputParametersExpression", new string[] {})); 24 | return method; 25 | }; 26 | 27 | LoadProviderSpecificTable = t => 28 | { 29 | var v = t as ViewWithParametersTableSchema; 30 | return new Table 31 | { 32 | Schema = (t.IsDefaultSchema && !IncludeDefaultSchema) || string.IsNullOrEmpty(t.SchemaName)? null : t.SchemaName, 33 | BaseClass = BaseEntityClass, 34 | TableName = t.TableName, 35 | TypeName = 36 | PluralizeClassNames ? ToPlural (t.TypeName) : 37 | SingularizeClassNames ? ToSingular(t.TypeName) : t.TypeName, 38 | DataContextPropertyName = 39 | PluralizeDataContextPropertyNames ? ToPlural (t.TypeName) : 40 | SingularizeDataContextPropertyNames ? ToSingular(t.TypeName) : t.TypeName, 41 | IsView = t.IsView, 42 | IsProviderSpecific = true, 43 | Description = t.Description, 44 | Columns = t.Columns.ToDictionary( 45 | c => c.ColumnName, 46 | c => new Column 47 | { 48 | ColumnName = c.ColumnName, 49 | ColumnType = c.ColumnType, 50 | IsNullable = c.IsNullable, 51 | IsIdentity = c.IsIdentity, 52 | IsPrimaryKey = c.IsPrimaryKey, 53 | PrimaryKeyOrder = c.PrimaryKeyOrder, 54 | MemberName = CheckType(c.SystemType, c.MemberName), 55 | Type = c.MemberType, 56 | SkipOnInsert = c.SkipOnInsert, 57 | SkipOnUpdate = c.SkipOnUpdate, 58 | Description = c.Description, 59 | }), 60 | Parameters = v.Parameters.Select(pr => new Parameter 61 | { 62 | SchemaName = pr.SchemaName, 63 | SchemaType = pr.SchemaType, 64 | IsIn = pr.IsIn, 65 | IsOut = pr.IsOut, 66 | IsResult = pr.IsResult, 67 | Size = pr.Size, 68 | ParameterName = pr.ParameterName, 69 | ParameterType = pr.ParameterType, 70 | SystemType = pr.SystemType, 71 | DataType = pr.DataType.ToString(), 72 | }) 73 | .ToList() 74 | }; 75 | }; 76 | #> 77 | <#+ 78 | public partial class Table 79 | { 80 | public List Parameters; 81 | } 82 | 83 | LinqToDB.Data.DataConnection GetSapHanaConnection(string connectionString) 84 | { 85 | return LinqToDB.DataProvider.SapHana.SapHanaTools.CreateDataConnection(connectionString); 86 | } 87 | 88 | LinqToDB.Data.DataConnection GetSapHanaConnection(string server, string schema, string uid, string password) 89 | { 90 | return GetSapHanaConnection(string.Format("Server={0};Current Schema={1};UserID={2};Password={3};", server, schema, uid, password)); 91 | } 92 | 93 | void LoadSapHanaMetadata(DataConnection dataConnection) 94 | { 95 | LoadMetadata(dataConnection); 96 | } 97 | 98 | void LoadSapHanaMetadata(string connectionString) 99 | { 100 | var dataConnection = GetSapHanaConnection(connectionString); 101 | LoadMetadata(dataConnection); 102 | } 103 | 104 | void LoadSapHanaMetadata(string server, string schema, string uid, string password) 105 | { 106 | var dataConnection = GetSapHanaConnection(server, schema, uid, password); 107 | LoadMetadata(dataConnection); 108 | } 109 | #> 110 | -------------------------------------------------------------------------------- /Templates/LinqToDB.SqlCe.ttinclude: -------------------------------------------------------------------------------- 1 | <#@ include file="LinqToDB.ttinclude" #> 2 | <# 3 | LinqToDB.DataProvider.SqlCe.SqlCeTools.ResolveSqlCe( 4 | typeof(System.Data.SqlServerCe.SqlCeConnection).Assembly); 5 | #> 6 | <#+ 7 | LinqToDB.Data.DataConnection GetSqlCeConnection(string connectionString) 8 | { 9 | return LinqToDB.DataProvider.SqlCe.SqlCeTools.CreateDataConnection(connectionString); 10 | } 11 | 12 | LinqToDB.Data.DataConnection GetSqlCeConnection(string path, string database) 13 | { 14 | return GetSqlCeConnection(string.Format("Data Source={0}", System.IO.Path.Combine(path, database))); 15 | } 16 | 17 | void LoadSqlCeMetadata(string connectionString) 18 | { 19 | var dataConnection = GetSqlCeConnection(connectionString); 20 | LoadMetadata(dataConnection); 21 | } 22 | 23 | void LoadSqlCeMetadata(string path, string database) 24 | { 25 | var dataConnection = GetSqlCeConnection(path, database); 26 | LoadMetadata(dataConnection); 27 | } 28 | #> 29 | -------------------------------------------------------------------------------- /Templates/LinqToDB.SqlServer.SqlTypes.ttinclude: -------------------------------------------------------------------------------- 1 | <#@ include file="LinqToDB.SqlServer.ttinclude" #> 2 | <# 3 | LinqToDB.DataProvider.SqlServer.SqlServerTools.ResolveSqlTypes( 4 | typeof(Microsoft.SqlServer.Types.SqlGeography).Assembly); 5 | #> 6 | -------------------------------------------------------------------------------- /Templates/MultipleFiles.ttinclude: -------------------------------------------------------------------------------- 1 | <#@ assembly name="System.Core" #> 2 | <#@ assembly name="EnvDTE" #> 3 | <#@ import namespace="System.Collections.Generic" #> 4 | <#@ import namespace="System.IO" #> 5 | <#@ import namespace="System.Linq" #> 6 | <#@ import namespace="EnvDTE" #> 7 | <#+ 8 | DTE _dte; 9 | DTE DTE => _dte ?? (_dte = (DTE)((IServiceProvider)Host).GetService(typeof(DTE))); 10 | 11 | ProjectItem _templateProjectItem; 12 | ProjectItem TemplateProjectItem => _templateProjectItem ?? (_templateProjectItem = DTE.Solution.FindProjectItem(Host.TemplateFile)); 13 | 14 | readonly Dictionary _fileNames = new Dictionary(); 15 | 16 | Func CompareContent = (s1,s2) => s1 == s2; 17 | 18 | void SaveOutput(string fileName, int fileType = 1) 19 | { 20 | var dir = Path.GetDirectoryName(Host.TemplateFile); 21 | var output = Path.Combine(dir, fileName); 22 | var newContent = GenerationEnvironment.ToString(); 23 | var oldContent = File.Exists(output) ? File.ReadAllText(output) : ""; 24 | 25 | if (!CompareContent(newContent, oldContent)) 26 | { 27 | if (DTE.SourceControl != null && DTE.SourceControl.IsItemUnderSCC(output) && !DTE.SourceControl.IsItemCheckedOut(output)) 28 | DTE.SourceControl.CheckOutItem(output); 29 | 30 | File.WriteAllText(output, newContent); 31 | } 32 | 33 | GenerationEnvironment.Length = 0; 34 | 35 | _fileNames.Add(output, fileType); 36 | } 37 | 38 | void SyncProject() 39 | { 40 | var keepFileNames = _fileNames.ToDictionary(f => f.Key); 41 | var projectFiles = new Dictionary(); 42 | var templateFileName = TemplateProjectItem.FileNames[0]; 43 | var originalFilePrefix = Path.GetFileNameWithoutExtension(templateFileName) + "."; 44 | 45 | foreach (ProjectItem projectItem in TemplateProjectItem.ProjectItems) 46 | { 47 | projectFiles.Add(projectItem.FileNames[0], projectItem); 48 | } 49 | 50 | foreach (var pair in projectFiles) 51 | { 52 | if (!keepFileNames.ContainsKey(pair.Key)) 53 | if (!(Path.GetFileNameWithoutExtension(pair.Key) + ".").StartsWith(originalFilePrefix)) 54 | //if (pair.Key != templateFileName) 55 | pair.Value.Delete(); 56 | } 57 | 58 | // Add missing files to the project. 59 | // 60 | foreach (var fileName in keepFileNames) 61 | { 62 | if (!projectFiles.ContainsKey(fileName.Value.Key)) 63 | if (File.Exists(fileName.Value.Key)) 64 | { 65 | var newItem = TemplateProjectItem.ProjectItems.AddFromFile(fileName.Value.Key); 66 | newItem.Properties.Item("BuildAction").Value = fileName.Value.Value; 67 | } 68 | } 69 | } 70 | #> 71 | -------------------------------------------------------------------------------- /Templates/ObsoleteAttributes.ttinclude: -------------------------------------------------------------------------------- 1 | <# 2 | { 3 | var beforeGenerateLinqToDBModel = BeforeGenerateLinqToDBModel; 4 | var afterGenerateLinqToDBModel = AfterGenerateLinqToDBModel; 5 | 6 | var obsoleteTables = new List>(); 7 | 8 | BeforeGenerateLinqToDBModel = () => 9 | { 10 | beforeGenerateLinqToDBModel(); 11 | 12 | foreach (var table in Tables.Values) 13 | { 14 | var idx = table.Description.IndexOf("[Obsolete"); 15 | 16 | if (idx >= 0) 17 | { 18 | var idx2 = table.Description.IndexOf(']', idx); 19 | 20 | if (idx2 > idx) 21 | { 22 | var text = table.Description.Substring(idx + 1, idx2 - idx - 1); 23 | var attr = new Attribute(text); 24 | var info = Tuple.Create(table.Schema, table.Name, text); 25 | 26 | if (obsoleteTables.All(a => a != info)) 27 | obsoleteTables.Add(info); 28 | table.Attributes.Add(attr); 29 | table.Description = table.Description.Substring(0, idx) + table.Description.Substring(idx2 + 1); 30 | } 31 | } 32 | 33 | foreach (var c in table.Columns.Values) 34 | { 35 | idx = c.Description.IndexOf("[Obsolete"); 36 | 37 | if (idx >= 0) 38 | { 39 | var idx2 = c.Description.IndexOf(']', idx); 40 | 41 | if (idx2 > idx) 42 | { 43 | var attr = new Attribute(c.Description.Substring(idx + 1, idx2 - idx - 1)); 44 | 45 | c.Attributes.Add(attr); 46 | c.Description = c.Description.Substring(0, idx) + c.Description.Substring(idx2 + 1); 47 | } 48 | } 49 | } 50 | } 51 | }; 52 | 53 | AfterGenerateLinqToDBModel = () => 54 | { 55 | foreach (var tableInfo in obsoleteTables) 56 | { 57 | var schema = tableInfo.Item1; 58 | var name = tableInfo.Item2; 59 | var text = tableInfo.Item3; 60 | var obsoleteAttr = new Attribute(text); 61 | 62 | foreach (var cm in GetTreeNodes(Model) 63 | .OfType() 64 | .Where(t => t.Type != null) 65 | .Where(t => t.Type == name || t.Type.Contains("<" + name + ">"))) 66 | { 67 | // check schema 68 | 69 | if (cm.Parent != null && cm.Parent.Parent != null) 70 | { 71 | var parent = cm.Parent.Parent; 72 | 73 | if (parent is Table) 74 | { 75 | var table = (Table)parent; 76 | 77 | if (schema == table.Schema) 78 | if (cm.Attributes.All(a => a.Name != text)) 79 | cm.Attributes.Add(obsoleteAttr); 80 | } 81 | else if (parent is Class) 82 | { 83 | var cls = (Class)parent; 84 | 85 | bool parentClassIncludesSchemaName = cls.Name.Equals(schema + "Schema", StringComparison.InvariantCultureIgnoreCase); 86 | bool classIsForDefaultSchema = cls.Name == DataContextName; 87 | bool isExtensionMethod = cls.Parent is Namespace || cls.Name == "TableExtensions"; 88 | 89 | if (classIsForDefaultSchema || parentClassIncludesSchemaName || isExtensionMethod) 90 | if (cm.Attributes.All(a => a.Name != text)) 91 | cm.Attributes.Add(obsoleteAttr); 92 | } 93 | } 94 | } 95 | } 96 | 97 | afterGenerateLinqToDBModel(); 98 | }; 99 | } 100 | #> 101 | -------------------------------------------------------------------------------- /Tests/LinqToDB/Access.tt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="..\..\Templates\LinqToDB.Access.ttinclude" #> 4 | <#@ include file="..\..\Templates\PluralizationService.ttinclude" #> 5 | <#@ assembly name="$(SolutionDir)\packages\linq2db.1.7.5\lib\net40\linq2db.dll" #> 6 | <# 7 | NamespaceName = "AccessDataContext"; 8 | 9 | GenerateDataTypes = true; 10 | GenerateDbTypes = true; 11 | 12 | var solutionsPath = Host.ResolveAssemblyReference("$(SolutionDir)"); 13 | LoadAccessMetadata(solutionsPath + @"\Data\", "TestData.mdb"); 14 | 15 | GenerateModel(); 16 | #> 17 | -------------------------------------------------------------------------------- /Tests/LinqToDB/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 |
6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 17 | 18 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /Tests/LinqToDB/DB2.tt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="..\..\Templates\LinqToDB.DB2.ttinclude" #> 4 | <#@ include file="..\..\Templates\PluralizationService.ttinclude" #> 5 | <#@ assembly name="$(SolutionDir)\Redist\IBM\IBM.Data.DB2.dll" #> 6 | <#@ assembly name="$(SolutionDir)\packages\linq2db.1.7.5\lib\net40\linq2db.dll" #> 7 | <# 8 | NamespaceName = "DB2DataContext"; 9 | 10 | GenerateDataTypes = true; 11 | GenerateDbTypes = true; 12 | 13 | //GetSchemaOptions.ExcludedSchemas = new[] { "TestUser", "SYSSTAT" }; 14 | 15 | LoadDB2Metadata("DBHost", "50000", "TESTDATA", "Administrator", "TestPassword"); 16 | 17 | GetProcedure("ADMINISTRATOR.PERSON_SELECTBYKEY").ResultTable = GetTable("ADMINISTRATOR.Person"); 18 | 19 | //GetColumn("ADMINISTRATOR.Person", "PersonID").MemberName = "122"; 20 | //GetFK ("ADMINISTRATOR.Person", "ID1").MemberName = "122"; 21 | 22 | GenerateModel(); 23 | #> 24 | -------------------------------------------------------------------------------- /Tests/LinqToDB/Firebird.tt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="..\..\Templates\LinqToDB.Firebird.ttinclude" #> 4 | <#@ include file="..\..\Templates\PluralizationService.ttinclude" #> 5 | <#@ assembly name="$(SolutionDir)packages\FirebirdSql.Data.FirebirdClient.5.6.0\lib\net40-client\FirebirdSql.Data.FirebirdClient.dll" #> 6 | <#@ assembly name="$(SolutionDir)\packages\linq2db.1.7.5\lib\net40\linq2db.dll" #> 7 | <# 8 | NamespaceName = "FirebirdDataContext"; 9 | 10 | GenerateDataTypes = true; 11 | GenerateDbTypes = true; 12 | 13 | LoadFirebirdMetadata("DBHost", @"C:\Data\TestData.fdb"); 14 | GenerateModel(); 15 | #> 16 | -------------------------------------------------------------------------------- /Tests/LinqToDB/Informix.tt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="..\..\Templates\LinqToDB.Informix.ttinclude" #> 4 | <#@ include file="..\..\Templates\PluralizationService.ttinclude" #> 5 | <#@ assembly name="$(SolutionDir)\Redist\IBM\IBM.Data.Informix.dll" #> 6 | <#@ assembly name="$(SolutionDir)\packages\linq2db.1.7.5\lib\net40\linq2db.dll" #> 7 | <# 8 | NamespaceName = "InformixDataContext"; 9 | 10 | LoadInformixMetadata("DBHost", "9088", "ol_informix1170", "TestData", "informix", "TestPassword"); 11 | GenerateModel(); 12 | #> 13 | -------------------------------------------------------------------------------- /Tests/LinqToDB/MySql.tt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="..\..\Templates\LinqToDB.MySql.ttinclude" #> 4 | <#@ include file="..\..\Templates\PluralizationService.ttinclude" #> 5 | <#@ assembly name="$(SolutionDir)packages\MySql.Data.6.9.9\lib\net40\MySql.Data.dll" #> 6 | <#@ assembly name="$(SolutionDir)\packages\linq2db.1.7.5\lib\net40\linq2db.dll" #> 7 | <# 8 | NamespaceName = "MySqlDataContext"; 9 | 10 | LoadMySqlMetadata("DBHost", "TestData", "root", "TestPassword"); 11 | GenerateModel(); 12 | #> 13 | -------------------------------------------------------------------------------- /Tests/LinqToDB/Oracle.tt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="..\..\Templates\LinqToDB.Oracle.ttinclude" #> 4 | <#@ include file="..\..\Templates\PluralizationService.ttinclude" #> 5 | <#@ assembly name="$(SolutionDir)packages\Oracle.ManagedDataAccess.12.1.24160719\lib\net40\Oracle.ManagedDataAccess.dll" #> 6 | <#@ assembly name="$(SolutionDir)\packages\linq2db.1.7.5\lib\net40\linq2db.dll" #> 7 | <# 8 | NamespaceName = "OracleDataContext"; 9 | 10 | GenerateDataTypes = true; 11 | GenerateDbTypes = true; 12 | // GenerateDataTypeProperty = false; 13 | 14 | // GetSchemaOptions.IncludedSchemas = new[] { "TestUser", "SYS" }; 15 | 16 | LoadOracleMetadata("DBHost", "1521", "TestData", "TestUser", "TestPassword"); 17 | 18 | // foreach (var t in Tables.Values) 19 | // if (t.IsView) 20 | // { 21 | // t.TypeName += "_VIEW"; 22 | // t.DataContextPropertyName += "_VIEW"; 23 | // } 24 | 25 | GenerateModel(); 26 | #> 27 | -------------------------------------------------------------------------------- /Tests/LinqToDB/PostgreSQL.tt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="..\..\Templates\LinqToDB.PostgreSQL.ttinclude" #> 4 | <#@ include file="..\..\Templates\PluralizationService.ttinclude" #> 5 | <#@ assembly name="$(SolutionDir)packages\Npgsql.3.2.5\lib\net45\Npgsql.dll" #> 6 | <#@ assembly name="$(SolutionDir)packages\System.Threading.Tasks.Extensions.4.3.0\lib\portable-net45+win8+wp8+wpa81\System.Threading.Tasks.Extensions.dll" #> 7 | <#@ assembly name="I:\linq2db\Source\bin\Debug.4.5\linq2db.dll" #> 8 | <# 9 | NamespaceName = "PostreSQLDataContext"; 10 | 11 | LoadPostgreSQLMetadata("DBHost", "5432", "TestData", "postgres", "TestPassword"); 12 | 13 | GetTable("testsamename").TypeName = "_testsamename"; 14 | GetTable("testsamename").DataContextPropertyName = "_testsamename"; 15 | 16 | GenerateModel(); 17 | #> 18 | -------------------------------------------------------------------------------- /Tests/LinqToDB/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | using DataModel; 4 | 5 | namespace T4Model.LinqToDB 6 | { 7 | class Program 8 | { 9 | static void Main(string[] args) 10 | { 11 | using (var dc = new TestDataDB("TestData")) 12 | { 13 | var int1 = (int?)1; 14 | var str2 = "2"; 15 | 16 | dc.ScalarOutputParameter(ref int1, ref str2); 17 | } 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Tests/LinqToDB/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("T4Model.LinqToDB")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("T4Model.LinqToDB")] 13 | [assembly: AssemblyCopyright("Copyright © 2013")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("a49985eb-c843-46f9-8c34-d0c07787ba31")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Tests/LinqToDB/SQLite.tt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="..\..\Templates\LinqToDB.SQLite.ttinclude" #> 4 | <#@ include file="..\..\Templates\PluralizationService.ttinclude" #> 5 | <#@ assembly name="$(SolutionDir)Tests\LinqToDB\bin\Debug\System.Data.SQLite.dll" #> 6 | <#@ assembly name="$(SolutionDir)\packages\linq2db.1.10.0\lib\net40\linq2db.dll" #> 7 | <# 8 | NamespaceName = "SQLiteDataContext"; 9 | 10 | GenerateAssociationExtensions = true; 11 | 12 | var solutionsPath = Host.ResolveAssemblyReference("$(SolutionDir)"); 13 | LoadSQLiteMetadata(solutionsPath + @"\Data\", "TestData.sqlite"); 14 | 15 | foreach (var t in Tables.Values) 16 | foreach (var fk in t.ForeignKeys.Values) 17 | if (fk.MemberName.Length == 0 || char.IsDigit(fk.MemberName[0])) 18 | fk.MemberName = "FK_" + fk.MemberName; 19 | 20 | GenerateModel(); 21 | #> 22 | -------------------------------------------------------------------------------- /Tests/LinqToDB/SapHana.generated.cs: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Tests/LinqToDB/SapHana.tt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="..\..\Templates\LinqToDB.SapHana.ttinclude" #> 4 | <#@ include file="..\..\Templates\PluralizationService.ttinclude" #> 5 | <#@ assembly name="$(SolutionDir)\Redist\SAPHana\Sap.Data.Hana.v4.5.dll" #> 6 | <#@ assembly name="$(SolutionDir)\packages\linq2db.1.7.5\lib\net40\linq2db.dll" #> 7 | <# 8 | NamespaceName = "SapHanaDataContext"; 9 | 10 | GetSchemaOptions.IncludedSchemas = new[] { "TEST" }; 11 | 12 | 13 | LoadSapHanaMetadata("Server=DBHost;Current Schema=TEST;UserID=TEST;Password=TEST12345;"); 14 | 15 | GenerateModel(); 16 | #> 17 | -------------------------------------------------------------------------------- /Tests/LinqToDB/SqlCe.tt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="..\..\Templates\LinqToDB.SqlCe.ttinclude" #> 4 | <#@ assembly name="$(SolutionDir)packages\Microsoft.SqlServer.Compact.4.0.8876.1\lib\net40\System.Data.SqlServerCe.dll" #> 5 | <#@ assembly name="$(SolutionDir)\packages\linq2db.1.10.0\lib\net40\linq2db.dll" #> 6 | <#@ include file="..\..\Templates\Humanizer.ttinclude" #> 7 | <#@ assembly name="$(SolutionDir)\packages\Humanizer.Core.2.2.0\lib\netstandard1.0\Humanizer.dll" #> 8 | <# 9 | NamespaceName = "SqlCeDataContext"; 10 | 11 | GenerateAssociationExtensions = true; 12 | 13 | var solutionsPath = Host.ResolveAssemblyReference("$(SolutionDir)"); 14 | LoadSqlCeMetadata(solutionsPath + @"\Data\", "TestData.sdf"); 15 | GenerateModel(); 16 | #> 17 | -------------------------------------------------------------------------------- /Tests/LinqToDB/SqlServer.tt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="..\..\Templates\LinqToDB.SqlServer.ttinclude" #> 4 | <#@ include file="..\..\Templates\PluralizationService.ttinclude" #> 5 | <#@ include file="..\..\Templates\ObsoleteAttributes.ttinclude" #> 6 | <#@ include file="SqlServer.ttinclude" #> 7 | <#@ assembly name="$(SolutionDir)\packages\Microsoft.SqlServer.Types.14.0.314.76\lib\net40\Microsoft.SqlServer.Types.dll" #> 8 | <#@ assembly name="$(SolutionDir)\packages\linq2db.1.10.0\lib\net40\linq2db.dll" #> 9 | <# 10 | // NamespaceName = "DataContext"; 11 | // DataContextName = "NorthwindDB"; 12 | DatabaseName = null;//"Northwind"; 13 | GenerateDatabaseName = true; 14 | OneToManyAssociationType = "List<{0}>"; 15 | 16 | // BaseEntityClass = "object"; 17 | 18 | // GenerateBackReferences = false; 19 | // GenerateAssociations = true; 20 | 21 | // GetSchemaOptions.GetProcedures = false; 22 | 23 | IncludeDefaultSchema = false; 24 | GenerateObsoleteAttributeForAliases = true; 25 | GenerateDataTypes = true; 26 | GenerateDbTypes = true; 27 | 28 | GenerateSchemaAsType = true; 29 | 30 | SchemaNameMapping.Add("TestSchema", "MySchema"); 31 | 32 | LoadSqlServerMetadata(@"Server=DBHost\SQLSERVER2012;Database=Northwind;User Id=sa;Password=TestPassword"); 33 | 34 | Tables["Order Details"].Columns["OrderID"]. MemberName = "ID"; 35 | 36 | GetTable("Categories"). AliasPropertyName = "CATEG"; 37 | GetTable("Categories"). AliasTypeName = "CATEG"; 38 | GetTable("Order Details").AliasPropertyName = "Order_Details"; 39 | GetTable("Order Details").AliasTypeName = "ORD_DET"; 40 | 41 | GenerateTypesFromMetadata(); 42 | 43 | DataContextName = null; 44 | DataContextObject = null; 45 | 46 | DatabaseName = null;//"TestData"; 47 | 48 | //GenerateConstructors = false; 49 | 50 | LoadSqlServerMetadata(@"Server=DBHost\SQLSERVER2008;Database=TestData;User Id=sa;Password=TestPassword;"); 51 | GenerateModel(); 52 | #> 53 | -------------------------------------------------------------------------------- /Tests/LinqToDB/SqlServer.ttinclude: -------------------------------------------------------------------------------- 1 | <# 2 | GetConstructors = (conf, name) => new[] 3 | { 4 | new Method(null, name, new [] { "int i" }), 5 | new Method(null, name, new[] { "string configuration" }) { AfterSignature = { ": base(configuration)" } }, 6 | }; 7 | #> 8 | -------------------------------------------------------------------------------- /Tests/LinqToDB/SqlServerTypes/Loader.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using System.Runtime.InteropServices; 4 | 5 | namespace SqlServerTypes 6 | { 7 | /// 8 | /// Utility methods related to CLR Types for SQL Server 9 | /// 10 | public class Utilities 11 | { 12 | [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)] 13 | private static extern IntPtr LoadLibrary(string libname); 14 | 15 | /// 16 | /// Loads the required native assemblies for the current architecture (x86 or x64) 17 | /// 18 | /// 19 | /// Root path of the current application. Use Server.MapPath(".") for ASP.NET applications 20 | /// and AppDomain.CurrentDomain.BaseDirectory for desktop applications. 21 | /// 22 | public static void LoadNativeAssemblies(string rootApplicationPath) 23 | { 24 | var nativeBinaryPath = IntPtr.Size > 4 25 | ? Path.Combine(rootApplicationPath, @"SqlServerTypes\x64\") 26 | : Path.Combine(rootApplicationPath, @"SqlServerTypes\x86\"); 27 | 28 | LoadNativeAssembly(nativeBinaryPath, "msvcr120.dll"); 29 | LoadNativeAssembly(nativeBinaryPath, "SqlServerSpatial140.dll"); 30 | } 31 | 32 | private static void LoadNativeAssembly(string nativeBinaryPath, string assemblyName) 33 | { 34 | var path = Path.Combine(nativeBinaryPath, assemblyName); 35 | var ptr = LoadLibrary(path); 36 | if (ptr == IntPtr.Zero) 37 | { 38 | throw new Exception(string.Format( 39 | "Error loading {0} (ErrorCode: {1})", 40 | assemblyName, 41 | Marshal.GetLastWin32Error())); 42 | } 43 | } 44 | } 45 | } -------------------------------------------------------------------------------- /Tests/LinqToDB/SqlServerTypes/readme.htm: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Microsoft.SqlServer.Types 5 | 17 | 18 | 19 |
20 |

Action required to load native assemblies

21 |

22 | To deploy an application that uses spatial data types to a machine that does not have 'System CLR Types for SQL Server' installed you also need to deploy the native assembly SqlServerSpatial140.dll. Both x86 (32 bit) and x64 (64 bit) versions of this assembly have been added to your project under the SqlServerTypes\x86 and SqlServerTypes\x64 subdirectories. The native assembly msvcr120.dll is also included in case the C++ runtime is not installed. 23 |

24 |

25 | You need to add code to load the correct one of these assemblies at runtime (depending on the current architecture). 26 |

27 |

ASP.NET Web Sites

28 |

29 | For ASP.NET Web Sites, add the following block of code to the code behind file of the Web Form where you have added Report Viewer Control: 30 |

31 |     Default.aspx.cs:
32 |         
33 |     public partial class _Default : System.Web.UI.Page
34 |     {
35 |         static bool _isSqlTypesLoaded = false;
36 | 
37 |         public _Default()
38 |         {
39 |             if (!_isSqlTypesLoaded)
40 |             {
41 |                 SqlServerTypes.Utilities.LoadNativeAssemblies(Server.MapPath("~"));
42 |                 _isSqlTypesLoaded = true;
43 |             }
44 |             
45 |         }
46 |     }
47 | 
48 |

49 |

ASP.NET Web Applications

50 |

51 | For ASP.NET Web Applications, add the following line of code to the Application_Start method in Global.asax.cs: 52 |

    SqlServerTypes.Utilities.LoadNativeAssemblies(Server.MapPath("~/bin"));
53 |

54 |

Desktop Applications

55 |

56 | For desktop applications, add the following line of code to run before any spatial operations are performed: 57 |

    SqlServerTypes.Utilities.LoadNativeAssemblies(AppDomain.CurrentDomain.BaseDirectory);
58 |

59 |
60 | 61 | -------------------------------------------------------------------------------- /Tests/LinqToDB/SqlServerTypes/x64/SqlServerSpatial140.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/Tests/LinqToDB/SqlServerTypes/x64/SqlServerSpatial140.dll -------------------------------------------------------------------------------- /Tests/LinqToDB/SqlServerTypes/x64/msvcr120.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/Tests/LinqToDB/SqlServerTypes/x64/msvcr120.dll -------------------------------------------------------------------------------- /Tests/LinqToDB/SqlServerTypes/x86/SqlServerSpatial140.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/Tests/LinqToDB/SqlServerTypes/x86/SqlServerSpatial140.dll -------------------------------------------------------------------------------- /Tests/LinqToDB/SqlServerTypes/x86/msvcr120.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/Tests/LinqToDB/SqlServerTypes/x86/msvcr120.dll -------------------------------------------------------------------------------- /Tests/LinqToDB/Sybase.tt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="..\..\Templates\LinqToDB.Sybase.ttinclude" #> 4 | <#@ include file="..\..\Templates\PluralizationService.ttinclude" #> 5 | <#@ assembly name="$(SolutionDir)\Redist\Sybase\Sybase.AdoNet2.AseClient.dll" #> 6 | <#@ assembly name="$(SolutionDir)\packages\linq2db.1.7.5\lib\net40\linq2db.dll" #> 7 | <# 8 | NamespaceName = "SybaseDataContext"; 9 | 10 | GenerateSybaseSystemTables = true; 11 | 12 | LoadSybaseMetadata("DBHost", "5000", "TestData", "sa", "TestPassword"); 13 | GenerateModel(); 14 | #> 15 | -------------------------------------------------------------------------------- /Tests/LinqToDB/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Tests/Silverlight.Web/ClientBin/T4Model.Silverlight.xap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/Tests/Silverlight.Web/ClientBin/T4Model.Silverlight.xap -------------------------------------------------------------------------------- /Tests/Silverlight.Web/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("T4Model.Silverlight.Web")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("T4Model.Silverlight.Web")] 13 | [assembly: AssemblyCopyright("Copyright © 2012")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("579b2416-6492-4440-b373-f5faaf5f8ef2")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Revision and Build Numbers 33 | // by using the '*' as shown below: 34 | [assembly: AssemblyVersion("1.0.0.0")] 35 | [assembly: AssemblyFileVersion("1.0.0.0")] 36 | -------------------------------------------------------------------------------- /Tests/Silverlight.Web/T4Model.SilverlightTestPage.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" %> 2 | 3 | 4 | 5 | 6 | T4Model.Silverlight 7 | 21 | 22 | 58 | 59 | 60 |
61 |
62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | Get Microsoft Silverlight 70 | 71 |
72 |
73 | 74 | 75 | -------------------------------------------------------------------------------- /Tests/Silverlight.Web/T4Model.SilverlightTestPage.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | T4Model.Silverlight 6 | 20 | 21 | 57 | 58 | 59 |
60 |
61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | Get Microsoft Silverlight 69 | 70 |
71 |
72 | 73 | 74 | -------------------------------------------------------------------------------- /Tests/Silverlight.Web/Web.Debug.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 17 | 18 | 29 | 30 | -------------------------------------------------------------------------------- /Tests/Silverlight.Web/Web.Release.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 17 | 18 | 19 | 30 | 31 | -------------------------------------------------------------------------------- /Tests/Silverlight.Web/Web.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Tests/Silverlight/App.xaml: -------------------------------------------------------------------------------- 1 |  5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Tests/Silverlight/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Net; 5 | using System.Windows; 6 | using System.Windows.Controls; 7 | using System.Windows.Documents; 8 | using System.Windows.Input; 9 | using System.Windows.Media; 10 | using System.Windows.Media.Animation; 11 | using System.Windows.Shapes; 12 | 13 | namespace T4Model.Silverlight 14 | { 15 | public partial class App : Application 16 | { 17 | 18 | public App() 19 | { 20 | this.Startup += this.Application_Startup; 21 | this.Exit += this.Application_Exit; 22 | this.UnhandledException += this.Application_UnhandledException; 23 | 24 | InitializeComponent(); 25 | } 26 | 27 | private void Application_Startup(object sender, StartupEventArgs e) 28 | { 29 | this.RootVisual = new MainPage(); 30 | } 31 | 32 | private void Application_Exit(object sender, EventArgs e) 33 | { 34 | 35 | } 36 | 37 | private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e) 38 | { 39 | // If the app is running outside of the debugger then report the exception using 40 | // the browser's exception mechanism. On IE this will display it a yellow alert 41 | // icon in the status bar and Firefox will display a script error. 42 | if (!System.Diagnostics.Debugger.IsAttached) 43 | { 44 | 45 | // NOTE: This will allow the application to continue running after an exception has been thrown 46 | // but not handled. 47 | // For production applications this error handling should be replaced with something that will 48 | // report the error to the website and stop the application. 49 | e.Handled = true; 50 | Deployment.Current.Dispatcher.BeginInvoke(delegate { ReportErrorToDOM(e); }); 51 | } 52 | } 53 | 54 | private void ReportErrorToDOM(ApplicationUnhandledExceptionEventArgs e) 55 | { 56 | try 57 | { 58 | string errorMsg = e.ExceptionObject.Message + e.ExceptionObject.StackTrace; 59 | errorMsg = errorMsg.Replace('"', '\'').Replace("\r\n", @"\n"); 60 | 61 | System.Windows.Browser.HtmlPage.Window.Eval("throw new Error(\"Unhandled Error in Silverlight Application " + errorMsg + "\");"); 62 | } 63 | catch (Exception) 64 | { 65 | } 66 | } 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /Tests/Silverlight/MainPage.xaml: -------------------------------------------------------------------------------- 1 |  9 | 10 | 11 | 15 | 18 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Tests/Silverlight/MainPage.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Threading; 3 | using System.Windows; 4 | using System.Windows.Controls; 5 | 6 | namespace T4Model.Silverlight 7 | { 8 | public partial class MainPage : UserControl 9 | { 10 | static volatile bool _stop; 11 | 12 | public MainPage() 13 | { 14 | InitializeComponent(); 15 | 16 | var data = new ViewModel(); 17 | DataContext = data; 18 | 19 | Application.Current.Exit += (s,e) => { _stop = true; }; 20 | 21 | new Thread(() => 22 | { 23 | var r = new Random(); 24 | 25 | while (!_stop) 26 | { 27 | data.NotifiedProp1 = (r.NextDouble() - 0.5) * 1000; 28 | Thread.Sleep(data.NotifiedProp2); 29 | } 30 | }).Start(); 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Tests/Silverlight/Properties/AppManifest.xml: -------------------------------------------------------------------------------- 1 |  4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Tests/Silverlight/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("T4Model.Silverlight")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("T4Model.Silverlight")] 13 | [assembly: AssemblyCopyright("Copyright © 2012")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("26292258-3168-4d3e-97f1-456628b25ded")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Revision and Build Numbers 33 | // by using the '*' as shown below: 34 | [assembly: AssemblyVersion("1.0.0.0")] 35 | [assembly: AssemblyFileVersion("1.0.0.0")] 36 | -------------------------------------------------------------------------------- /Tests/Silverlight/ViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Windows.Media; 3 | 4 | namespace T4Model.Silverlight 5 | { 6 | partial class ViewModel 7 | { 8 | readonly static Brush _normalBrushes = new SolidColorBrush(Colors.Black); 9 | readonly static Brush _negativeBrushes = new SolidColorBrush(Colors.Red); 10 | 11 | Brush GetBrush() 12 | { 13 | return NotifiedProp1 < 0 ? _negativeBrushes : _normalBrushes; 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Tests/Silverlight/ViewModel.tt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="..\..\Templates\T4Model.ttinclude" #> 4 | <#@ include file="..\..\Templates\NotifyPropertyChanged.ttinclude" #> 5 | <# 6 | Model.Usings.Add("System.Windows.Media"); 7 | Model.Namespace.Name = "T4Model.Silverlight"; 8 | Model.Types.Add( 9 | new Class("ViewModel", 10 | new NotifyingProperty("double", "NotifiedProp1", "NotifiedProp1", "NotifiedBrush1"), 11 | new NotifyingProperty("int", "NotifiedProp2", "NotifiedProp1", "NotifiedProp2") { InitValue = "500" }, 12 | new NotifyingProperty("Brush", "NotifiedBrush1").InitGetter("GetBrush()"))); 13 | 14 | GenerateModel(); 15 | #> 16 | -------------------------------------------------------------------------------- /Tests/Tests/EditableModelTest.tt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="..\..\Templates\T4Model.ttinclude" #> 4 | <#@ include file="..\..\Templates\EditableObject.ttinclude" #> 5 | <# 6 | Model.Namespaces[0].Name = "T4Model.Tests"; 7 | 8 | Model.Usings.Add("System.ComponentModel"); 9 | Model.Usings.Add("System.Collections.Generic"); 10 | Model.Usings.Add("System.Xml.Serialization"); 11 | Model.Usings.Add("T4Model.Tests"); 12 | Model.Usings.Add("System.ComponentModel"); 13 | 14 | Model.Namespaces[0].Types.Add(new Class 15 | { 16 | Name = "TestClass3", 17 | Members = 18 | { 19 | new EditableProperty("long", "EditableLong1") { InitValue = "12345" }, 20 | new EditableProperty("int", "EditableInt1") { }, 21 | new EditableProperty("int", "EditableInt3") { }, 22 | new EditableProperty("double", "EditableDouble1") { IsDirtyText = "Math.Abs({0} - {1}) <= 16 * Double.Epsilon * Math.Max(Math.Abs({0}), Math.Abs({1}))" }, 23 | new Field { Type = "List", Name = "Field4" }, 24 | } 25 | }); 26 | 27 | GenerateModel(); 28 | #> 29 | -------------------------------------------------------------------------------- /Tests/Tests/ModelTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.ComponentModel.DataAnnotations; 3 | 4 | namespace T4Model.Tests 5 | { 6 | partial class TestClass1 7 | { 8 | partial class CustomValidator 9 | { 10 | public static ValidationResult ValidateEditableLong1(TestClass1 obj) 11 | { 12 | return ValidationResult.Success; 13 | } 14 | 15 | public static ValidationResult ValidateEditableInt1(TestClass1 obj) 16 | { 17 | return ValidationResult.Success; 18 | } 19 | } 20 | 21 | 22 | private void AddError(string name, string errorMessage) 23 | { 24 | } 25 | 26 | private void RemoveError(string nameOfEditableInt1) 27 | { 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Tests/Tests/MultipleFiles.generated.cs: -------------------------------------------------------------------------------- 1 | //--------------------------------------------------------------------------------------------------- 2 | // 3 | // This code was generated by T4 template. 4 | // Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. 5 | // 6 | //--------------------------------------------------------------------------------------------------- 7 | -------------------------------------------------------------------------------- /Tests/Tests/MultipleFiles.tt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="..\..\Templates\MultipleFiles.ttinclude" #> 4 | //--------------------------------------------------------------------------------------------------- 5 | // 6 | // This code was generated by T4 template. 7 | // Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. 8 | // 9 | //--------------------------------------------------------------------------------------------------- 10 | <# 11 | SaveOutput("aaa.cs", 1); 12 | #> 13 | //--------------------------------------------------------------------------------------------------- 14 | // 15 | // This code was generated by T4 template. 16 | // Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. 17 | // 18 | //--------------------------------------------------------------------------------------------------- 19 | <# 20 | SaveOutput("bbb.txt", 2); 21 | 22 | SyncProject(); 23 | #> 24 | //--------------------------------------------------------------------------------------------------- 25 | // 26 | // This code was generated by T4 template. 27 | // Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. 28 | // 29 | //--------------------------------------------------------------------------------------------------- 30 | -------------------------------------------------------------------------------- /Tests/Tests/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("T4Model.Tests")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("T4Model.Tests")] 13 | [assembly: AssemblyCopyright("Copyright © 2012")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("682a3c04-cb1d-4bfa-a60c-c3ee3b45eb43")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Tests/Tests/aaa.cs: -------------------------------------------------------------------------------- 1 | 2 | //--------------------------------------------------------------------------------------------------- 3 | // 4 | // This code was generated by T4 template. 5 | // Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. 6 | // 7 | //--------------------------------------------------------------------------------------------------- 8 | -------------------------------------------------------------------------------- /Tests/Tests/bbb.txt: -------------------------------------------------------------------------------- 1 | //--------------------------------------------------------------------------------------------------- 2 | // 3 | // This code was generated by T4 template. 4 | // Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. 5 | // 6 | //--------------------------------------------------------------------------------------------------- 7 | -------------------------------------------------------------------------------- /Tests/Wpf/App.xaml: -------------------------------------------------------------------------------- 1 |  5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Tests/Wpf/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Windows; 7 | 8 | namespace T4Model.Wpf 9 | { 10 | /// 11 | /// Interaction logic for App.xaml 12 | /// 13 | public partial class App : Application 14 | { 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Tests/Wpf/MainWindow.xaml: -------------------------------------------------------------------------------- 1 |  9 | 10 | 11 | 15 | 18 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Tests/Wpf/MainWindow.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Threading; 3 | using System.Windows; 4 | 5 | namespace T4Model.Wpf 6 | { 7 | /// 8 | /// Interaction logic for MainWindow.xaml 9 | /// 10 | public partial class MainWindow : Window 11 | { 12 | static volatile bool _stop; 13 | 14 | public MainWindow() 15 | { 16 | InitializeComponent(); 17 | 18 | var data = new ViewModel(); 19 | DataContext = data; 20 | 21 | Application.Current.Exit += (s,e) => { _stop = true; }; 22 | 23 | new Thread(() => 24 | { 25 | var r = new Random(); 26 | 27 | while (!_stop) 28 | { 29 | data.NotifiedProp1 = (r.NextDouble() - 0.5) * 1000; 30 | Thread.Sleep(data.NotifiedProp2); 31 | } 32 | }).Start(); 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Tests/Wpf/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Resources; 3 | using System.Runtime.CompilerServices; 4 | using System.Runtime.InteropServices; 5 | using System.Windows; 6 | 7 | // General Information about an assembly is controlled through the following 8 | // set of attributes. Change these attribute values to modify the information 9 | // associated with an assembly. 10 | [assembly: AssemblyTitle("T4Model.Wpf")] 11 | [assembly: AssemblyDescription("")] 12 | [assembly: AssemblyConfiguration("")] 13 | [assembly: AssemblyCompany("")] 14 | [assembly: AssemblyProduct("T4Model.Wpf")] 15 | [assembly: AssemblyCopyright("Copyright © 2012")] 16 | [assembly: AssemblyTrademark("")] 17 | [assembly: AssemblyCulture("")] 18 | 19 | // Setting ComVisible to false makes the types in this assembly not visible 20 | // to COM components. If you need to access a type in this assembly from 21 | // COM, set the ComVisible attribute to true on that type. 22 | [assembly: ComVisible(false)] 23 | 24 | //In order to begin building localizable applications, set 25 | //CultureYouAreCodingWith in your .csproj file 26 | //inside a . For example, if you are using US english 27 | //in your source files, set the to en-US. Then uncomment 28 | //the NeutralResourceLanguage attribute below. Update the "en-US" in 29 | //the line below to match the UICulture setting in the project file. 30 | 31 | //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] 32 | 33 | 34 | [assembly: ThemeInfo( 35 | ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located 36 | //(used if a resource is not found in the page, 37 | // or application resource dictionaries) 38 | ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located 39 | //(used if a resource is not found in the page, 40 | // app, or any theme specific resource dictionaries) 41 | )] 42 | 43 | 44 | // Version information for an assembly consists of the following four values: 45 | // 46 | // Major Version 47 | // Minor Version 48 | // Build Number 49 | // Revision 50 | // 51 | // You can specify all the values or you can default the Build and Revision Numbers 52 | // by using the '*' as shown below: 53 | // [assembly: AssemblyVersion("1.0.*")] 54 | [assembly: AssemblyVersion("1.0.0.0")] 55 | [assembly: AssemblyFileVersion("1.0.0.0")] 56 | -------------------------------------------------------------------------------- /Tests/Wpf/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.239 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace T4Model.Wpf.Properties 12 | { 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources 26 | { 27 | 28 | private static global::System.Resources.ResourceManager resourceMan; 29 | 30 | private static global::System.Globalization.CultureInfo resourceCulture; 31 | 32 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 33 | internal Resources() 34 | { 35 | } 36 | 37 | /// 38 | /// Returns the cached ResourceManager instance used by this class. 39 | /// 40 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 41 | internal static global::System.Resources.ResourceManager ResourceManager 42 | { 43 | get 44 | { 45 | if ((resourceMan == null)) 46 | { 47 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("T4Model.Wpf.Properties.Resources", typeof(Resources).Assembly); 48 | resourceMan = temp; 49 | } 50 | return resourceMan; 51 | } 52 | } 53 | 54 | /// 55 | /// Overrides the current thread's CurrentUICulture property for all 56 | /// resource lookups using this strongly typed resource class. 57 | /// 58 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 59 | internal static global::System.Globalization.CultureInfo Culture 60 | { 61 | get 62 | { 63 | return resourceCulture; 64 | } 65 | set 66 | { 67 | resourceCulture = value; 68 | } 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /Tests/Wpf/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.239 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace T4Model.Wpf.Properties 12 | { 13 | 14 | 15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] 17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase 18 | { 19 | 20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 21 | 22 | public static Settings Default 23 | { 24 | get 25 | { 26 | return defaultInstance; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Tests/Wpf/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Tests/Wpf/ViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Windows.Media; 3 | 4 | namespace T4Model.Wpf 5 | { 6 | partial class ViewModel 7 | { 8 | readonly static Brush _normalBrushes = new SolidColorBrush(Colors.Black); 9 | readonly static Brush _negativeBrushes = new SolidColorBrush(Colors.Red); 10 | 11 | Brush GetBrush() 12 | { 13 | return NotifiedProp1 < 0 ? _negativeBrushes : _normalBrushes; 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Tests/Wpf/ViewModel.tt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" debug="True" hostSpecific="True" #> 2 | <#@ output extension=".generated.cs" #> 3 | <#@ include file="..\..\Templates\T4Model.ttinclude" #> 4 | <#@ include file="..\..\Templates\NotifyPropertyChanged.ttinclude" #> 5 | <# 6 | Model.Usings.Add("System.Windows.Media"); 7 | Model.Namespace.Name = "T4Model.Wpf"; 8 | Model.Types.Add( 9 | new Class("ViewModel", 10 | new NotifyingProperty("double", "NotifiedProp1", "NotifiedProp1", "NotifiedBrush1"), 11 | new NotifyingProperty("int", "NotifiedProp2", "NotifiedProp1", "NotifiedProp2") { InitValue = "500" }, 12 | new NotifyingProperty("Brush", "NotifiedBrush1").InitGetter("GetBrush()"))); 13 | 14 | GenerateModel(); 15 | #> 16 | -------------------------------------------------------------------------------- /ToolsGenerator/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("ToolsGenerator")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("ToolsGenerator")] 13 | [assembly: AssemblyCopyright("Copyright © 2013")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("54df2b4d-c777-4359-bbfe-efd6e0d7445f")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /ToolsGenerator/ToolsGenerator.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {F2AD4C5B-56A3-4CFF-AC97-A4D1D9B424B7} 8 | Exe 9 | Properties 10 | ToolsGenerator 11 | ToolsGenerator 12 | v4.0 13 | 512 14 | 15 | 16 | AnyCPU 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | AnyCPU 27 | pdbonly 28 | true 29 | bin\Release\ 30 | TRACE 31 | prompt 32 | 4 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 55 | -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- 1 | configuration: Release 2 | 3 | environment: 4 | packageVersion: 1.10.0 5 | linq2dbVersion: 1.10.0 6 | 7 | version: $(packageVersion).{build} 8 | 9 | cache: 10 | - packages -> **\packages.config 11 | 12 | init: 13 | - cmd: git config --global core.autocrlf true 14 | - ps: | 15 | if ($env:APPVEYOR_REPO_BRANCH -ne "release") 16 | { 17 | $env:packageVersion = "$env:packageVersion-rc$env:appveyor_build_number" 18 | } 19 | 20 | 21 | nuget: 22 | account_feed: false 23 | project_feed: false 24 | 25 | build: 26 | project: T4Models.sln 27 | publish_nuget: false 28 | verbosity: minimal 29 | 30 | after_build: 31 | - cmd: cd NuGet 32 | - cmd: PackAV.bat %packageVersion% %linq2dbVersion% 33 | - cmd: cd .. 34 | 35 | 36 | artifacts: 37 | - path: NuGet\*.nupkg 38 | 39 | 40 | deploy: 41 | - provider: NuGet 42 | server: https://www.myget.org/F/linq2db/api/v2 43 | api_key: 44 | secure: LDw0jeA1Yo3R4/TKv2kmlgJR8dTT6Wun2MONq3uDvtVQJG4LOU9LjvVTAc7IgRfm 45 | skip_symbols: true 46 | on: 47 | branch: master 48 | 49 | - provider: NuGet 50 | api_key: 51 | secure: oTYw2IwTnz4qMD8c/MR/6mo+Nx3wa5Pp8MYfsKBCKCVuU6QCHlj+6QMXpnQses8G 52 | on: 53 | branch: release 54 | 55 | skip_commits: 56 | message: /ci skip./ # Regex for matching commit message 57 | -------------------------------------------------------------------------------- /packages/FirebirdSql.Data.FirebirdClient.5.6.0/FirebirdSql.Data.FirebirdClient.5.6.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/FirebirdSql.Data.FirebirdClient.5.6.0/FirebirdSql.Data.FirebirdClient.5.6.0.nupkg -------------------------------------------------------------------------------- /packages/FirebirdSql.Data.FirebirdClient.5.6.0/content/app.config.transform: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /packages/FirebirdSql.Data.FirebirdClient.5.6.0/content/web.config.transform: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /packages/FirebirdSql.Data.FirebirdClient.5.6.0/lib/net40-client/FirebirdSql.Data.FirebirdClient.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/FirebirdSql.Data.FirebirdClient.5.6.0/lib/net40-client/FirebirdSql.Data.FirebirdClient.dll -------------------------------------------------------------------------------- /packages/FirebirdSql.Data.FirebirdClient.5.6.0/lib/net40-client/FirebirdSql.Data.FirebirdClient.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/FirebirdSql.Data.FirebirdClient.5.6.0/lib/net40-client/FirebirdSql.Data.FirebirdClient.pdb -------------------------------------------------------------------------------- /packages/FirebirdSql.Data.FirebirdClient.5.6.0/lib/net45/FirebirdSql.Data.FirebirdClient.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/FirebirdSql.Data.FirebirdClient.5.6.0/lib/net45/FirebirdSql.Data.FirebirdClient.dll -------------------------------------------------------------------------------- /packages/FirebirdSql.Data.FirebirdClient.5.6.0/lib/net45/FirebirdSql.Data.FirebirdClient.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/FirebirdSql.Data.FirebirdClient.5.6.0/lib/net45/FirebirdSql.Data.FirebirdClient.pdb -------------------------------------------------------------------------------- /packages/FirebirdSql.Data.FirebirdClient.5.6.0/lib/netstandard1.6/FirebirdSql.Data.FirebirdClient.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/FirebirdSql.Data.FirebirdClient.5.6.0/lib/netstandard1.6/FirebirdSql.Data.FirebirdClient.dll -------------------------------------------------------------------------------- /packages/FirebirdSql.Data.FirebirdClient.5.6.0/lib/netstandard1.6/FirebirdSql.Data.FirebirdClient.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/FirebirdSql.Data.FirebirdClient.5.6.0/lib/netstandard1.6/FirebirdSql.Data.FirebirdClient.pdb -------------------------------------------------------------------------------- /packages/FirebirdSql.Data.FirebirdClient.5.6.0/readme.txt: -------------------------------------------------------------------------------- 1 | ADO.NET 2.0+ Data Provider for Firebird 2 | ======================================= 3 | 4 | This project is supported by: 5 | ----------------------------- 6 | 7 | Sean Leyne (Broadview Software) 8 | SMS-Timing 9 | 10 | 11 | Development list 12 | ---------------- 13 | 14 | You can subscribe to the developement list at: 15 | 16 | http://lists.sourceforge.net/lists/listinfo/firebird-net-provider 17 | 18 | 19 | You can access the lastest developement sources at: 20 | 21 | http://www.firebirdsql.org/en/devel-net-provider/ 22 | 23 | 24 | Reporting Bugs 25 | -------------- 26 | 27 | There are two ways you can report bugs: 28 | 29 | 1. Sending it to the developement list. 30 | 2. Through the Firebird Project tracker (category DNET): 31 | 32 | http://tracker.firebirdsql.org/DNET 33 | 34 | 3rd party code 35 | -------------- 36 | 37 | For zlib compression the provider uses pieces from DotNetZip (http://dotnetzip.codeplex.com/) library. 38 | 39 | -------------------------------------------------------------------------------- /packages/Humanizer.Core.2.2.0/Humanizer.Core.2.2.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Humanizer.Core.2.2.0/Humanizer.Core.2.2.0.nupkg -------------------------------------------------------------------------------- /packages/Humanizer.Core.2.2.0/lib/netstandard1.0/Humanizer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Humanizer.Core.2.2.0/lib/netstandard1.0/Humanizer.dll -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Compact.4.0.8876.1/Content/web.config.transform: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Compact.4.0.8876.1/Microsoft.SqlServer.Compact.4.0.8876.1.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Microsoft.SqlServer.Compact.4.0.8876.1/Microsoft.SqlServer.Compact.4.0.8876.1.nupkg -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Compact.4.0.8876.1/Microsoft.SqlServer.Compact.4.0.8876.1.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Microsoft.SqlServer.Compact 5 | 4.0.8876.1 6 | Microsoft SQL Server Compact Edition 7 | Microsoft 8 | Microsoft 9 | http://www.microsoft.com/web/webpi/eula/SQLCE_SP1_EULA_ENU.rtf 10 | true 11 | SQL Server Compact. An embedded SQL database. 12 | SQL Server Compact. An embedded SQL database. 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/amd64/Microsoft.VC90.CRT/Microsoft.VC90.CRT.manifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Vy8CgQgbu3qH5JHTK0op4kR8114= QTJu3Gttpt8hhCktGelNeXj4Yp8= 1ruqF7/L+m1tqnJVscaOtNRNHIE= 6 | -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/amd64/Microsoft.VC90.CRT/README_ENU.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/amd64/Microsoft.VC90.CRT/README_ENU.txt -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/amd64/Microsoft.VC90.CRT/msvcr90.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/amd64/Microsoft.VC90.CRT/msvcr90.dll -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/amd64/sqlceca40.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/amd64/sqlceca40.dll -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/amd64/sqlcecompact40.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/amd64/sqlcecompact40.dll -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/amd64/sqlceer40EN.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/amd64/sqlceer40EN.dll -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/amd64/sqlceme40.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/amd64/sqlceme40.dll -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/amd64/sqlceqp40.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/amd64/sqlceqp40.dll -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/amd64/sqlcese40.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/amd64/sqlcese40.dll -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/x86/Microsoft.VC90.CRT/Microsoft.VC90.CRT.manifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | +CXED+6HzJlSphyMNOn27ujadC0= MyKED+9DyS+1XcMeaC0Zlw2vFZ0= EeyDE7og6WoPd2oBhYbMEnpFHhY= 6 | -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/x86/Microsoft.VC90.CRT/README_ENU.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/x86/Microsoft.VC90.CRT/README_ENU.txt -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/x86/Microsoft.VC90.CRT/msvcr90.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/x86/Microsoft.VC90.CRT/msvcr90.dll -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/x86/sqlceca40.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/x86/sqlceca40.dll -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/x86/sqlcecompact40.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/x86/sqlcecompact40.dll -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/x86/sqlceer40EN.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/x86/sqlceer40EN.dll -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/x86/sqlceme40.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/x86/sqlceme40.dll -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/x86/sqlceqp40.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/x86/sqlceqp40.dll -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/x86/sqlcese40.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Microsoft.SqlServer.Compact.4.0.8876.1/NativeBinaries/x86/sqlcese40.dll -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Compact.4.0.8876.1/lib/net40/System.Data.SqlServerCe.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Microsoft.SqlServer.Compact.4.0.8876.1/lib/net40/System.Data.SqlServerCe.dll -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Types.14.0.314.76/Microsoft.SqlServer.Types.14.0.314.76.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Microsoft.SqlServer.Types.14.0.314.76/Microsoft.SqlServer.Types.14.0.314.76.nupkg -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Types.14.0.314.76/content/SqlServerTypes/Loader.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using System.Runtime.InteropServices; 4 | 5 | namespace SqlServerTypes 6 | { 7 | /// 8 | /// Utility methods related to CLR Types for SQL Server 9 | /// 10 | public class Utilities 11 | { 12 | [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)] 13 | private static extern IntPtr LoadLibrary(string libname); 14 | 15 | /// 16 | /// Loads the required native assemblies for the current architecture (x86 or x64) 17 | /// 18 | /// 19 | /// Root path of the current application. Use Server.MapPath(".") for ASP.NET applications 20 | /// and AppDomain.CurrentDomain.BaseDirectory for desktop applications. 21 | /// 22 | public static void LoadNativeAssemblies(string rootApplicationPath) 23 | { 24 | var nativeBinaryPath = IntPtr.Size > 4 25 | ? Path.Combine(rootApplicationPath, @"SqlServerTypes\x64\") 26 | : Path.Combine(rootApplicationPath, @"SqlServerTypes\x86\"); 27 | 28 | LoadNativeAssembly(nativeBinaryPath, "msvcr120.dll"); 29 | LoadNativeAssembly(nativeBinaryPath, "SqlServerSpatial140.dll"); 30 | } 31 | 32 | private static void LoadNativeAssembly(string nativeBinaryPath, string assemblyName) 33 | { 34 | var path = Path.Combine(nativeBinaryPath, assemblyName); 35 | var ptr = LoadLibrary(path); 36 | if (ptr == IntPtr.Zero) 37 | { 38 | throw new Exception(string.Format( 39 | "Error loading {0} (ErrorCode: {1})", 40 | assemblyName, 41 | Marshal.GetLastWin32Error())); 42 | } 43 | } 44 | } 45 | } -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Types.14.0.314.76/content/SqlServerTypes/readme.htm: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Microsoft.SqlServer.Types 5 | 17 | 18 | 19 |
20 |

Action required to load native assemblies

21 |

22 | To deploy an application that uses spatial data types to a machine that does not have 'System CLR Types for SQL Server' installed you also need to deploy the native assembly SqlServerSpatial140.dll. Both x86 (32 bit) and x64 (64 bit) versions of this assembly have been added to your project under the SqlServerTypes\x86 and SqlServerTypes\x64 subdirectories. The native assembly msvcr120.dll is also included in case the C++ runtime is not installed. 23 |

24 |

25 | You need to add code to load the correct one of these assemblies at runtime (depending on the current architecture). 26 |

27 |

ASP.NET Web Sites

28 |

29 | For ASP.NET Web Sites, add the following block of code to the code behind file of the Web Form where you have added Report Viewer Control: 30 |

31 |     Default.aspx.cs:
32 |         
33 |     public partial class _Default : System.Web.UI.Page
34 |     {
35 |         static bool _isSqlTypesLoaded = false;
36 | 
37 |         public _Default()
38 |         {
39 |             if (!_isSqlTypesLoaded)
40 |             {
41 |                 SqlServerTypes.Utilities.LoadNativeAssemblies(Server.MapPath("~"));
42 |                 _isSqlTypesLoaded = true;
43 |             }
44 |             
45 |         }
46 |     }
47 | 
48 |

49 |

ASP.NET Web Applications

50 |

51 | For ASP.NET Web Applications, add the following line of code to the Application_Start method in Global.asax.cs: 52 |

    SqlServerTypes.Utilities.LoadNativeAssemblies(Server.MapPath("~/bin"));
53 |

54 |

Desktop Applications

55 |

56 | For desktop applications, add the following line of code to run before any spatial operations are performed: 57 |

    SqlServerTypes.Utilities.LoadNativeAssemblies(AppDomain.CurrentDomain.BaseDirectory);
58 |

59 |
60 | 61 | -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Types.14.0.314.76/lib/net40/Microsoft.SqlServer.Types.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Microsoft.SqlServer.Types.14.0.314.76/lib/net40/Microsoft.SqlServer.Types.dll -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Types.14.0.314.76/nativeBinaries/x64/SqlServerSpatial140.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Microsoft.SqlServer.Types.14.0.314.76/nativeBinaries/x64/SqlServerSpatial140.dll -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Types.14.0.314.76/nativeBinaries/x64/msvcr120.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Microsoft.SqlServer.Types.14.0.314.76/nativeBinaries/x64/msvcr120.dll -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Types.14.0.314.76/nativeBinaries/x86/SqlServerSpatial140.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Microsoft.SqlServer.Types.14.0.314.76/nativeBinaries/x86/SqlServerSpatial140.dll -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Types.14.0.314.76/nativeBinaries/x86/msvcr120.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Microsoft.SqlServer.Types.14.0.314.76/nativeBinaries/x86/msvcr120.dll -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Types.14.0.314.76/tools/install.ps1: -------------------------------------------------------------------------------- 1 | param($installPath, $toolsPath, $package, $project) 2 | 3 | $packagePath = (New-Object system.IO.DirectoryInfo $toolsPath).Parent.FullName 4 | $cppBinaryPathx86 = Join-Path $packagePath "nativeBinaries\x86\msvcr120.dll" 5 | $cppBinaryPathx64 = Join-Path $packagePath "nativeBinaries\x64\msvcr120.dll" 6 | $sqlBinaryPathx86 = Join-Path $packagePath "nativeBinaries\x86\SqlServerSpatial140.dll" 7 | $sqlBinaryPathx64 = Join-Path $packagePath "nativeBinaries\x64\SqlServerSpatial140.dll" 8 | 9 | $sqlServerTypes = $project.ProjectItems.Item("SqlServerTypes") 10 | 11 | $isAspNetProject = !$project.FullName.EndsWith('proj') 12 | 13 | $folderx86 = $sqlServerTypes.ProjectItems | where Name -eq "x86" 14 | if (!$folderx86) 15 | { 16 | $folderx86 = $sqlServerTypes.ProjectItems.AddFolder("x86") 17 | } 18 | 19 | $folderx64 = $sqlServerTypes.ProjectItems | where Name -eq "x64" 20 | if (!$folderx64) 21 | { 22 | $folderx64 = $sqlServerTypes.ProjectItems.AddFolder("x64") 23 | } 24 | 25 | $cppLinkx86 = $folderx86.ProjectItems | where Name -eq "msvcr120.dll" 26 | if (!$cppLinkx86) 27 | { 28 | $cppLinkx86 = $folderx86.ProjectItems.AddFromFileCopy($cppBinaryPathx86) 29 | if (!$isAspNetProject) 30 | { 31 | $cppLinkx86.Properties.Item("CopyToOutputDirectory").Value = 2 32 | } 33 | } 34 | 35 | $sqlLinkx86 = $folderx86.ProjectItems | where Name -eq "SqlServerSpatial140.dll" 36 | if (!$sqlLinkx86) 37 | { 38 | $sqlLinkx86 = $folderx86.ProjectItems.AddFromFileCopy($sqlBinaryPathx86) 39 | if (!$isAspNetProject) 40 | { 41 | $sqlLinkx86.Properties.Item("CopyToOutputDirectory").Value = 2 42 | } 43 | } 44 | 45 | $cppLinkx64 = $folderx64.ProjectItems | where Name -eq "msvcr120.dll" 46 | if (!$cppLinkx64) 47 | { 48 | $cppLinkx64 = $folderx64.ProjectItems.AddFromFileCopy($cppBinaryPathx64) 49 | if (!$isAspNetProject) 50 | { 51 | $cppLinkx64.Properties.Item("CopyToOutputDirectory").Value = 2 52 | } 53 | } 54 | 55 | $sqlLinkx64 = $folderx64.ProjectItems | where Name -eq "SqlServerSpatial140.dll" 56 | if (!$sqlLinkx64) 57 | { 58 | $sqlLinkx64 = $folderx64.ProjectItems.AddFromFileCopy($sqlBinaryPathx64) 59 | if (!$isAspNetProject) 60 | { 61 | $sqlLinkx64.Properties.Item("CopyToOutputDirectory").Value = 2 62 | } 63 | } 64 | 65 | $readmefile = Join-Path $project.FullName "SqlServerTypes\readme.htm" 66 | if (!$isAspNetProject) 67 | { 68 | $readmefile = Join-Path (Split-Path $project.FullName) "SqlServerTypes\readme.htm" 69 | } 70 | $dte.ItemOperations.Navigate($readmefile) -------------------------------------------------------------------------------- /packages/Microsoft.SqlServer.Types.14.0.314.76/tools/uninstall.ps1: -------------------------------------------------------------------------------- 1 | param($installPath, $toolsPath, $package, $project) 2 | 3 | $sqlServerTypes = $project.ProjectItems | where Name -eq "SqlServerTypes" 4 | if($sqlServerTypes) 5 | { 6 | $folderx86 = $sqlServerTypes.ProjectItems | where Name -eq "x86" 7 | if ($folderx86) 8 | { 9 | $cppFilex86 = $folderx86.ProjectItems | where Name -eq "msvcr120.dll" 10 | if($cppFilex86) 11 | { 12 | $cppFilex86.Delete(); 13 | } 14 | 15 | $sqlFilex86 = $folderx86.ProjectItems | where Name -eq "SqlServerSpatial140.dll" 16 | if($sqlFilex86) 17 | { 18 | $sqlFilex86.Delete(); 19 | } 20 | 21 | if($folderx86.ProjectItems.Count -eq 0) 22 | { 23 | $folderx86.Delete() 24 | } 25 | } 26 | 27 | $folderx64 = $sqlServerTypes.ProjectItems | where Name -eq "x64" 28 | if ($folderx64) 29 | { 30 | $cppFilex64 = $folderx64.ProjectItems | where Name -eq "msvcr120.dll" 31 | if($cppFilex64) 32 | { 33 | $cppFilex64.Delete(); 34 | } 35 | 36 | $sqlFilex64 = $folderx64.ProjectItems | where Name -eq "SqlServerSpatial140.dll" 37 | if($sqlFilex64) 38 | { 39 | $sqlFilex64.Delete(); 40 | } 41 | 42 | if($folderx64.ProjectItems.Count -eq 0) 43 | { 44 | $folderx64.Delete() 45 | } 46 | } 47 | 48 | if($sqlServerTypes.ProjectItems.Count -eq 0) 49 | { 50 | $sqlServerTypes.Delete() 51 | } 52 | } -------------------------------------------------------------------------------- /packages/MySql.Data.6.9.9/MySql.Data.6.9.9.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/MySql.Data.6.9.9/MySql.Data.6.9.9.nupkg -------------------------------------------------------------------------------- /packages/MySql.Data.6.9.9/Readme.txt: -------------------------------------------------------------------------------- 1 | Connector/Net 6.9 Release Notes 2 | ------------------------------------ 3 | 4 | Welcome to the release notes for Connector/Net 6.9 5 | 6 | What's new in 6.9 7 | -------------------- 8 | 9 | - Simple Membership Web Provider 10 | - Site Map Web Provider 11 | - Personalization Web Provider 12 | - MySql Fabric support 13 | 14 | 15 | Be sure and check the documentation for more information on these new features. -------------------------------------------------------------------------------- /packages/MySql.Data.6.9.9/content/app.config.transform: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /packages/MySql.Data.6.9.9/content/web.config.transform: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /packages/MySql.Data.6.9.9/lib/net40/MySql.Data.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/MySql.Data.6.9.9/lib/net40/MySql.Data.dll -------------------------------------------------------------------------------- /packages/MySql.Data.6.9.9/lib/net45/MySql.Data.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/MySql.Data.6.9.9/lib/net45/MySql.Data.dll -------------------------------------------------------------------------------- /packages/Npgsql.3.2.5/Npgsql.3.2.5.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Npgsql.3.2.5/Npgsql.3.2.5.nupkg -------------------------------------------------------------------------------- /packages/Npgsql.3.2.5/lib/net45/Npgsql.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Npgsql.3.2.5/lib/net45/Npgsql.dll -------------------------------------------------------------------------------- /packages/Npgsql.3.2.5/lib/net451/Npgsql.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Npgsql.3.2.5/lib/net451/Npgsql.dll -------------------------------------------------------------------------------- /packages/Npgsql.3.2.5/lib/netstandard1.3/Npgsql.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Npgsql.3.2.5/lib/netstandard1.3/Npgsql.dll -------------------------------------------------------------------------------- /packages/Npgsql.3.2.5/lib/netstandard2.0/Npgsql.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Npgsql.3.2.5/lib/netstandard2.0/Npgsql.dll -------------------------------------------------------------------------------- /packages/Oracle.ManagedDataAccess.12.1.24160719/Oracle.ManagedDataAccess.12.1.24160719.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Oracle.ManagedDataAccess.12.1.24160719/Oracle.ManagedDataAccess.12.1.24160719.nupkg -------------------------------------------------------------------------------- /packages/Oracle.ManagedDataAccess.12.1.24160719/content/net40/App.config.transform: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /packages/Oracle.ManagedDataAccess.12.1.24160719/content/net40/App.config.uninstall.xdt: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 |
7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /packages/Oracle.ManagedDataAccess.12.1.24160719/content/net40/Web.config.transform: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /packages/Oracle.ManagedDataAccess.12.1.24160719/content/net40/Web.config.uninstall.xdt: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 |
7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /packages/Oracle.ManagedDataAccess.12.1.24160719/info.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Oracle.ManagedDataAccess.12.1.24160719/info.txt -------------------------------------------------------------------------------- /packages/Oracle.ManagedDataAccess.12.1.24160719/lib/net40/Oracle.ManagedDataAccess.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/Oracle.ManagedDataAccess.12.1.24160719/lib/net40/Oracle.ManagedDataAccess.dll -------------------------------------------------------------------------------- /packages/System.Data.SQLite.Core.1.0.103/System.Data.SQLite.Core.1.0.103.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/System.Data.SQLite.Core.1.0.103/System.Data.SQLite.Core.1.0.103.nupkg -------------------------------------------------------------------------------- /packages/System.Data.SQLite.Core.1.0.103/build/net20/x64/SQLite.Interop.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/System.Data.SQLite.Core.1.0.103/build/net20/x64/SQLite.Interop.dll -------------------------------------------------------------------------------- /packages/System.Data.SQLite.Core.1.0.103/build/net20/x86/SQLite.Interop.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/System.Data.SQLite.Core.1.0.103/build/net20/x86/SQLite.Interop.dll -------------------------------------------------------------------------------- /packages/System.Data.SQLite.Core.1.0.103/build/net40/x64/SQLite.Interop.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/System.Data.SQLite.Core.1.0.103/build/net40/x64/SQLite.Interop.dll -------------------------------------------------------------------------------- /packages/System.Data.SQLite.Core.1.0.103/build/net40/x86/SQLite.Interop.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/System.Data.SQLite.Core.1.0.103/build/net40/x86/SQLite.Interop.dll -------------------------------------------------------------------------------- /packages/System.Data.SQLite.Core.1.0.103/build/net45/x64/SQLite.Interop.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/System.Data.SQLite.Core.1.0.103/build/net45/x64/SQLite.Interop.dll -------------------------------------------------------------------------------- /packages/System.Data.SQLite.Core.1.0.103/build/net45/x86/SQLite.Interop.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/System.Data.SQLite.Core.1.0.103/build/net45/x86/SQLite.Interop.dll -------------------------------------------------------------------------------- /packages/System.Data.SQLite.Core.1.0.103/build/net451/x64/SQLite.Interop.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/System.Data.SQLite.Core.1.0.103/build/net451/x64/SQLite.Interop.dll -------------------------------------------------------------------------------- /packages/System.Data.SQLite.Core.1.0.103/build/net451/x86/SQLite.Interop.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/System.Data.SQLite.Core.1.0.103/build/net451/x86/SQLite.Interop.dll -------------------------------------------------------------------------------- /packages/System.Data.SQLite.Core.1.0.103/build/net46/x64/SQLite.Interop.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/System.Data.SQLite.Core.1.0.103/build/net46/x64/SQLite.Interop.dll -------------------------------------------------------------------------------- /packages/System.Data.SQLite.Core.1.0.103/build/net46/x86/SQLite.Interop.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/System.Data.SQLite.Core.1.0.103/build/net46/x86/SQLite.Interop.dll -------------------------------------------------------------------------------- /packages/System.Data.SQLite.Core.1.0.103/lib/net20/System.Data.SQLite.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/System.Data.SQLite.Core.1.0.103/lib/net20/System.Data.SQLite.dll -------------------------------------------------------------------------------- /packages/System.Data.SQLite.Core.1.0.103/lib/net40/System.Data.SQLite.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/System.Data.SQLite.Core.1.0.103/lib/net40/System.Data.SQLite.dll -------------------------------------------------------------------------------- /packages/System.Data.SQLite.Core.1.0.103/lib/net45/System.Data.SQLite.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/System.Data.SQLite.Core.1.0.103/lib/net45/System.Data.SQLite.dll -------------------------------------------------------------------------------- /packages/System.Data.SQLite.Core.1.0.103/lib/net451/System.Data.SQLite.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/System.Data.SQLite.Core.1.0.103/lib/net451/System.Data.SQLite.dll -------------------------------------------------------------------------------- /packages/System.Data.SQLite.Core.1.0.103/lib/net46/System.Data.SQLite.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/System.Data.SQLite.Core.1.0.103/lib/net46/System.Data.SQLite.dll -------------------------------------------------------------------------------- /packages/System.Threading.Tasks.Extensions.4.3.0/System.Threading.Tasks.Extensions.4.3.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/System.Threading.Tasks.Extensions.4.3.0/System.Threading.Tasks.Extensions.4.3.0.nupkg -------------------------------------------------------------------------------- /packages/System.Threading.Tasks.Extensions.4.3.0/ThirdPartyNotices.txt: -------------------------------------------------------------------------------- 1 | This Microsoft .NET Library may incorporate components from the projects listed 2 | below. Microsoft licenses these components under the Microsoft .NET Library 3 | software license terms. The original copyright notices and the licenses under 4 | which Microsoft received such components are set forth below for informational 5 | purposes only. Microsoft reserves all rights not expressly granted herein, 6 | whether by implication, estoppel or otherwise. 7 | 8 | 1. .NET Core (https://github.com/dotnet/core/) 9 | 10 | .NET Core 11 | Copyright (c) .NET Foundation and Contributors 12 | 13 | The MIT License (MIT) 14 | 15 | Permission is hereby granted, free of charge, to any person obtaining a copy 16 | of this software and associated documentation files (the "Software"), to deal 17 | in the Software without restriction, including without limitation the rights 18 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 19 | copies of the Software, and to permit persons to whom the Software is 20 | furnished to do so, subject to the following conditions: 21 | 22 | The above copyright notice and this permission notice shall be included in all 23 | copies or substantial portions of the Software. 24 | 25 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 26 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 27 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 28 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 29 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 30 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 31 | SOFTWARE. -------------------------------------------------------------------------------- /packages/System.Threading.Tasks.Extensions.4.3.0/lib/netstandard1.0/System.Threading.Tasks.Extensions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/System.Threading.Tasks.Extensions.4.3.0/lib/netstandard1.0/System.Threading.Tasks.Extensions.dll -------------------------------------------------------------------------------- /packages/System.Threading.Tasks.Extensions.4.3.0/lib/portable-net45+win8+wp8+wpa81/System.Threading.Tasks.Extensions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/System.Threading.Tasks.Extensions.4.3.0/lib/portable-net45+win8+wp8+wpa81/System.Threading.Tasks.Extensions.dll -------------------------------------------------------------------------------- /packages/linq2db.1.10.0/lib/net40/linq2db.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/linq2db.1.10.0/lib/net40/linq2db.dll -------------------------------------------------------------------------------- /packages/linq2db.1.10.0/lib/net40/linq2db.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/linq2db.1.10.0/lib/net40/linq2db.pdb -------------------------------------------------------------------------------- /packages/linq2db.1.10.0/lib/net45/linq2db.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/linq2db.1.10.0/lib/net45/linq2db.dll -------------------------------------------------------------------------------- /packages/linq2db.1.10.0/lib/net45/linq2db.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/linq2db.1.10.0/lib/net45/linq2db.pdb -------------------------------------------------------------------------------- /packages/linq2db.1.10.0/lib/netcore45/linq2db.WindowsStore.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/linq2db.1.10.0/lib/netcore45/linq2db.WindowsStore.dll -------------------------------------------------------------------------------- /packages/linq2db.1.10.0/lib/netcore45/linq2db.WindowsStore.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/linq2db.1.10.0/lib/netcore45/linq2db.WindowsStore.pdb -------------------------------------------------------------------------------- /packages/linq2db.1.10.0/lib/sl4/linq2db.Silverlight.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/linq2db.1.10.0/lib/sl4/linq2db.Silverlight.dll -------------------------------------------------------------------------------- /packages/linq2db.1.10.0/lib/sl4/linq2db.Silverlight.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/linq2db.1.10.0/lib/sl4/linq2db.Silverlight.pdb -------------------------------------------------------------------------------- /packages/linq2db.1.10.0/lib/sl5/linq2db.Silverlight.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/linq2db.1.10.0/lib/sl5/linq2db.Silverlight.dll -------------------------------------------------------------------------------- /packages/linq2db.1.10.0/lib/sl5/linq2db.Silverlight.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/linq2db.1.10.0/lib/sl5/linq2db.Silverlight.pdb -------------------------------------------------------------------------------- /packages/linq2db.1.10.0/lib/windows8/linq2db.WindowsStore.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/linq2db.1.10.0/lib/windows8/linq2db.WindowsStore.dll -------------------------------------------------------------------------------- /packages/linq2db.1.10.0/lib/windows8/linq2db.WindowsStore.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/linq2db.1.10.0/lib/windows8/linq2db.WindowsStore.pdb -------------------------------------------------------------------------------- /packages/linq2db.1.10.0/linq2db.1.10.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linq2db/t4models/450663b2d0ad3c331fc17578ee8fe3429daf4195/packages/linq2db.1.10.0/linq2db.1.10.0.nupkg -------------------------------------------------------------------------------- /packages/repositories.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | --------------------------------------------------------------------------------