I'm trying to generate DTO's with T4. I found a great blog post that does exactly what i'm looking for but it explodes on Nullable data types.
This generates code with Nullable types like below
[DataMember(Name="terminationCFDate")]
public System.Nullable`1[[System.DateTime, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] TerminationCFDate
{
get; set;
}
I am looking for something like below
[DataMember(Name="terminationCFDate")]
public Nullable<DateTime> TerminationCFDate
{
get; set;
}
I am very new to T4. Any suggestions?