правочки
This commit is contained in:
parent
afedbfcc22
commit
e7a3b79ec8
@ -42,6 +42,8 @@ namespace ServiceStationDatabaseImplement.Models
|
|||||||
[ForeignKey("DefectId")]
|
[ForeignKey("DefectId")]
|
||||||
public virtual List<CarDefect> Cars { get; set; } = new();
|
public virtual List<CarDefect> Cars { get; set; } = new();
|
||||||
|
|
||||||
|
//внешний ключ к сущности Сани
|
||||||
|
|
||||||
public static Defect? Create(ServiceStationDatabase context, DefectBindingModel model)
|
public static Defect? Create(ServiceStationDatabase context, DefectBindingModel model)
|
||||||
{
|
{
|
||||||
if (model == null) return null;
|
if (model == null) return null;
|
||||||
|
@ -42,6 +42,8 @@ namespace ServiceStationDatabaseImplement.Models
|
|||||||
[ForeignKey("TechnicalWorkId")]
|
[ForeignKey("TechnicalWorkId")]
|
||||||
public virtual List<CarTechnicalWork> Cars { get; set; } = new();
|
public virtual List<CarTechnicalWork> Cars { get; set; } = new();
|
||||||
|
|
||||||
|
//внешний ключ у сущности Сани
|
||||||
|
|
||||||
public static TechnicalWork? Create(ServiceStationDatabase context, TechnicalWorkBindingModel model)
|
public static TechnicalWork? Create(ServiceStationDatabase context, TechnicalWorkBindingModel model)
|
||||||
{
|
{
|
||||||
if (model == null) return null;
|
if (model == null) return null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user