create DataModels
This commit is contained in:
parent
2d75dc699e
commit
1e653e058a
@ -1,5 +1,4 @@
|
|||||||
|
using FactoryDataModels.Enums;
|
||||||
using FactoryDataModels.Enums;
|
|
||||||
|
|
||||||
namespace FactoryDataModels.Models
|
namespace FactoryDataModels.Models
|
||||||
{
|
{
|
||||||
|
13
Factory/FactoryDataModels/Models/IMachineModel.cs
Normal file
13
Factory/FactoryDataModels/Models/IMachineModel.cs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
namespace FactoryDataModels.Models
|
||||||
|
{
|
||||||
|
public interface IMachineModel : IId
|
||||||
|
{
|
||||||
|
string Name { get; set; }
|
||||||
|
|
||||||
|
DateTime ExploitationStartDate { get; set; }
|
||||||
|
|
||||||
|
int Lifetime { get; set; }
|
||||||
|
|
||||||
|
int ClientId { get; set; }
|
||||||
|
}
|
||||||
|
}
|
13
Factory/FactoryDataModels/Models/IProductModel.cs
Normal file
13
Factory/FactoryDataModels/Models/IProductModel.cs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
namespace FactoryDataModels.Models
|
||||||
|
{
|
||||||
|
public interface IProductModel : IId
|
||||||
|
{
|
||||||
|
string Name { get; set; }
|
||||||
|
|
||||||
|
double Price { get; set; }
|
||||||
|
|
||||||
|
int ClientId { get; set; }
|
||||||
|
|
||||||
|
int RequirementId { get; set; }
|
||||||
|
}
|
||||||
|
}
|
13
Factory/FactoryDataModels/Models/IRequirementModel.cs
Normal file
13
Factory/FactoryDataModels/Models/IRequirementModel.cs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
namespace FactoryDataModels.Models
|
||||||
|
{
|
||||||
|
public interface IRequirementModel : IId
|
||||||
|
{
|
||||||
|
string Name { get; set; }
|
||||||
|
|
||||||
|
string Description { get; set; }
|
||||||
|
|
||||||
|
int Lifetime { get; set; }
|
||||||
|
|
||||||
|
int ClientId { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@ -10,6 +10,6 @@
|
|||||||
|
|
||||||
int ClientId { get; }
|
int ClientId { get; }
|
||||||
|
|
||||||
//Dictionary<int, (IProductModel, int)> WorkpieceProducts { get; }
|
Dictionary<int, (IProductModel, int)> WorkpieceProducts { get; }
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user