zzz projects Entity Framework Core EF Core
Home Articles Knowledge Base Online Examples
  • Home
  • Articles
  • Knowledge Base
  • Online Examples

Entity Framework Core - Knowledge Base (KB)

7 results in tag: t4

Entity Framework 6.1 Code first from existing DB - add foreign key to T4 template

I'm using EF 6.1 new feature - Code first from existing DB - and I'd like to add a foreign key in addition to each navigation property. I added the default T4 templates from nuget but I cannot figure out how to edit it. I guess it should be a quite common...
ef-code-first entity-framework entity-framework-6 t4
asked by Matteo Sganzetta

EntityCollection - ICollection<InterfaceTEntity> - Runtime Issue/Quirk

Background Info...I'm using the Database-First approach. ...I created a TextTemplate (.tt) file that generates interfaces from the EDMX file, also, I modified the original TextTemplate file included/produced by the EDMX file (project item) to have the gen...
c# entity-framework entity-framework-6 interface t4
asked by Brett Caswell

Are there any alternatives to T4 templates and EnvDTE for cross platform asp.net 5 development?

We currently use T4 templates to generate C# code files based on C# Code (Entity POCO's) and the EDMX (in older applications) ...Moving to ASP.NET 5 with a view to support cross platform development, are there any code generation tools available that can ...
asp.net-core code-generation entity-framework-core t4
asked by Mark Redman

Multiple EF6 DB Models with same Entity names conflicting and getting overwritten, How to set model output directory in EF6?

I am working with ...EF6... and generating models (database-first) from multiple databases. Some databases have same table names so when model is generated they start conflicting. To solve ...namespace... problem I went to ...Model.tt... file properties i...
c# ef-database-first entity-framework entity-framework-6 t4
asked by Matas Vaitkevicius

Using T4 template to force PascalCase (TitleCase) for entities in Entity Framework 6

Turns out, simply modifying the default T4 template was actually really easy. Inside ...GetTypeName... there is a ...is StructuralType... check which handles all non-primitive types. That pretty well fixed the majority of my issues. Then it was just a mat...
c# entity-framework entity-framework-6 t4 visual-studio
asked by Nick Alexander

Where are types used in Entity Framework T4 templates defined?

In the ....tt... files created by Entity Framework for my entities and ...DbContext... generation, I see classes like ...TypeMapper... and ...Accessibility... used. Where are these types defined and are they documented anywhere? I want to customize my t4 ...
entity-framework entity-framework-6 t4
asked by xr280xr

Net Core: Create Generic Repository Interface Id Mapping for All Tables Auto Code Generation

We just Scaffolded our database, and created Models from Database tables in Entity Framework....Additionally, we are creating files with Ids which Map to the Primary Key. The purpose of this is to map to our Generic Repository Interface which utilizes Id....
.net-core asp.net-core c# entity-framework-core t4
asked by jerrythomas38

Page 1 of 1
  • 1

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...

Related

  • EF Extensions Online Benchmark
  • WIN an EF Extensions license
  • EF6 BatchSaveChanges for only $79
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!