Промежуточное сохранение.

This commit is contained in:
Programmist73 2023-05-09 19:36:18 +04:00
parent 324a621815
commit 6cbdc42514
26 changed files with 67 additions and 1 deletions

View File

@ -2,5 +2,6 @@
<configuration>
<appSettings>
<add key="connectToDb" value="Host=192.168.56.103;Port=6000;Database=sit;Username=elegev;Password=user"/>
<add key="connectMongoDB" value="mongodb://127.0.0.1:27017" />
</appSettings>
</configuration>

View File

@ -11,6 +11,8 @@ namespace TransportCompanyContracts.BindingModels
{
public int Id { get; set; }
public string? MongoID { get; set; }
public string TypeCargo { get; set; } = string.Empty;
}
}

View File

@ -11,6 +11,8 @@ namespace TransportCompanyContracts.BindingModels
{
public int Id { get; set; }
public string? MongoId { get; set; }
public string Name { get; set; } = string.Empty;
public string Surname { get; set; } = string.Empty;

View File

@ -11,6 +11,8 @@ namespace TransportCompanyContracts.BindingModels
{
public int Id { get; set; }
public string? MongoId { get; set; }
public string Tranport { get; set; } = string.Empty;
}
}

View File

@ -11,6 +11,8 @@ namespace TransportCompanyContracts.BindingModels
{
public int Id {get; set;}
public string? MongoId { get; set; }
public string TransportationType { get; set; } = string.Empty;
}
}

View File

@ -11,6 +11,8 @@ namespace TransportCompanyContracts.BindingModels
{
public int Id { get; set; }
public string? MongoId { get; set; }
public int ClientId { get; set; }
public int CargoId { get; set; }

View File

@ -10,6 +10,8 @@ namespace TransportCompanyContracts.SearchModels
{
public int? Id { get; set; }
public string? MongoId { get; set; }
public string? TypeCargo { get; set; }
}
}

View File

@ -10,6 +10,8 @@ namespace TransportCompanyContracts.SearchModels
{
public int? Id { get; set; }
public string? MongoId { get; set; }
public string? Name { get; set; }
public string? Surname { get; set; }

View File

@ -10,6 +10,8 @@ namespace TransportCompanyContracts.SearchModels
{
public int? Id { get; set; }
public string? MongoId { get; set; }
public string? Tranport { get; set; }
}
}

View File

@ -10,6 +10,8 @@ namespace TransportCompanyContracts.SearchModels
{
public int? Id { get; set; }
public string? MongoId { get; set; }
public string? TransportationType { get; set; }
}
}

View File

@ -10,6 +10,8 @@ namespace TransportCompanyContracts.SearchModels
{
public int? Id { get; set; }
public string? MongoId { get; set; }
public int? ClientId { get; set; }
public DateTime? DateStart { get; set; }

View File

@ -22,5 +22,7 @@ namespace TransportCompanyContracts.StoragesContracts
CargoViewModel? Update(CargoBindingModel model);
CargoViewModel? Delete(CargoBindingModel model);
bool InsertFromPostgres(List<CargoViewModel> model);
}
}

View File

@ -26,5 +26,7 @@ namespace TransportCompanyContracts.StoragesContracts
ClientViewModel? Update(ClientBindingModel model);
ClientViewModel? Delete(ClientBindingModel model);
bool InsertFromPostgres(List<ClientViewModel> model);
}
}

View File

@ -22,5 +22,7 @@ namespace TransportCompanyContracts.StoragesContracts
TransportViewModel? Update(TransportBindingModel model);
TransportViewModel? Delete(TransportBindingModel model);
bool InsertFromPostgres(List<TransportViewModel> model);
}
}

View File

@ -22,5 +22,7 @@ namespace TransportCompanyContracts.StoragesContracts
TransportationViewModel? Update(TransportationBindingModel model);
TransportationViewModel? Delete(TransportationBindingModel model);
bool InsertFromPostgres(List<TransportationViewModel> model);
}
}

View File

@ -28,5 +28,7 @@ namespace TransportCompanyContracts.StoragesContracts
TruckingViewModel? Update(TruckingBindingModel model);
TruckingViewModel? Delete(TruckingBindingModel model);
bool InsertFromPostgres(List<TruckingViewModel> model);
}
}

View File

@ -12,6 +12,8 @@ namespace TransportCompanyContracts.ViewModels
{
public int Id { get; set; }
public string? MongoId { get; set; }
[DisplayName("Тип груза")]
public string TypeCargo {get; set; } = string.Empty;
}

View File

@ -12,6 +12,8 @@ namespace TransportCompanyContracts.ViewModels
{
public int Id { get; set; }
public string? MongoId { get; set; }
[DisplayName("Имя")]
public string Name { get; set; } = string.Empty;

View File

@ -12,6 +12,8 @@ namespace TransportCompanyContracts.ViewModels
{
public int Id { get; set; }
public string? MongoId { get; set; }
[DisplayName("Вид транспорта")]
public string Tranport { get; set; } = string.Empty;
}

View File

@ -12,6 +12,8 @@ namespace TransportCompanyContracts.ViewModels
{
public int Id { get; set; }
public string? MongoId { get; set; }
[DisplayName("Тип транспортировки")]
public string TransportationType { get; set; } = string.Empty;
}

View File

@ -12,6 +12,8 @@ namespace TransportCompanyContracts.ViewModels
{
public int Id { get; set; }
public string? MongoId { get; set; }
public int ClientId { get; set; }
[DisplayName("Имя")]

View File

@ -114,5 +114,10 @@ namespace TransportCompanyDatabaseImplements.Implements
throw;
}
}
public bool InsertFromPostgres(List<CargoViewModel> model)
{
throw new NotImplementedException();
}
}
}

View File

@ -195,5 +195,10 @@ namespace TransportCompanyDatabaseImplements.Implements
return null;
}
}
public bool InsertFromPostgres(List<ClientViewModel> model)
{
throw new NotImplementedException();
}
}
}

View File

@ -114,5 +114,10 @@ namespace TransportCompanyDatabaseImplements.Implements
throw;
}
}
public bool InsertFromPostgres(List<TransportViewModel> model)
{
throw new NotImplementedException();
}
}
}

View File

@ -114,5 +114,10 @@ namespace TransportCompanyDatabaseImplements.Implements
throw;
}
}
public bool InsertFromPostgres(List<TransportationViewModel> model)
{
throw new NotImplementedException();
}
}
}

View File

@ -239,5 +239,10 @@ namespace TransportCompanyDatabaseImplements.Implements
return stopwatch.ElapsedMilliseconds.ToString();
}
public bool InsertFromPostgres(List<TruckingViewModel> model)
{
throw new NotImplementedException();
}
}
}