Directly on the code, you just need to modify the EF entity's address.
<#@ template language= "C #" debug= "false" hostspecific= "true" #><#@ include file= "EF. Utility.CS.ttinclude "#><#@ output extension=". CS "#> < #CodeGenerationTools code = new Codegenerationtools ( this); Metadataloader loader = new Metadataloader (this); Coderegion region = new Coderegion (this, 1); Metadatatools EF = new Metadatatools (this); string inputfile = @ "... \\SEARCH.MODEL\\SEARCHENGINES.EDMX "; Modify here Edmitemcollection itemcollection = loader. Createedmitemcollection (inputfile); string namespacename = code. Vsnamespacesuggestion (); Entityframeworktemplatefilemanager FileManager = Entityframeworktemplatefilemanager.create (this); #>using System ; using system.collections.generic;using system.linq;using system.text;using search.model;using Search.IDal; namespace search.dal{<#//Emit entity Typesforeach (EntityType entity in itemcollection.getitems<entitytype> ( ). (e = e.name)) {//filemanager.startnewfile (entity. Name + "RepositoryExt.cs"); Beginnamespace (nAmespacename, code); #>public partial class <#=entity. Name#>dal:basedal<<#=entity. Name#>>,i<#=entity. Name#>dal {}<#}#>}
Create EF entities with T4 templates