Manage Library for o Search o Install / Update / Uninstall o Execute library command (PowerShell) VS - > Menu -> Tools -> Extension Manager -> Find NuGet and install How to use o Solution->Project -> right click on +Reference -> nuget package o Package Manager Console • Install-Package <package name> • Uninstall-Package <package name> • Get-Package • Update-Package //all available
Object Relational Mapping POCO Convention Over Configuration LINQ Support Working with various database (3rd party driver) Fluent API to fully customize the persistence mapping Database Installation Database Migration
Encapsulate data access Simple collection like interface Should only return aggregate roots Provide for adding and removing entities Provide methods to select objects based on some criteria Allow easy substitution
Motivation – Logical layers separate the major concerns ofthe application: 1. Modularity, low-coupling – easier maintenance. 2. Business-logic is separated from presentation – reuse. 3. General technical services, e.g., database, are separated from the business-logic – reused, replaced. 4. Low coupling, separation of concerns – evolving functionality, system scaling-up, adapt to new technologies.
Dependency Injection - one example of IoC design principle. Also known as the Hollywood Principle o Don’t call us, we’ll call you! Good OO Systems – organised as web of interacting objects Goal – High cohesion, low coupling Advantages of low coupling o Extensibility o Testability o ReusabilityPS>Not so easy to achieve!