Book Image

ServiceStack 4 Cookbook

Book Image

ServiceStack 4 Cookbook

Overview of this book

Table of Contents (18 chapters)
ServiceStack 4 Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Starting with an existing database with OrmLite and T4 templates


Starting with a new technology on a new project makes things much more straightforward. However, more often than not, you might find yourself trying to leverage the advantages of new technologies and frameworks for an existing system that has to be maintained well into the future. In this recipe, we will work through the process of starting with an existing database and exposing that data through services using ServiceStack. We will be working with the constraint that the existing data structure cannot be altered by the application to simulate a real-world situation of using an existing production database.

Getting ready

To get started, you'll need a new project either created using a template from the ServiceStackVS extension or by following the Creating a ServiceStack solution with Visual Studio and NuGet section in Appendix A, Getting Started. This recipe will also require that an installation of MS SQL Server is installed...