t4
Using t4 templates to generate in-memory SQL at runtime
We are building a query service that needs to parse the us开发者_开发问答er\'s search term and generate a form of SQL (not T-SQL but a proprietary SQL-like query language) out of it.[详细]
2023-04-05 22:26 分类:问答Can I change the T4 for a Silverlight WCF Data Service ServiceReference?
I have a WCF Data Service in my web app. I added a service reference using the \"Add New Service Reference\" command in my Silverlight application. I was looking at the Reference.cs file VS generates[详细]
2023-04-05 06:55 分类:问答KnownTypeAttribute in t4 file
I\'m trying to use some reflection in a .tt file, more specifically to determine the KnownTypes on a class. To do this I just use simple reflection, or rather want to use simple reflection, but when I[详细]
2023-04-05 00:10 分类:问答This looks like a T4 engine bug or am I doing something wrong
I have a t4 template that generates c++ code I need to dynamically specify an include file. I have removed all of the logic of my code just to illustrate the error.[详细]
2023-04-04 15:45 分类:问答When I save edmx, all templates are transformed automatically. How to stop this behavior in visual studio 2010?
This takes relatively long time to save edmx. Any help will be appreciated. Btw, I do not know if this is behavio开发者_Go百科r added to studio by some add-in!There is a property, on ConceptualEnti[详细]
2023-04-03 23:22 分类:问答Custom Visual Studio Context Menus
I want to use T4 templates to automatically create some code but I want to add a user input box (to ask for a name, for example) similar to the MVC3 \"Add View\" / \"Add Controller\" dialog when you r[详细]
2023-04-03 15:34 分类:问答Use in T4 some class from hosting project?
I have Linq to sql model inside a project on which .tt also added. T开发者_运维问答hat model I want to use in my T4 template. The question how to put a reference on it. If its a website and for consol[详细]
2023-04-02 19:45 分类:问答Generate Enums from Database or Vice Versa?
I\'m trying to figure out which is the the \"correct\" way to do this.I have a bunch of lookup tables in my database and would like to place an enum on top of those values so, when coding, it\'s easie[详细]
2023-04-01 17:10 分类:问答EF.Utility.CS.ttinclude and MSBuild
I am having troubles getting my MSBuild script transform a .tt file that references EF.Utility.CS.ttinclude.[详细]
2023-04-01 14:02 分类:问答Where are the built in MVC scaffolding T4 templates?
With the newest MVC tools, when I add a controller, I get scaffolding for the controller code as well as the CRUD Views.I\'m not asking about how to override templates.I understand that I can override[详细]
2023-04-01 01:27 分类:问答