Repository navigation
Expand file tree
/
Copy pathNotlar.txt
More file actions
75 lines (62 loc) · 2.12 KB
/
Copy pathNotlar.txt
File metadata and controls
75 lines (62 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
Projede Yapılacaklar;
*** Konu:Bilgisayar Parcalari
*** UI:MVC Core 6
*** Entity FrameworkCore
*** IEntityTypeConfiguration kullanımı...(FluentAPI)
*** Onion Katmanlı Modeli kullanılacak
*** Dll olusturma (Katmanlar icin)
*** Generic Repository kullanılacak...
*** Interface kullanılacak
*** Identity ile Uyelik sistemi(Admin,Rol)
*** AutoMapper kullanımı
*** Sepet ve Stok kullanımı...
*** 4-veya 5 tablo olacak
*** Identity kullanımında Idler int olmali...
*** Veritabindan silme islemi olmayacak...(Aktif/Pasif)
*** DTO(I,U), ViewModel(SELECT)
---------------
Analiz:
Product(ProductID, BrandID,CategoryID, Name, Price,Stock,ProductImage, Detail )
Category(CategoryID, Name)
Brand(BrandID, Name)
Model(ModelID, BrandID,CategoryID, ModelName)
ShoppingCart(ID, ProductID, Amount,UserID)
Invoice(ID,UserID,Date, )
InvoiceDetail(ID, InvoiceID, ProductID, Amount,Price )
+ IdentityTables
21/10/2023
*** Entities, Enums
*** Nav.Props.
*** Infrasutructure Layer
*** Domain Katmanını referans olarak ver...
*** EFCore yukle...
*** DAL(Context => IdentityDbContext)
*** DbSet tanımlamalari...
**** override OnModelCreating() , OnModelConfiguring()
*** FluentAPI => IEntityTypeConfiguration
*** Initial values...
*** Migration
*** Update-Database
TODO
***Repository .....
22/10/2023
***
28/10/2023
*** userRoles tablosunda admin yok 1 1 !!!!
***AppUser
*** Login,LogOut, Register
*** Automapper kullanımı gosterilecek...
*** UI Katmanını olustur...
*** Application katmanını refarans olarak ver...
*** DbContext sınıfını ve Identity ayarlarını yap...
*** appsettings.json dosyasına connection string'i yaz...
Automapper kullanımı
*** Nuget uerinden gerekli paketi yukle...
Automapper.Extensions.Microsoft.DependencyInjection
*** Application katmanında
Bir klasor olustur içerisine bir sınıf olustur...
Profile sınıfından bu sınıfı türet...
ctor => içerisinde Map tanılamalarını yapınız...
*** program.cs tarafında (IoC Container için)
buider.Services.AddAutoMapper(x=>x.AddProfile(new Mapper()))
!!! Login oldugunda Rol bilgisi gelmiyor....