ShopPlatform.Web
1.0.0.0
농산물, 소프트웨어 라이선스와 개발 용역을 직접 판매하는 CodeMaru 직영 쇼핑몰입니다.
Toggle main menu visibility
로딩중...
검색중...
일치하는것 없음
Product.cs
이 파일의 문서화 페이지로 가기
1
namespace
ShopPlatform.Models
;
2
11
public
sealed
class
Product
12
{
21
public
int
Id
{
get
;
set
; }
30
public
string
Name
{
get
;
set
; } =
string
.Empty;
39
public
string
Description
{
get
;
set
; } =
string
.Empty;
48
public
decimal
Price
{
get
;
set
; }
57
public
int
Stock
{
get
;
set
; }
66
public
bool
IsUnlimitedStock
{
get
;
set
; } =
false
;
// true면 재고 수량 무시
75
public
string
?
ImagePath
{
get
;
set
; }
84
public
string
Category
{
get
;
set
; } =
string
.Empty;
93
public
bool
IsActive
{
get
;
set
; } =
true
;
102
public
bool
IsFeatured
{
get
;
set
; } =
false
;
111
public
int
SortOrder
{
get
;
set
; } = 0;
120
public
string
DetailHtml
{
get
;
set
; } =
string
.Empty;
// 상품 상세 텍스트 (HTML)
129
public
string
VideoUrl
{
get
;
set
; } =
string
.Empty;
// 유튜브 링크 또는 업로드 동영상 경로
138
public
string
DetailImagesJson
{
get
;
set
; } =
"[]"
;
// 상세 이미지 목록 (JSON 배열)
147
public
DateTime
CreatedAt
{
get
;
set
; } = DateTime.UtcNow;
148
157
public
bool
IsAvailable
=>
IsUnlimitedStock
||
Stock
> 0;
158
}
ShopPlatform.Models
Definition
CartItem.cs:1
ShopPlatform.Models.Product
Definition
Product.cs:12
ShopPlatform.Models.Product.IsFeatured
bool IsFeatured
Definition
Product.cs:102
ShopPlatform.Models.Product.Name
string Name
Definition
Product.cs:30
ShopPlatform.Models.Product.DetailImagesJson
string DetailImagesJson
Definition
Product.cs:138
ShopPlatform.Models.Product.Id
int Id
Definition
Product.cs:21
ShopPlatform.Models.Product.VideoUrl
string VideoUrl
Definition
Product.cs:129
ShopPlatform.Models.Product.Stock
int Stock
Definition
Product.cs:57
ShopPlatform.Models.Product.SortOrder
int SortOrder
Definition
Product.cs:111
ShopPlatform.Models.Product.DetailHtml
string DetailHtml
Definition
Product.cs:120
ShopPlatform.Models.Product.CreatedAt
DateTime CreatedAt
Definition
Product.cs:147
ShopPlatform.Models.Product.Category
string Category
Definition
Product.cs:84
ShopPlatform.Models.Product.Description
string Description
Definition
Product.cs:39
ShopPlatform.Models.Product.IsUnlimitedStock
bool IsUnlimitedStock
Definition
Product.cs:66
ShopPlatform.Models.Product.Price
decimal Price
Definition
Product.cs:48
ShopPlatform.Models.Product.ImagePath
string? ImagePath
Definition
Product.cs:75
ShopPlatform.Models.Product.IsActive
bool IsActive
Definition
Product.cs:93
ShopPlatform.Models.Product.IsAvailable
bool IsAvailable
Definition
Product.cs:157
Models
Product.cs
다음에 의해 생성됨 :
1.17.0