Listviews of Products and users
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
using AdventureWorks.DataLayer;
|
||||
using AdventureWorks.EntityLayer;
|
||||
using AdventureWorks.MAUI.CommandClasses;
|
||||
using AdventureWorks.MAUI.Views;
|
||||
using AdventureWorks.ViewModelLayer;
|
||||
using Common.Library;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
@ -27,9 +27,17 @@ namespace AdventureWorks.MAUI
|
||||
builder.Services.AddScoped<IRepository<User>, UserRepository>();
|
||||
builder.Services.AddScoped<IRepository<EntityLayer.Color>, ColorRepository>();
|
||||
builder.Services.AddScoped<IRepository<PhoneType>, PhoneTypeRepository>();
|
||||
builder.Services.AddScoped<UserViewModel>();
|
||||
|
||||
builder.Services.AddScoped<UserViewModelCommands>();
|
||||
builder.Services.AddScoped<UserDetailView>();
|
||||
#if WINDOWS
|
||||
builder.Services.AddScoped<UserListView>();
|
||||
|
||||
builder.Services.AddScoped<IRepository<Product>, ProductRepository>();
|
||||
builder.Services.AddScoped<ProductViewModelCommands>();
|
||||
builder.Services.AddScoped<ProductDetailView>();
|
||||
builder.Services.AddScoped<ProductListView>();
|
||||
|
||||
#if XWINDOWS
|
||||
SetWindowOptions(builder);
|
||||
SetWindowHandlers();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user