File tree 7 files changed +23
-11
lines changed
7 files changed +23
-11
lines changed Original file line number Diff line number Diff line change 7
7
8
8
<ItemGroup >
9
9
<PackageReference Include =" Microsoft.AspNetCore.All" />
10
- <PackageReference Include =" Microsoft.VisualStudio.Web.CodeGeneration.Design" Version =" 2.2.0 " PrivateAssets =" All" />
10
+ <PackageReference Include =" Microsoft.VisualStudio.Web.CodeGeneration.Design" Version =" 2.2.3 " PrivateAssets =" All" />
11
11
</ItemGroup >
12
12
13
13
<ItemGroup >
Original file line number Diff line number Diff line change 6
6
</PropertyGroup >
7
7
8
8
<ItemGroup >
9
- <PackageReference Include =" Microsoft.EntityFrameworkCore" Version =" 2.2.0 " />
10
- <PackageReference Include =" Microsoft.EntityFrameworkCore.InMemory" Version =" 2.2.0 " />
9
+ <PackageReference Include =" Microsoft.EntityFrameworkCore" Version =" 2.2.6 " />
10
+ <PackageReference Include =" Microsoft.EntityFrameworkCore.InMemory" Version =" 2.2.6 " />
11
11
</ItemGroup >
12
12
13
13
<ItemGroup >
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ class Program
13
13
static void Main ( string [ ] args )
14
14
{
15
15
Context db = new Context ( ) ;
16
+ Console . WriteLine ( db . Database . CanConnect ( ) ) ;
17
+
16
18
NewContext db2 = new NewContext ( ) ;
17
19
18
20
Messurement current = new Messurement ( ) ;
Original file line number Diff line number Diff line change 9
9
10
10
<ItemGroup >
11
11
<PackageReference Include =" Bogus" Version =" 27.0.1" />
12
- <PackageReference Include =" Microsoft.EntityFrameworkCore" Version =" 2.2.4 " />
12
+ <PackageReference Include =" Microsoft.EntityFrameworkCore" Version =" 2.2.6 " />
13
13
<PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 15.9.0" />
14
14
<PackageReference Include =" xunit" Version =" 2.4.0" />
15
15
<PackageReference Include =" xunit.runner.visualstudio" Version =" 2.4.0" />
Original file line number Diff line number Diff line change 5
5
<SignAssembly Condition =" '$(OS)' == 'Windows_NT'" >true</SignAssembly >
6
6
<AssemblyOriginatorKeyFile >key.snk</AssemblyOriginatorKeyFile >
7
7
<GeneratePackageOnBuild >true</GeneratePackageOnBuild >
8
- <Version >2.2.0 </Version >
8
+ <Version >2.2.6 </Version >
9
9
<Company >morrisjdev</Company >
10
10
<Authors >morrisjdev</Authors >
11
11
<Description >File provider for Entity Framework Core (to be used for development purposes)</Description >
19
19
<PackageProjectUrl >https://github.com/morrisjdev/FileContextCore</PackageProjectUrl >
20
20
<NeutralLanguage >en-US</NeutralLanguage >
21
21
<DelaySign >false</DelaySign >
22
- <AssemblyVersion >2.2.0 .0</AssemblyVersion >
22
+ <AssemblyVersion >2.2.6 .0</AssemblyVersion >
23
23
</PropertyGroup >
24
24
25
25
<ItemGroup >
26
- <PackageReference Include =" CsvHelper" Version =" 12.1.0 " />
26
+ <PackageReference Include =" CsvHelper" Version =" 12.1.2 " />
27
27
<PackageReference Include =" EPPlus.Core" Version =" 1.5.4" />
28
- <PackageReference Include =" Microsoft.EntityFrameworkCore" Version =" 2.2.0 " />
29
- <PackageReference Include =" Newtonsoft.Json" Version =" 12.0.1 " />
28
+ <PackageReference Include =" Microsoft.EntityFrameworkCore" Version =" 2.2.6 " />
29
+ <PackageReference Include =" Newtonsoft.Json" Version =" 12.0.2 " />
30
30
<PackageReference Include =" Newtonsoft.Json.Bson" Version =" 1.0.2" />
31
31
<PackageReference Include =" System.Xml.XmlSerializer" Version =" 4.3.0" />
32
32
</ItemGroup >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<Project ToolsVersion =" 15.0" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
3
3
<PropertyGroup >
4
- <_LastSelectedProfileId >C:\Users\mjanatzek \Documents\Projects\private \FileContextCore\FileContextCore\Properties\PublishProfiles\FolderProfile.pubxml</_LastSelectedProfileId >
4
+ <_LastSelectedProfileId >C:\Users\morri \Documents\Projects\productive \FileContextCore\FileContextCore\Properties\PublishProfiles\FolderProfile.pubxml</_LastSelectedProfileId >
5
5
</PropertyGroup >
6
6
</Project >
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ namespace FileContextCore.Storage.Internal
14
14
/// This API supports the Entity Framework Core infrastructure and is not intended to be used
15
15
/// directly from your code. This API may change or be removed in future releases.
16
16
/// </summary>
17
- class FileContextDatabaseCreator : IDatabaseCreator
17
+ class FileContextDatabaseCreator : IDatabaseCreatorWithCanConnect
18
18
{
19
19
private readonly IModel _model ;
20
20
private readonly IFileContextDatabase _database ;
@@ -58,5 +58,15 @@ public virtual bool EnsureDeleted()
58
58
/// </summary>
59
59
public virtual Task < bool > EnsureCreatedAsync ( CancellationToken cancellationToken = default ( CancellationToken ) )
60
60
=> Task . FromResult ( _database . EnsureDatabaseCreated ( _model ) ) ;
61
+
62
+ public bool CanConnect ( )
63
+ {
64
+ return true ;
65
+ }
66
+
67
+ public Task < bool > CanConnectAsync ( CancellationToken cancellationToken = new CancellationToken ( ) )
68
+ {
69
+ return Task . FromResult ( CanConnect ( ) ) ;
70
+ }
61
71
}
62
72
}
You can’t perform that action at this time.
0 commit comments