view Demo/WebServices/NorthwindDataService/DataContext.tt @ 4:f757da6161a1

!bug 100 + 2h fixed gregression
author cin
date Sun, 24 Aug 2014 17:57:42 +0400
parents f990fcb411a9
children
line wrap: on
line source

<#@ template language="C#" debug="True" hostspecific="True" #>
<#@ output extension=".generated.cs" #>
<#@ include file="$(SolutionDir)\Source\Templates\BLToolkit.ttinclude"            #>
<#@ include file="$(SolutionDir)\Source\Templates\MSSql.ttinclude"                #>
<#@ include file="$(SolutionDir)\Source\Templates\PluralSingular.ttinclude"       #>
<#
	ConnectionString = "Server=.;Database=Northwind;Integrated Security=SSPI";
	Namespace        = "NorthwindDS";

	LoadMetadata();

	Tables["Products"].Columns["Discontinued"].Attributes.Add("MapField(IsInheritanceDiscriminator=true)");
	
	GenerateModel();
#>