Quantcast
Channel: EntityFramework Reverse POCO Code First Generator
Viewing all articles
Browse latest Browse all 1642

Commented Unassigned: Additional cs file being created? [78]

$
0
0
I think I have seen this issue before, just not sure what the resolution is.

My tt file is named Database.tt and after the template executes it creates a Database.cs file




// This file was automatically generated.
// Do not make changes directly to this file - edit the template instead.
//
// The following connection settings were used to generate this file
//
// Configuration file: "MyNamespace.Data\App.config"
// Connection String Name: "EntityModel"
// Connection String: "data source=sss;initial catalog=sss1;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework"

using System;
using System.Linq;
using System.Text;
using System.Data.Entity;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using MyNamespace

namespace MyNamespace
{
}



Comments: I have tried putting this in the file <#@ output extension=".ignore" #> Historically, this has worked for me. It doesn't stop the extra file from being generated but it should make that additional file have an extension .ignore which is better.

Viewing all articles
Browse latest Browse all 1642

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>