<%@ Template Language="C#" TargetLanguage="Text" Debug="True" OutputType="None" %> <%@ Assembly Name="SchemaExplorer" %> <%@ Assembly Name="CodeSmith.CustomProperties" %> <%@ Assembly Name="Mono.Cecil" Path="..\Common" %> <%@ Assembly Name="ICSharpCode.NRefactory" Path="..\Common" %> <%@ Assembly Name="ICSharpCode.NRefactory.CSharp" Path="..\Common" %> <%@ Assembly Src="Internal\Model.cs" %> <%@ Assembly Src="Internal\Extensions.cs" %> <%@ Assembly Src="Internal\Generator.cs" %> <%@ Assembly Src="Internal\Parser.cs" %> <%@ Import Namespace="System.Collections.Generic" %> <%@ Import Namespace="System.IO" %> <%@ Import Namespace="System.Linq" %> <%@ Import Namespace="System.Text" %> <%@ Import Namespace="System.Text.RegularExpressions" %> <%@ Import Namespace="SchemaMapper" %> <%@ Property Name="SourceDatabase" Type="SchemaExplorer.DatabaseSchema" Category="1.Database" OnChanged="OnSourceDatabaseChanged" Description="The source database." %> <%@ Property Name="ContextNamespace" Type="System.String" Category="2.Class" OnChanged="OnContextNamespaceChanged" Description="The namespace to use for the data context class files."%> <%@ Property Name="EntityNamespace" Type="System.String" Category="2.Class" Description="The namespace to use for the entity class files."%> <%@ Property Name="MappingNamespace" Type="System.String" Category="2.Class" Description="The namespace to use for the mapping class files."%> <%@ Property Name="ContextDirectory" Category="3.Output" Type="System.String" Default=".\" Optional="True" Description="The folder to save the generated context files." Editor="System.Windows.Forms.Design.FolderNameEditor, System.Design, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" %> <%@ Property Name="EntityDirectory" Category="3.Output" Type="System.String" Default=".\Entities" Optional="True" Description="The folder to save the generated entity files." Editor="System.Windows.Forms.Design.FolderNameEditor, System.Design, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" %> <%@ Property Name="MappingDirectory" Category="3.Output" Type="System.String" Default=".\Mapping" Optional="True" Description="The folder to save the generated mapping files." Editor="System.Windows.Forms.Design.FolderNameEditor, System.Design, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" %> <%@ Property Name="TableNaming" Type="SchemaMapper.TableNaming" Category="4.Hints" Default="Singular" Description="Provide generator a hint as to how the tables are named." %> <%@ Property Name="EntityNaming" Type="SchemaMapper.EntityNaming" Category="4.Hints" Default="Singular" Description="Tell generator how the entities are to be named." %> <%@ Property Name="RelationshipNaming" Type="SchemaMapper.RelationshipNaming" Category="4.Hints" Default="Plural" Description="Tell generator how the relationships are to be named." %> <%@ Property Name="ContextNaming" Type="SchemaMapper.ContextNaming" Category="4.Hints" Default="Plural" Description="Tell generator how the context properties are to be named." %> <%@ Property Name="IgnoreList" Type="CodeSmith.CustomProperties.StringCollection" Category="5.Customization" Default="sysdiagrams$" Optional="True" Description="List of regular expressions to ignore tables, views and commands when generating mapping." %> <%@ Property Name="InclusionMode" Type="Boolean" Category="5.Customization" Default="False" Optional="True" Description="Change the IgnoreList to be a list of table to include instead of ignore." %> <%@ Property Name="CleanExpressions" Type="CodeSmith.CustomProperties.StringCollection" Category="5.Customization" Default="^(sp|tbl|udf|vw)_" Optional="True" Description="List of regular expressions to clean table, view and column names." %> <%@ Property Name="InterfaceMode" Type="Boolean" Category="5.Customization" Default="False" Optional="True" Description="Use interfaces for DbContext." %> <%@ Register Name="ContextGeneratedClass" Template="Internal\Context.Generated.cst" MergeProperties="False" %> <%@ Register Name="EntityGeneratedClass" Template="Internal\Entity.Generated.cst" MergeProperties="False" %> <%@ Register Name="MappingGeneratedClass" Template="Internal\Mapping.Generated.cst" MergeProperties="False" %> Generating Entities ... <% Generate(); %>