IC窗口
community.icburner.com
Sign in
|
Join
|
Help
首页
精华文章
媒体
问答
维基百科
圈子
精华
VS2010学习
»
All Tags
»
T4
(
RSS
)
Browse by Tags
VS2010学习
Home
Syndication
RSS for Posts
Atom
Email Notifications
Go
Recent Posts
T4 Templates: A Quick-Start Guide for ASP.NET MVC Developers
The Weekly Source Code 43 - ASP.NET MVC and T4 and NerdDinner
Customizing T4 Templates
Locating the getter and setter access modifiers in the EdmItemCollection of Entity Framework
T4 POCO Templates for L2S and EF
Tags
C#
DDD
EF4
Entity Framework
Entity Framework 4.0
Entity Framework Feature CTP1 for .NET 4.0
Entity Framework v2
IoC
jQuery
Kigg
Kigg系列文章
LINQ to Entities
LINQ to SQL
MVC
MVC2
NerdDinner
Oxite
POCO
T4
TDD
Test
Tip
Unity
VS2010
WPF
View more
Archives
December 2009 (8)
November 2009 (1)
October 2009 (18)
September 2009 (4)
August 2009 (24)
July 2009 (70)
June 2009 (180)
EDM
EF4
Entity Framework
LINQ to SQL
MVC
MVC2
NerdDinner
POCO
VS2010
WPF
T4 Templates: A Quick-Start Guide for ASP.NET MVC Developers
As mentioned in our recent blog post on the ASP.NET MVC Release Candidate , our code-generation features (namely, Add Controller and Add View) now use the T4 (Text Template Transformation Toolkit) templating technology behind the scenes. ...
Published
2009/12/24 18:35
by
革命
Filed under:
T4
,
MVC
,
MVC2
The Weekly Source Code 43 - ASP.NET MVC and T4 and NerdDinner
UPDATE: David's put the T4 template with some nice updates on CodePlex - It's the last download here . I really advocate folks reading as much source as they can because you become a better writer by reading as much as writing. That's the...
Published
2009/8/14 18:05
by
革命
Filed under:
T4
,
MVC
,
NerdDinner
Customizing T4 Templates
The whole point of us using T4 for code-generation is that it makes it easy to customize the generated entities. A good example might be to support some sort of validation when setting string properties. To illustrate lets re-use the code from the recent...
Published
2009/7/27 0:55
by
革命
Filed under:
Entity Framework
,
EF4
,
T4
Locating the getter and setter access modifiers in the EdmItemCollection of Entity Framework
I've been creating a nice T4 template for a repository pattern for my entities. Instead of manually parsing the xml in the edmx file I use the EdmItemCollection to create a object graph presentation for the conceptual model. I've been able to...
Published
2009/7/15 15:40
by
革命
Filed under:
EDM
,
T4
T4 POCO Templates for L2S and EF
In my MSDN Magazine article on SOA Data Access I recommend exposing Data Transfer Objects (DTOs) from the Data Access Layer (DAL). These objects should be Plain Old CLR Objects (POCOs) that are Persistent Ignorant (PI), eschewing traces of any particular...
Published
2009/6/22 2:49
by
革命
Filed under:
Entity Framework
,
POCO
,
T4
,
LINQ to SQL
NTier with Entity Framework 4 Beta 1 - (VS2010 / .Net 4.0 Beta 1)
Introduction My blog has been feeling very neglected after my move to the US and I thought with the recent release of Visual Studio 2010 / .Net Framework 4.0 Beta 1 it would be a good time to get back into a regular blogging rhythm. So for the first post...
Published
2009/6/6 10:33
by
革命
Filed under:
VS2010
,
WPF
,
EF4
,
POCO
,
T4
T4 Toolbox
You may have noticed that in my last couple of articles about T4 , the download links point to a CodePlex project called T4 Toolbox . I think it’s time to explain what this is all about. What is T4 Toolbox? T4 Toolbox is a set of ready-to...
Published
2009/6/5 19:13
by
革命
Filed under:
T4
Recent blog posts about T4 w
Here are some blog posts about code generation with T4 that caught my attention in July. I hope you find them useful. Damien Guard made several improvements in his LINQ to SQL template , including code generation based on .dbml file instead of SQL database...
Published
2009/6/5 19:11
by
革命
Filed under:
T4
T4: Extending the Generated Template Class by Mike Pagel
Mike Pagel recently posted an interesting article about T4 on CodeProject called “ T4: Extending the Generated Template Class “. In this article, Mike describes several approaches for implementing code generation logic - helper methods defined...
Published
2009/6/5 19:10
by
革命
Filed under:
T4
T4 template for generating SQL view from C# enumeration
Database tables often contain columns that store “codes”, or values with special meaning. In application code, these special values can be encapsulated as enumerations. This article demonstrates how to use T4 code generation templates and...
Published
2009/6/5 19:10
by
革命
Filed under:
T4
Test runner for T4 unit tests
I noticed a clear trend of increasing complexity in the T4 text templates I wrote over the last few months. For simple templates , especially those that generate C# code, simply compiling the generated code is good enough to test it. But as the complexity...
Published
2009/6/5 19:08
by
革命
Filed under:
T4
T4 Architecture
Text templates run within the constraints established by the T4 architecture. Well designed templates take advantage of the benefits offered by T4 and sometimes need to work around its limitations. Template Transformation Process Here is a collaboration...
Published
2009/6/5 19:07
by
革命
Filed under:
T4
T4 Template for Generating ADO.NET Entity Framework Stored Procedures
David DeWinter posted a great article about using T4 to generate stored procedures for ADO.NET entity data models . It includes a ready to use T4 template that will generate stored procedures for every .EDMX file in a given directory. Check it out. Entity...
Published
2009/6/5 19:04
by
革命
Filed under:
T4
T4 Template Design: Nested Template Class
Nested Template Class is one of T4 template design techniques that can be used to develop reusable templates. It defines the main template as a nested TextTransformation class in a class feature block . The nested class uses properties to define template...
Published
2009/6/5 19:03
by
革命
Filed under:
T4
T4 Template Design: Standalone Template
Standalone Template is one of T4 template design techniques that can be used to develop reusable templates. The main defines parameters as properties that retrieve their values from an external data store, such as CallContext or an XML file. The calling...
Published
2009/6/5 19:02
by
革命
Filed under:
T4
1
2
Next >