mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-27 04:21:27 +02:00
Added PetaPoco
This commit is contained in:
32
packages/PetaPoco.4.0.2/Content/Models/Generated/Database.tt
vendored
Normal file
32
packages/PetaPoco.4.0.2/Content/Models/Generated/Database.tt
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
<#@ include file="PetaPoco.Core.ttinclude" #>
|
||||
<#
|
||||
// Settings
|
||||
ConnectionStringName = ""; // Uses last connection string in config if not specified
|
||||
Namespace = "";
|
||||
RepoName = "";
|
||||
GenerateOperations = true;
|
||||
GeneratePocos = true;
|
||||
GenerateCommon = true;
|
||||
ClassPrefix = "";
|
||||
ClassSuffix = "";
|
||||
|
||||
// Read schema
|
||||
var tables = LoadTables();
|
||||
|
||||
|
||||
/*
|
||||
// Tweak Schema
|
||||
tables["tablename"].Ignore = true; // To ignore a table
|
||||
tables["tablename"].ClassName = "newname"; // To change the class name of a table
|
||||
tables["tablename"]["columnname"].Ignore = true; // To ignore a column
|
||||
tables["tablename"]["columnname"].PropertyName="newname"; // To change the property name of a column
|
||||
tables["tablename"]["columnname"].PropertyType="bool"; // To change the property type of a column
|
||||
*/
|
||||
|
||||
// Generate output
|
||||
if (tables.Count>0)
|
||||
{
|
||||
#>
|
||||
<#@ include file="PetaPoco.Generator.ttinclude" #>
|
||||
<# } #>
|
||||
|
Reference in New Issue
Block a user