Escali License control 1
|
ProductService class inserts and updates Product in the Database Mer...
Public medlemsfunksjoner | |
ProductService (DataContext db) | |
async Task< List< Product > > | GetAllProducts () |
Read all Products from database Mer... | |
async Task< List< Product > > | GetAllProductWithChildren () |
Read all Products from database included referenced tables Mer... | |
async Task< Product > | GetProductById (int id) |
Read one Product with id from database Mer... | |
async Task< Product > | AddProduct (Product product) |
Adds a Product to the database Mer... | |
async Task< Product > | UpdateProduct (Product product) |
Updates changes on a Product in the database Mer... | |
Private attributter | |
readonly DataContext | _db |
ProductService class inserts and updates Product in the Database
Definisjon på linje 11 i filen ProductService.cs.
Escali.LicenseControl.DataAccess.Services.ProductService.ProductService | ( | DataContext | db | ) |
Definisjon på linje 15 i filen ProductService.cs.
async Task< Product > Escali.LicenseControl.DataAccess.Services.ProductService.AddProduct | ( | Product | product | ) |
Adds a Product to the database
product |
DbUpdateException | Database error |
Definisjon på linje 68 i filen ProductService.cs.
async Task< List< Product > > Escali.LicenseControl.DataAccess.Services.ProductService.GetAllProducts | ( | ) |
Read all Products from database
Definisjon på linje 24 i filen ProductService.cs.
async Task< List< Product > > Escali.LicenseControl.DataAccess.Services.ProductService.GetAllProductWithChildren | ( | ) |
Read all Products from database included referenced tables
Definisjon på linje 34 i filen ProductService.cs.
async Task< Product > Escali.LicenseControl.DataAccess.Services.ProductService.GetProductById | ( | int | id | ) |
Read one Product with id from database
id |
Product with corresponding id
Null if Product with id is not found
Definisjon på linje 56 i filen ProductService.cs.
async Task< Product > Escali.LicenseControl.DataAccess.Services.ProductService.UpdateProduct | ( | Product | product | ) |
Updates changes on a Product in the database
product |
DbUpdateException | Database error |
DbUpdateConcurrencyException | Id doesn't exist |
Definisjon på linje 86 i filen ProductService.cs.
|
private |
Definisjon på linje 13 i filen ProductService.cs.