Back to T4

We generate our web api. This saves time and makes access uniform. But there are some rules we have to obey to get this working.

With Entity Framework Model First (edmx) we generate our data layer. By customising the template we add an interface and some extra features for better abstraction. The model classes will become our Data Transfer Objects.

Following the Scott Hanselman blogpost we edited the mvc template to generate the web api as we like it to be. During the transformation we query the database for indexes and use that information to generate the queries.

Thanks to “old” techniques as T4 we can automate our “new” technology. 😉maxresdefault

About erictummers

Working in a DevOps team is the best thing that happened to me. I like challenges and sharing the solutions with others. On my blog I’ll mostly post about my work, but expect an occasional home project, productivity tip and tooling review.
This entry was posted in Development, Tooling and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.