Skip to content

Commit

Permalink
Added Product and Base Entity
Browse files Browse the repository at this point in the history
  • Loading branch information
iammukeshm committed Jun 17, 2020
1 parent 526e412 commit b85e7f8
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
11 changes: 11 additions & 0 deletions Domain/Common/BaseEntity.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Domain.Common
{
public abstract class BaseEntity
{
public int Id { get; set; }
}
}
15 changes: 15 additions & 0 deletions Domain/Entities/Product.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using Domain.Common;
using System;
using System.Collections.Generic;
using System.Text;

namespace Domain.Entities
{
public class Product : BaseEntity
{
public string Name { get; set; }
public string Barcode { get; set; }
public string Description { get; set; }
public decimal Rate { get; set; }
}
}
4 changes: 2 additions & 2 deletions WebApi/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "weatherforecast",
"launchUrl": "swagger",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"WebApi": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "weatherforecast",
"launchUrl": "swagger",
"applicationUrl": "https://localhost:5001;http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
Expand Down

0 comments on commit b85e7f8

Please sign in to comment.