DTO mapping from Entity Framework Class


public [a-zA-Z]+ ([a-zA-Z_0-9]+).* 
--> 
dt.\1 = dr.\1,

DTO mapping for nullable types


dt.\1 = dr.\1.HasValue ? dr.\1 : null;

dt.\1 = (DateTime) dr.\1.HasValue ? dr.\1 : DateTime.MinValue;

Regular Expressions 101