File tree Expand file tree Collapse file tree 8 files changed +16
-12
lines changed
Z.EntityFramework.Plus.EF5.NET40
Z.EntityFramework.Plus.EF5
Z.EntityFramework.Plus.EF6.NET40
Z.EntityFramework.Plus.EF6 Expand file tree Collapse file tree 8 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 1818[ assembly: AssemblyCulture ( "" ) ]
1919[ assembly: ComVisible ( false ) ]
2020[ assembly: Guid ( "e4c2af73-caeb-4429-bcb6-0a359484e064" ) ]
21- [ assembly: AssemblyVersion ( "1.3.5 " ) ]
22- [ assembly: AssemblyFileVersion ( "1.3.5 " ) ]
21+ [ assembly: AssemblyVersion ( "1.3.6 " ) ]
22+ [ assembly: AssemblyFileVersion ( "1.3.6 " ) ]
Original file line number Diff line number Diff line change @@ -20,7 +20,8 @@ internal static partial class Model
2020 /// <returns>The model name.</returns>
2121 internal static string GetModelName ( this DbContext @this )
2222 {
23- var connectionString = @this . Database . Connection . ConnectionString ;
23+ // Only EntityConnection contains model
24+ var connectionString = @this . Database . GetEntityConnection ( ) . ConnectionString ;
2425 var end = connectionString . IndexOf ( ".msl" ) - 1 ;
2526
2627 if ( end <= - 1 )
Original file line number Diff line number Diff line change 1818[ assembly: AssemblyCulture ( "" ) ]
1919[ assembly: ComVisible ( false ) ]
2020[ assembly: Guid ( "abcbb878-043c-4957-a334-90e9872e684e" ) ]
21- [ assembly: AssemblyVersion ( "1.3.5 " ) ]
22- [ assembly: AssemblyFileVersion ( "1.3.5 " ) ]
21+ [ assembly: AssemblyVersion ( "1.3.6 " ) ]
22+ [ assembly: AssemblyFileVersion ( "1.3.6 " ) ]
Original file line number Diff line number Diff line change @@ -20,7 +20,8 @@ internal static partial class Model
2020 /// <returns>The model name.</returns>
2121 internal static string GetModelName ( this DbContext @this )
2222 {
23- var connectionString = @this . Database . Connection . ConnectionString ;
23+ // Only EntityConnection contains model
24+ var connectionString = @this . Database . GetEntityConnection ( ) . ConnectionString ;
2425 var end = connectionString . IndexOf ( ".msl" ) - 1 ;
2526
2627 if ( end <= - 1 )
Original file line number Diff line number Diff line change 1818[ assembly: AssemblyCulture ( "" ) ]
1919[ assembly: ComVisible ( false ) ]
2020[ assembly: Guid ( "ac398eb8-0a31-4d06-a804-84d10b6da96d" ) ]
21- [ assembly: AssemblyVersion ( "1.3.5 " ) ]
22- [ assembly: AssemblyFileVersion ( "1.3.5 " ) ]
21+ [ assembly: AssemblyVersion ( "1.3.6 " ) ]
22+ [ assembly: AssemblyFileVersion ( "1.3.6 " ) ]
Original file line number Diff line number Diff line change @@ -20,7 +20,8 @@ internal static partial class Model
2020 /// <returns>The model name.</returns>
2121 internal static string GetModelName ( this DbContext @this )
2222 {
23- var connectionString = @this . Database . Connection . ConnectionString ;
23+ // Only EntityConnection contains model
24+ var connectionString = @this . Database . GetEntityConnection ( ) . ConnectionString ;
2425 var end = connectionString . IndexOf ( ".msl" ) - 1 ;
2526
2627 if ( end <= - 1 )
Original file line number Diff line number Diff line change 1818[ assembly: AssemblyCulture ( "" ) ]
1919[ assembly: ComVisible ( false ) ]
2020[ assembly: Guid ( "89f47e22-ff83-4ac8-be90-c6755748cf89" ) ]
21- [ assembly: AssemblyVersion ( "1.3.5 " ) ]
22- [ assembly: AssemblyFileVersion ( "1.3.5 " ) ]
21+ [ assembly: AssemblyVersion ( "1.3.6 " ) ]
22+ [ assembly: AssemblyFileVersion ( "1.3.6 " ) ]
Original file line number Diff line number Diff line change @@ -20,7 +20,8 @@ internal static partial class Model
2020 /// <returns>The model name.</returns>
2121 internal static string GetModelName ( this DbContext @this )
2222 {
23- var connectionString = @this . Database . Connection . ConnectionString ;
23+ // Only EntityConnection contains model
24+ var connectionString = @this . Database . GetEntityConnection ( ) . ConnectionString ;
2425 var end = connectionString . IndexOf ( ".msl" ) - 1 ;
2526
2627 if ( end <= - 1 )
You can’t perform that action at this time.
0 commit comments