olegsych

Stories kicked by olegsych

Using T4 Command-Line Parameters - Generating NHibernate Magic Strings(broloco.blogspot.com)

submitted by FlukeFanFlukeFan(279) 3 years, 6 months ago

Describes how to use T4 (TextTransform) command line parameters (in this case to generate the 'magic strings' used by NHibernate ICriteria queries). read more...

add a comment |category: |Views: 90

tags: another

Code generation using MS codename "Oslo", T4 VS and VS Custom Tool(blog.devarchive.net)

submitted by kirchikirchi(240) 3 years, 6 months ago

This post shows how you can create your own language using M Grammar from Oslo SDK, create T4 templates that will generate code artifacts by parsing the output data graph created by M Grammar language parser and finally how to use Visual Studio Custom tool to make possible the generation of multiply artifacts for single DSL file and placing them under that file in Visual Studio files hierarchy. read more...

add a comment |category: |Views: 114

tags: another

T4 (Text Template Transformation Toolkit) Code Generation - Best Kept (hanselman.com)

submitted by pete.mpete.m(85) 3 years, 7 months ago

Very handy stuff indeed read more...

add a comment |category: |Views: 440

tags: another

POCO and Unity Application Block Part II(randypatterson.com)

submitted by olegsycholegsych(335) 3 years, 7 months ago

In this post, Randy Patterson shows how to use property injection in Unity application block with plain CLR objects using programmatic and XML-based configuration. read more...

add a comment |category: |Views: 37

tags: another

Creating complex code generators(olegsych.com)

submitted by olegsycholegsych(335) 3 years, 7 months ago

This article is a part of a series that introduces code generation using C# and Text Templates (also known as T4 Templates) in Visual Studio; explains how to create reusable templates and combine them in complex code generators. read more...

add a comment |category: |Views: 45

tags: another

POCO and Unity Application Block - Constructor Injection(randypatterson.com)

submitted by rpattersonrpatterson(745) 3 years, 8 months ago

This article will walk you through setting up the Unity Application Block for classes that you cannot or should not change. The Unity Application Block has a rich API and robust XML configuration that will allow you to setup your objects without “polluting” them with Unity specific Attributes. In this article we will explore setting up constructor Injection using the Unity API and Configuration files. read more...

add a comment |category: |Views: 156

tags: another

Creating reusable code generation templates(olegsych.com)

submitted by olegsycholegsych(335) 3 years, 8 months ago

This article is a part of a series that introduces code generation using C# and Text Templates (also known as T4 Templates) in Visual Studio; explains how to create reusable templates and combine them in complex code generators. read more...

add a comment |category: |Views: 54

tags: another

Debugging Code Generation Files(olegsych.com)

submitted by olegsycholegsych(335) 3 years, 8 months ago

This article is a part of a series that introduces code generation using C# and Text Templates (also known as T4 Templates) in Visual Studio; explains how to create reusable templates and combine them in complex code generators. read more...

add a comment |category: |Views: 5

tags: another

Troubleshooting Code Generation Errors(olegsych.com)

submitted by olegsycholegsych(335) 3 years, 8 months ago

This article is a part of a series that introduces code generation using C# and Text Templates (also known as T4 Templates) in Visual Studio; explains how to create reusable templates and combine them in complex code generators. read more...

add a comment |category: |Views: 4

tags: another

Creating your first code generator(olegsych.com)

submitted by olegsycholegsych(335) 3 years, 8 months ago

This is the first post in a series that introduces code generation using C# and Text Templates (also known as T4 Templates) in Visual Studio; explains how to create reusable templates and combine them in complex code generators. read more...

add a comment |category: |Views: 20

tags: another

Extending T4: <#@ xsd #> directive(olegsych.com)

submitted by olegsycholegsych(335) 3 years, 9 months ago

This article describes a custom T4 directive processor for converting XML schema definitions into .NET classes, which allows using strongly-typed code to extract information from various XML files. In particular, this simplifies creating custom T4 code generation templates for LINQ to SQL .dbml files and ADO.NET Entity Framework .edmx files. The article includes links to ready to use xsd directive processor and sample source code. read more...

add a comment |category: |Views: 81

tags: another

Simplifying WCF: Using Exceptions as Faults(olegsych.com)

submitted by olegsycholegsych(335) 3 years, 10 months ago

This article describes an overview of error handling in WCF, discusses its advantages and drawbacks and shows how to extend WCF to marshal .NET exceptions as SOAP faults. Ready-to-use source code and examples are available for download. read more...

add a comment |category: |Views: 26

tags: another

T4 template for generating SQL view from C# enumeration(olegsych.com)

submitted by olegsycholegsych(335) 3 years, 10 months ago

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 Visual Studio CodeModel API to generate SQL views that encapsulate the special values for use in SQL code. read more...

add a comment |category: |Views: 132

tags: another

Test runner for T4 unit tests(olegsych.com)

submitted by olegsycholegsych(335) 3 years, 11 months ago

This post shows how to create unit tests that run during T4 template transformation. This approach allows creating automated tests for template code that relies on specific capabilities of a T4 host, such as access to Visual Studio extensibility APIs. The post includes a ready to use test runner for T4 unit tests. read more...

add a comment |category: |Views: 9

tags: another

T4 Architecture(olegsych.com)

submitted by olegsycholegsych(335) 4 years ago

This article provides an in-depth look at the architecture of T4 template transformation process, discusses some constraints that limit template design, describes techniques that can be used to work around these limitations and points out some (sometimes undocumented) mechanisms for making your T4 templates more powerful. read more...

add a comment |category: |Views: 24

tags: another

Eight Simple Tips To Improve Your Presentation Skills(blog.briandicroce.com)

submitted by jankojanko(2555) 4 years ago

Recently, a user group held a conference whose subject was Domain-Driven Design with nHibernate. Now, this is a really cool topic of discussion! So, I decided to attend the conference in order to improve my perspective and knowledge on the subject. Little did I know that the speaker was an introverted programmer who greatly lacked in public speaking skills. Many people, including myself, left early, as the presentation became unbearably tedious and awkward. read more...

add a comment |category: |Views: 349

tags: another