Промежуточное сохранение.
This commit is contained in:
parent
324a621815
commit
6cbdc42514
@ -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>
|
@ -11,6 +11,8 @@ namespace TransportCompanyContracts.BindingModels
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string? MongoID { get; set; }
|
||||
|
||||
public string TypeCargo { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -11,6 +11,8 @@ namespace TransportCompanyContracts.BindingModels
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string? MongoId { get; set; }
|
||||
|
||||
public string Tranport { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
@ -11,6 +11,8 @@ namespace TransportCompanyContracts.BindingModels
|
||||
{
|
||||
public int Id {get; set;}
|
||||
|
||||
public string? MongoId { get; set; }
|
||||
|
||||
public string TransportationType { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
@ -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; }
|
||||
|
@ -10,6 +10,8 @@ namespace TransportCompanyContracts.SearchModels
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
|
||||
public string? MongoId { get; set; }
|
||||
|
||||
public string? TypeCargo { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -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; }
|
||||
|
@ -10,6 +10,8 @@ namespace TransportCompanyContracts.SearchModels
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
|
||||
public string? MongoId { get; set; }
|
||||
|
||||
public string? Tranport { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -10,6 +10,8 @@ namespace TransportCompanyContracts.SearchModels
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
|
||||
public string? MongoId { get; set; }
|
||||
|
||||
public string? TransportationType { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -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; }
|
||||
|
@ -22,5 +22,7 @@ namespace TransportCompanyContracts.StoragesContracts
|
||||
CargoViewModel? Update(CargoBindingModel model);
|
||||
|
||||
CargoViewModel? Delete(CargoBindingModel model);
|
||||
|
||||
bool InsertFromPostgres(List<CargoViewModel> model);
|
||||
}
|
||||
}
|
||||
|
@ -26,5 +26,7 @@ namespace TransportCompanyContracts.StoragesContracts
|
||||
ClientViewModel? Update(ClientBindingModel model);
|
||||
|
||||
ClientViewModel? Delete(ClientBindingModel model);
|
||||
|
||||
bool InsertFromPostgres(List<ClientViewModel> model);
|
||||
}
|
||||
}
|
||||
|
@ -22,5 +22,7 @@ namespace TransportCompanyContracts.StoragesContracts
|
||||
TransportViewModel? Update(TransportBindingModel model);
|
||||
|
||||
TransportViewModel? Delete(TransportBindingModel model);
|
||||
|
||||
bool InsertFromPostgres(List<TransportViewModel> model);
|
||||
}
|
||||
}
|
||||
|
@ -22,5 +22,7 @@ namespace TransportCompanyContracts.StoragesContracts
|
||||
TransportationViewModel? Update(TransportationBindingModel model);
|
||||
|
||||
TransportationViewModel? Delete(TransportationBindingModel model);
|
||||
|
||||
bool InsertFromPostgres(List<TransportationViewModel> model);
|
||||
}
|
||||
}
|
||||
|
@ -28,5 +28,7 @@ namespace TransportCompanyContracts.StoragesContracts
|
||||
TruckingViewModel? Update(TruckingBindingModel model);
|
||||
|
||||
TruckingViewModel? Delete(TruckingBindingModel model);
|
||||
|
||||
bool InsertFromPostgres(List<TruckingViewModel> model);
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -12,6 +12,8 @@ namespace TransportCompanyContracts.ViewModels
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string? MongoId { get; set; }
|
||||
|
||||
public int ClientId { get; set; }
|
||||
|
||||
[DisplayName("Имя")]
|
||||
|
@ -114,5 +114,10 @@ namespace TransportCompanyDatabaseImplements.Implements
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
public bool InsertFromPostgres(List<CargoViewModel> model)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -195,5 +195,10 @@ namespace TransportCompanyDatabaseImplements.Implements
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public bool InsertFromPostgres(List<ClientViewModel> model)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -114,5 +114,10 @@ namespace TransportCompanyDatabaseImplements.Implements
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
public bool InsertFromPostgres(List<TransportViewModel> model)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -114,5 +114,10 @@ namespace TransportCompanyDatabaseImplements.Implements
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
public bool InsertFromPostgres(List<TransportationViewModel> model)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -239,5 +239,10 @@ namespace TransportCompanyDatabaseImplements.Implements
|
||||
|
||||
return stopwatch.ElapsedMilliseconds.ToString();
|
||||
}
|
||||
|
||||
public bool InsertFromPostgres(List<TruckingViewModel> model)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user