-
Notifications
You must be signed in to change notification settings - Fork 458
/
Copy pathCopyMe.Firebird.tt.txt
35 lines (30 loc) · 1.36 KB
/
CopyMe.Firebird.tt.txt
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
30
31
32
33
34
35
<#@ template language="C#" debug="True" hostSpecific="True" #>
<#@ CleanupBehavior processor="T4VSHost" CleanupAfterProcessingtemplate="true" #>
<#@ output extension=".generated.cs" #>
<#@ include file="$(LinqToDBT4FirebirdTemplatesPath)LinqToDB.Firebird.ttinclude" once="true" #>
<#@ include file="$(LinqToDBT4TemplatesPath)PluralizationService.ttinclude" once="true" #>
<#
// Install linq2db nuget package.
// Install one of the following packages:
// https://www.nuget.org/packages/FirebirdSql.Data.FirebirdClient for FirebirdSql.Data.FirebirdClient
// See LinqToDB.Templates/README.md for more details.
// Configuring schema load process
//
// GetSchemaOptions.GetProcedures = true;
// Configuring generation process
//
NamespaceName = "DataModels";
// DataContextName = "MyDB";
GenerateSchemaAsType = true;
// GetDataOptionsMethod = "GetDataOptions({0})";
// Loading metadata
//
LoadFirebirdMetadata("MyServer", @"C:\Data\MyDatabase.fdb");
// LoadFirebirdMetadata(string server, string database, string uid, string password);
// LoadFirebirdMetadata(string connectionString);
// Customizing generation process
//
// GetColumn("Order", "OrderID").MemberName = "ID";
// GetColumn("Order", "Day"). Type = "DayOfWeek";
GenerateModel();
#>