adjust code
add T4 template for DbContext auto generation