O'Reilly logo

Learning AngularJS for .NET Developers by Alex Pop

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding database persistence

All of the code examples we have explored so far have used in-memory data stores that are recreated each time the application restarts. It is now time to add support for database persistence so we can progress the main application example towards a production-ready status. We also need to prepare for the next chapter; it will cover testing-related topics that need the database persistence functionality to be in place.

The ServiceStack framework comes with built-in functionality for lightweight ORM functionality in the ServiceStack.OrmLite library. There are established ORM libraries and frameworks, such as Entity Framework and NHibernate, that provide mapping between the .NET type system and relational database objects. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required