Skip to content

Commit 5b4a8e5

Browse files
Added models User, Product, Cart
1 parent 5af63c9 commit 5b4a8e5

File tree

9 files changed

+62
-4
lines changed

9 files changed

+62
-4
lines changed

YangiBozor.Data/YangiBozor.Data.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>net7.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
6-
<Nullable>enable</Nullable>
6+
<Nullable>disable</Nullable>
77
</PropertyGroup>
88

99
</Project>

YangiBozor.Domain/Comons/Auditable.cs

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System.ComponentModel.DataAnnotations;
2+
using System.ComponentModel.DataAnnotations.Schema;
3+
4+
namespace YangiBozor.Domain.Comons;
5+
6+
public class Auditable
7+
{
8+
[Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
9+
public long Id { get; set; }
10+
public DateTime CreatedAt { get; set; }
11+
public DateTime? UpdatedAt { get; set; }
12+
}

YangiBozor.Domain/Entities/Cart.cs

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace YangiBozor.Domain.Entities
8+
{
9+
internal class Cart
10+
{
11+
}
12+
}

YangiBozor.Domain/Entities/Product.cs

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace YangiBozor.Domain.Entities
8+
{
9+
internal class Product
10+
{
11+
}
12+
}

YangiBozor.Domain/Entities/User.cs

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
namespace YangiBozor.Domain.Entities;
2+
3+
public class User
4+
{
5+
public string FirstName { get; set; }
6+
}

YangiBozor.Domain/Enums/UserRole.cs

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace YangiBozor.Domain.Enums
8+
{
9+
internal class UserRole
10+
{
11+
}
12+
}

YangiBozor.Domain/YangiBozor.Domain.csproj

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
<PropertyGroup>
44
<TargetFramework>net7.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
6-
<Nullable>enable</Nullable>
6+
<Nullable>disable</Nullable>
77
</PropertyGroup>
88

9+
<ItemGroup>
10+
<Folder Include="Enums\" />
11+
</ItemGroup>
12+
913
</Project>

YangiBozor.Service/YangiBozor.Service.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>net7.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
6-
<Nullable>enable</Nullable>
6+
<Nullable>disable</Nullable>
77
</PropertyGroup>
88

99
</Project>

YangiBozor.Web/YangiBozor.Web.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>net7.0</TargetFramework>
5-
<Nullable>enable</Nullable>
5+
<Nullable>disable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>
88

0 commit comments

Comments
 (0)