Update LiteDb, but KO bdd
This commit is contained in:
@@ -48,8 +48,8 @@ namespace skydiveLogs_api.Data
|
||||
return result;
|
||||
}
|
||||
|
||||
private readonly IDataProvider _dataProvider;
|
||||
private readonly IDataProvider _dataProvider;
|
||||
|
||||
private readonly LiteCollection<Aircraft> _col;
|
||||
private readonly ILiteCollection<Aircraft> _col;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,6 +50,6 @@ namespace skydiveLogs_api.Data
|
||||
|
||||
private readonly IDataProvider _dataProvider;
|
||||
|
||||
private readonly LiteCollection<DropZone> _col;
|
||||
private readonly ILiteCollection<DropZone> _col;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,6 +50,6 @@ namespace skydiveLogs_api.Data
|
||||
|
||||
private readonly IDataProvider _dataProvider;
|
||||
|
||||
private readonly LiteCollection<Gear> _col;
|
||||
private readonly ILiteCollection<Gear> _col;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,18 +7,18 @@ namespace skydiveLogs_api.Data.Interface
|
||||
{
|
||||
public interface IDataProvider
|
||||
{
|
||||
LiteCollection<T> GetCollection<T>();
|
||||
ILiteCollection<T> GetCollection<T>();
|
||||
|
||||
void Close();
|
||||
|
||||
LiteCollection<Aircraft> CollOfAircraft { get; }
|
||||
ILiteCollection<Aircraft> CollOfAircraft { get; }
|
||||
|
||||
LiteCollection<DropZone> CollOfDropZone { get; }
|
||||
ILiteCollection<DropZone> CollOfDropZone { get; }
|
||||
|
||||
LiteCollection<Gear> CollOfGear { get; }
|
||||
ILiteCollection<Gear> CollOfGear { get; }
|
||||
|
||||
LiteCollection<JumpType> CollOfJumpType { get; }
|
||||
ILiteCollection<JumpType> CollOfJumpType { get; }
|
||||
|
||||
LiteCollection<Jump> CollOfJump { get; }
|
||||
ILiteCollection<Jump> CollOfJump { get; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,6 +55,6 @@ namespace skydiveLogs_api.Data
|
||||
|
||||
private readonly IDataProvider _dataProvider;
|
||||
|
||||
private readonly LiteCollection<Jump> _col;
|
||||
private readonly ILiteCollection<Jump> _col;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,6 +50,6 @@ namespace skydiveLogs_api.Data
|
||||
|
||||
private readonly IDataProvider _dataProvider;
|
||||
|
||||
private readonly LiteCollection<JumpType> _col;
|
||||
private readonly ILiteCollection<JumpType> _col;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace skydiveLogs_api.Data
|
||||
BsonMapper.Global.Entity<Jump>().DbRef(x => x.Gear, "Gear");
|
||||
}
|
||||
|
||||
public LiteCollection<T> GetCollection<T>()
|
||||
public ILiteCollection<T> GetCollection<T>()
|
||||
{
|
||||
return _db.GetCollection<T>();
|
||||
}
|
||||
@@ -28,14 +28,14 @@ namespace skydiveLogs_api.Data
|
||||
|
||||
private readonly LiteDatabase _db;
|
||||
|
||||
public LiteCollection<Aircraft> CollOfAircraft => _db.GetCollection<Aircraft>();
|
||||
public ILiteCollection<Aircraft> CollOfAircraft => _db.GetCollection<Aircraft>();
|
||||
|
||||
public LiteCollection<DropZone> CollOfDropZone => _db.GetCollection<DropZone>();
|
||||
public ILiteCollection<DropZone> CollOfDropZone => _db.GetCollection<DropZone>();
|
||||
|
||||
public LiteCollection<Gear> CollOfGear => _db.GetCollection<Gear>();
|
||||
public ILiteCollection<Gear> CollOfGear => _db.GetCollection<Gear>();
|
||||
|
||||
public LiteCollection<JumpType> CollOfJumpType => _db.GetCollection<JumpType>();
|
||||
public ILiteCollection<JumpType> CollOfJumpType => _db.GetCollection<JumpType>();
|
||||
|
||||
public LiteCollection<Jump> CollOfJump => _db.GetCollection<Jump>();
|
||||
public ILiteCollection<Jump> CollOfJump => _db.GetCollection<Jump>();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="LiteDB" Version="5.0.0-beta" />
|
||||
<PackageReference Include="LiteDB" Version="5.0.0" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,22 +1,10 @@
|
||||
[
|
||||
{
|
||||
"id": 1,
|
||||
"name": "Pilatus"
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"name": "Caravan"
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"name": "Skyvan"
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"name": "Twin Otter"
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"name": "PAC 750"
|
||||
}
|
||||
[
|
||||
{"id":1,"Name":"Pilatus PC-6"},
|
||||
{"id":2,"Name":"Caravan"},
|
||||
{"id":3,"Name":"Skyvan"},
|
||||
{"id":4,"Name":"Twin Otter"},
|
||||
{"id":5,"Name":"PAC 750"},
|
||||
{"id":6,"Name":"CASA C-212"},
|
||||
{"id":7,"Name":"Cessna 206"},
|
||||
{"id":8,"Name":"Dornier"}
|
||||
]
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,12 +1,3 @@
|
||||
[
|
||||
{
|
||||
"id": 1,
|
||||
"name": "Javelin",
|
||||
"manufacturer": "Sun Path",
|
||||
"minSize": 120,
|
||||
"maxSize": 135,
|
||||
"AAD": "Cypress 2",
|
||||
"mainCanopy": "Pilot 150",
|
||||
"reserveCanopy": "Techno 128"
|
||||
}
|
||||
[
|
||||
{"id":1,"Name":"Javelin","Manufacturer":"Sun Path","MinSize":120,"MaxSize":135,"Aad":"Cypress 2","MainCanopy":"Pilot 150","ReserveCanopy":"Techno 128"}
|
||||
]
|
||||
@@ -1 +1,28 @@
|
||||
[{"Id":1,"JumpTypeId":1,"AircraftId":5,"DropZoneId":6,"GearId":8,"ExitAltitude":40001,"DeployAltitude":10002,"WithCutaway":true,"Notes":"","JumpDate":"0001-01-01T00:00:00"},{"Id":2,"JumpTypeId":1,"AircraftId":5,"DropZoneId":6,"GearId":8,"ExitAltitude":40001,"DeployAltitude":10002,"WithCutaway":true,"Notes":"","JumpDate":"0001-01-01T00:00:00"},{"Id":3,"JumpTypeId":1,"AircraftId":4,"DropZoneId":6,"GearId":8,"ExitAltitude":4000,"DeployAltitude":1000,"WithCutaway":false,"Notes":"","JumpDate":"2019-10-31T23:00:00Z"},{"Id":4,"JumpTypeId":1,"AircraftId":4,"DropZoneId":6,"GearId":8,"ExitAltitude":4000,"DeployAltitude":1000,"WithCutaway":false,"Notes":"","JumpDate":"2019-10-29T23:00:00Z"}]
|
||||
[
|
||||
{"id":1,"JumpType":{"$id":2,"$ref":"JumpType"},"Aircraft":{"$id":3,"$ref":"Aircraft"},"DropZone":{"$id":3,"$ref":"DropZone"},"Gear":{"$id":1,"$ref":"Gear"},"ExitAltitude":4000,"DeployAltitude":1000,"WithCutaway":false,"Notes":null,"JumpDate":{"$date":"2019-11-22T21:46:02.9490000Z"}},
|
||||
{"id":2,"JumpType":{"$id":11,"$ref":"JumpType"},"Aircraft":{"$id":1,"$ref":"Aircraft"},"DropZone":{"$id":36,"$ref":"DropZone"},"Gear":{"$id":1,"$ref":"Gear"},"ExitAltitude":4000,"DeployAltitude":1000,"WithCutaway":false,"Notes":null,"JumpDate":{"$date":"2019-11-23T22:41:05.0840000Z"}},
|
||||
{"id":3,"JumpType":{"$id":11,"$ref":"JumpType"},"Aircraft":{"$id":1,"$ref":"Aircraft"},"DropZone":{"$id":36,"$ref":"DropZone"},"Gear":{"$id":1,"$ref":"Gear"},"ExitAltitude":4000,"DeployAltitude":1000,"WithCutaway":false,"Notes":null,"JumpDate":{"$date":"2019-11-22T22:41:05.0840000Z"}},
|
||||
{"id":4,"JumpType":{"$id":11,"$ref":"JumpType"},"Aircraft":{"$id":1,"$ref":"Aircraft"},"DropZone":{"$id":36,"$ref":"DropZone"},"Gear":{"$id":1,"$ref":"Gear"},"ExitAltitude":4000,"DeployAltitude":1000,"WithCutaway":false,"Notes":null,"JumpDate":{"$date":"2019-11-23T22:41:05.0840000Z"}},
|
||||
{"id":5,"JumpType":{"$id":4,"$ref":"JumpType"},"Aircraft":{"$id":3,"$ref":"Aircraft"},"DropZone":{"$id":17,"$ref":"DropZone"},"Gear":{"$id":1,"$ref":"Gear"},"ExitAltitude":4000,"DeployAltitude":1500,"WithCutaway":false,"Notes":null,"JumpDate":{"$date":"2019-11-10T23:00:00.0000000Z"}},
|
||||
{"id":6,"JumpType":{"$id":4,"$ref":"JumpType"},"Aircraft":{"$id":3,"$ref":"Aircraft"},"DropZone":{"$id":17,"$ref":"DropZone"},"Gear":{"$id":1,"$ref":"Gear"},"ExitAltitude":4000,"DeployAltitude":1500,"WithCutaway":false,"Notes":null,"JumpDate":{"$date":"2019-11-10T23:00:00.0000000Z"}},
|
||||
{"id":7,"JumpType":{"$id":4,"$ref":"JumpType"},"Aircraft":{"$id":3,"$ref":"Aircraft"},"DropZone":{"$id":17,"$ref":"DropZone"},"Gear":{"$id":1,"$ref":"Gear"},"ExitAltitude":4000,"DeployAltitude":1500,"WithCutaway":false,"Notes":null,"JumpDate":{"$date":"2019-11-09T23:00:00.0000000Z"}},
|
||||
{"id":8,"JumpType":{"$id":4,"$ref":"JumpType"},"Aircraft":{"$id":3,"$ref":"Aircraft"},"DropZone":{"$id":17,"$ref":"DropZone"},"Gear":{"$id":1,"$ref":"Gear"},"ExitAltitude":4000,"DeployAltitude":1500,"WithCutaway":false,"Notes":null,"JumpDate":{"$date":"2019-11-09T23:00:00.0000000Z"}},
|
||||
{"id":9,"JumpType":{"$id":4,"$ref":"JumpType"},"Aircraft":{"$id":3,"$ref":"Aircraft"},"DropZone":{"$id":17,"$ref":"DropZone"},"Gear":{"$id":1,"$ref":"Gear"},"ExitAltitude":4000,"DeployAltitude":1500,"WithCutaway":false,"Notes":null,"JumpDate":{"$date":"2019-11-09T23:00:00.0000000Z"}},
|
||||
{"id":10,"JumpType":{"$id":4,"$ref":"JumpType"},"Aircraft":{"$id":3,"$ref":"Aircraft"},"DropZone":{"$id":17,"$ref":"DropZone"},"Gear":{"$id":1,"$ref":"Gear"},"ExitAltitude":4000,"DeployAltitude":1500,"WithCutaway":false,"Notes":null,"JumpDate":{"$date":"2019-11-09T23:00:00.0000000Z"}},
|
||||
{"id":11,"JumpType":{"$id":4,"$ref":"JumpType"},"Aircraft":{"$id":3,"$ref":"Aircraft"},"DropZone":{"$id":17,"$ref":"DropZone"},"Gear":{"$id":1,"$ref":"Gear"},"ExitAltitude":4000,"DeployAltitude":1500,"WithCutaway":false,"Notes":null,"JumpDate":{"$date":"2019-11-10T23:00:00.0000000Z"}},
|
||||
{"id":12,"JumpType":{"$id":4,"$ref":"JumpType"},"Aircraft":{"$id":3,"$ref":"Aircraft"},"DropZone":{"$id":17,"$ref":"DropZone"},"Gear":{"$id":1,"$ref":"Gear"},"ExitAltitude":4000,"DeployAltitude":1500,"WithCutaway":false,"Notes":null,"JumpDate":{"$date":"2019-11-09T23:00:00.0000000Z"}},
|
||||
{"id":13,"JumpType":{"$id":4,"$ref":"JumpType"},"Aircraft":{"$id":3,"$ref":"Aircraft"},"DropZone":{"$id":17,"$ref":"DropZone"},"Gear":{"$id":1,"$ref":"Gear"},"ExitAltitude":4000,"DeployAltitude":1500,"WithCutaway":false,"Notes":null,"JumpDate":{"$date":"2019-11-10T23:00:00.0000000Z"}},
|
||||
{"id":14,"JumpType":{"$id":4,"$ref":"JumpType"},"Aircraft":{"$id":3,"$ref":"Aircraft"},"DropZone":{"$id":17,"$ref":"DropZone"},"Gear":{"$id":1,"$ref":"Gear"},"ExitAltitude":4000,"DeployAltitude":1500,"WithCutaway":false,"Notes":null,"JumpDate":{"$date":"2019-11-10T23:00:00.0000000Z"}},
|
||||
{"id":15,"JumpType":{"$id":4,"$ref":"JumpType"},"Aircraft":{"$id":3,"$ref":"Aircraft"},"DropZone":{"$id":17,"$ref":"DropZone"},"Gear":{"$id":1,"$ref":"Gear"},"ExitAltitude":4000,"DeployAltitude":1500,"WithCutaway":false,"Notes":null,"JumpDate":{"$date":"2019-11-11T23:00:00.0000000Z"}},
|
||||
{"id":16,"JumpType":{"$id":4,"$ref":"JumpType"},"Aircraft":{"$id":3,"$ref":"Aircraft"},"DropZone":{"$id":17,"$ref":"DropZone"},"Gear":{"$id":1,"$ref":"Gear"},"ExitAltitude":4000,"DeployAltitude":1500,"WithCutaway":false,"Notes":null,"JumpDate":{"$date":"2019-11-12T23:00:00.0000000Z"}},
|
||||
{"id":17,"JumpType":{"$id":4,"$ref":"JumpType"},"Aircraft":{"$id":3,"$ref":"Aircraft"},"DropZone":{"$id":17,"$ref":"DropZone"},"Gear":{"$id":1,"$ref":"Gear"},"ExitAltitude":4000,"DeployAltitude":1500,"WithCutaway":false,"Notes":null,"JumpDate":{"$date":"2019-11-12T23:00:00.0000000Z"}},
|
||||
{"id":18,"JumpType":{"$id":4,"$ref":"JumpType"},"Aircraft":{"$id":3,"$ref":"Aircraft"},"DropZone":{"$id":17,"$ref":"DropZone"},"Gear":{"$id":1,"$ref":"Gear"},"ExitAltitude":4000,"DeployAltitude":1500,"WithCutaway":false,"Notes":null,"JumpDate":{"$date":"2019-11-11T23:00:00.0000000Z"}},
|
||||
{"id":19,"JumpType":{"$id":4,"$ref":"JumpType"},"Aircraft":{"$id":3,"$ref":"Aircraft"},"DropZone":{"$id":17,"$ref":"DropZone"},"Gear":{"$id":1,"$ref":"Gear"},"ExitAltitude":4000,"DeployAltitude":1500,"WithCutaway":false,"Notes":null,"JumpDate":{"$date":"2019-11-12T23:00:00.0000000Z"}},
|
||||
{"id":20,"JumpType":{"$id":4,"$ref":"JumpType"},"Aircraft":{"$id":3,"$ref":"Aircraft"},"DropZone":{"$id":17,"$ref":"DropZone"},"Gear":{"$id":1,"$ref":"Gear"},"ExitAltitude":4000,"DeployAltitude":1500,"WithCutaway":false,"Notes":null,"JumpDate":{"$date":"2019-11-11T23:00:00.0000000Z"}},
|
||||
{"id":21,"JumpType":{"$id":4,"$ref":"JumpType"},"Aircraft":{"$id":3,"$ref":"Aircraft"},"DropZone":{"$id":17,"$ref":"DropZone"},"Gear":{"$id":1,"$ref":"Gear"},"ExitAltitude":4000,"DeployAltitude":1500,"WithCutaway":false,"Notes":null,"JumpDate":{"$date":"2019-11-12T23:00:00.0000000Z"}},
|
||||
{"id":22,"JumpType":{"$id":4,"$ref":"JumpType"},"Aircraft":{"$id":3,"$ref":"Aircraft"},"DropZone":{"$id":17,"$ref":"DropZone"},"Gear":{"$id":1,"$ref":"Gear"},"ExitAltitude":4000,"DeployAltitude":1500,"WithCutaway":false,"Notes":null,"JumpDate":{"$date":"2019-11-11T23:00:00.0000000Z"}},
|
||||
{"id":23,"JumpType":{"$id":4,"$ref":"JumpType"},"Aircraft":{"$id":3,"$ref":"Aircraft"},"DropZone":{"$id":17,"$ref":"DropZone"},"Gear":{"$id":1,"$ref":"Gear"},"ExitAltitude":4000,"DeployAltitude":1500,"WithCutaway":false,"Notes":null,"JumpDate":{"$date":"2019-11-13T23:00:00.0000000Z"}},
|
||||
{"id":24,"JumpType":{"$id":4,"$ref":"JumpType"},"Aircraft":{"$id":3,"$ref":"Aircraft"},"DropZone":{"$id":17,"$ref":"DropZone"},"Gear":{"$id":1,"$ref":"Gear"},"ExitAltitude":4000,"DeployAltitude":1500,"WithCutaway":false,"Notes":null,"JumpDate":{"$date":"2019-11-11T23:00:00.0000000Z"}},
|
||||
{"id":25,"JumpType":{"$id":4,"$ref":"JumpType"},"Aircraft":{"$id":3,"$ref":"Aircraft"},"DropZone":{"$id":17,"$ref":"DropZone"},"Gear":{"$id":1,"$ref":"Gear"},"ExitAltitude":4000,"DeployAltitude":1500,"WithCutaway":false,"Notes":null,"JumpDate":{"$date":"2019-11-13T23:00:00.0000000Z"}},
|
||||
{"id":26,"JumpType":{"$id":4,"$ref":"JumpType"},"Aircraft":{"$id":3,"$ref":"Aircraft"},"DropZone":{"$id":17,"$ref":"DropZone"},"Gear":{"$id":1,"$ref":"Gear"},"ExitAltitude":4000,"DeployAltitude":1500,"WithCutaway":false,"Notes":null,"JumpDate":{"$date":"2019-11-13T23:00:00.0000000Z"}}
|
||||
]
|
||||
@@ -1,46 +1,13 @@
|
||||
[
|
||||
{
|
||||
"id": 1,
|
||||
"name": "PAC"
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"name": "RW 4"
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"name": "RW 8"
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"name": "RW X"
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"name": "FreeFly"
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"name": "FreeStyle"
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"name": "Canopy"
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"name": "Track/Trace"
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"name": "Wingsuit 1"
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"name": "Wingsuit 2"
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"name": "Wingsuit 3"
|
||||
}
|
||||
[
|
||||
{"id":1,"Name":"PAC"},
|
||||
{"id":2,"Name":"RW 4"},
|
||||
{"id":3,"Name":"RW 8"},
|
||||
{"id":4,"Name":"RW X"},
|
||||
{"id":5,"Name":"FreeFly"},
|
||||
{"id":6,"Name":"FreeStyle"},
|
||||
{"id":7,"Name":"Canopy"},
|
||||
{"id":8,"Name":"Track/Trace"},
|
||||
{"id":9,"Name":"Wingsuit 1"},
|
||||
{"id":10,"Name":"Wingsuit 2"},
|
||||
{"id":11,"Name":"Wingsuit 3"}
|
||||
]
|
||||
BIN
Back/skydiveLogs-api/Data/JumpsDb-20200203.db
Normal file
BIN
Back/skydiveLogs-api/Data/JumpsDb-20200203.db
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Back/skydiveLogs-api/Data/LiteDB.Studio-v1.0.exe
Normal file
BIN
Back/skydiveLogs-api/Data/LiteDB.Studio-v1.0.exe
Normal file
Binary file not shown.
Reference in New Issue
Block a user