Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Ilka Kistinger
bee-weather
Commits
7091d81e
Commit
7091d81e
authored
Mar 11, 2020
by
Anthony Mochel
Browse files
fix(entity): change entity settings and plugins
parent
ab4fba15
Changes
5
Hide whitespace changes
Inline
Side-by-side
BeeWeatherPollenTracker/App.config
View file @
7091d81e
...
...
@@ -66,24 +66,26 @@
</
DbProviderFactories
>
</
system
.
data
>
<!--
Connection
st
r
ing
-->
<!--
Connection
s
et
ting
s
-->
<
connectionStrings
>
<
add
name
=
"delmeEntities"
connectionString
=
"metadata=res://*/BeeWeatherModel.csdl|res://*/BeeWeatherModel.ssdl|res://*/BeeWeatherModel.msl;provider=MySql.Data.MySqlClient;provider connection string="server=digitalbeekeeper.de;user id=cnam1;password=Belana2016();persistsecurityinfo=True;database=delme""
providerName
=
"System.Data.EntityClient"
/>
<
add
name
=
"delmeEntities1"
connectionString
=
"metadata=res://*/BeesWeatherModel.csdl|res://*/BeesWeatherModel.ssdl|res://*/BeesWeatherModel.msl;provider=MySql.Data.MySqlClient;provider connection string="server=digitalbeekeeper.de;user id=cnam1;password=Belana2016();persistsecurityinfo=True;database=delme""
providerName
=
"System.Data.EntityClient"
/>
</
connectionStrings
>
<!--
Application
S
ettings
-->
<!--
Application
s
ettings
-->
<
appSettings
>
<
add
key
=
"CityId"
value
=
"2925533"
/>
<
add
key
=
"PartregionId"
value
=
"91"
/>
</
appSettings
>
<!--
En
t
ity
F
ramwork
-->
<
entityFramework
codeConfigurationType
=
"MySql.Data.Entity.MySqlEFConfiguration, MySql.Data.Entity.EF6"
>
<!--
Enity
f
ram
e
work
-->
<
entityFramework
>
<
defaultConnectionFactory
type
=
"System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework"
/>
<
providers
>
<
provider
invariantName
=
"System.Data.SqlClient"
type
=
"System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"
/>
<
provider
invariantName
=
"MySql.Data.MySqlClient"
type
=
"MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6, Version=6.10.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"
/>
</
providers
>
<
provider
invariantName
=
"MySql.Data.MySqlClient"
type
=
"MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.EntityFramework, Version=8.0.19.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"
>
</
provider
></
providers
>
</
entityFramework
>
</
configuration
>
\ No newline at end of file
BeeWeatherPollenTracker/BeeWeatherPollenTracker.csproj
View file @
7091d81e
...
...
@@ -44,8 +44,8 @@
<Reference
Include=
"EntityFramework.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"
>
<HintPath>
..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.SqlServer.dll
</HintPath>
</Reference>
<Reference
Include=
"MySql.Data.Entity
.EF6
, Version=
6.1
0.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL"
>
<HintPath>
..\packages\MySql.Data.Entity
.6.1
0.9\lib\net452\MySql.Data.Entity
.EF6
.dll
</HintPath>
<Reference
Include=
"MySql.Data.Entity
Framework
, Version=
8.
0.
1
9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL"
>
<HintPath>
..\packages\MySql.Data.Entity
Framework.8.
0.
1
9\lib\net452\MySql.Data.Entity
Framework
.dll
</HintPath>
</Reference>
<Reference
Include=
"Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"
>
<HintPath>
..\packages\WeatherNet.2.1\lib\Newtonsoft.Json.dll
</HintPath>
...
...
@@ -101,7 +101,6 @@
<Reference
Include=
"MySql.Data, Version=8.0.19.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL"
>
<HintPath>
..\packages\MySql.Data.8.0.19\lib\net452\MySql.Data.dll
</HintPath>
</Reference>
<Reference
Include=
"MySql.Data.EntityFramework, Version=8.0.19.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL"
/>
<Reference
Include=
"MySqlConnector, Version=0.62.0.0, Culture=neutral, PublicKeyToken=d33d3e53aa5f8c92, processorArchitecture=MSIL"
>
<HintPath>
..\packages\MySqlConnector.0.62.0\lib\net471\MySqlConnector.dll
</HintPath>
</Reference>
...
...
BeeWeatherPollenTracker/BeesWeatherModel.Context.cs
View file @
7091d81e
...
...
@@ -9,7 +9,8 @@
namespace
BeeWeatherPollenTracker
{
using
MySql.Data.Entity
;
using
MySql.Data.EntityFramework
;
using
System
;
using
System.Data.Entity
;
using
System.Data.Entity.Infrastructure
;
...
...
BeeWeatherPollenTracker/Program.cs
View file @
7091d81e
...
...
@@ -25,11 +25,15 @@ namespace BeeWeatherPollenTracker
private
static
void
Main
(
string
[]
args
)
{
<<<<<<<
HEAD
/*
* Settings
*/
// Set Entity Configuration
=======
// Entity Framework setup
>>>>>>>
fix
(
entity
):
change
entity
settings
and
plugins
DbConfiguration
.
SetConfiguration
(
new
MySqlEFConfiguration
());
// Set up API KEY
ClientSettings
.
SetApiKey
(
OPEN_WEATHER_MAP_API_KEY
);
...
...
BeeWeatherPollenTracker/packages.config
View file @
7091d81e
...
...
@@ -21,7 +21,7 @@
<
package
id
=
"Microsoft.Extensions.Options"
version
=
"3.1.2"
targetFramework
=
"net472"
/>
<
package
id
=
"Microsoft.Extensions.Primitives"
version
=
"3.1.2"
targetFramework
=
"net472"
/>
<
package
id
=
"MySql.Data"
version
=
"8.0.19"
targetFramework
=
"net472"
/>
<
package
id
=
"MySql.Data.Entity"
version
=
"
6.1
0.9"
targetFramework
=
"net472"
/>
<
package
id
=
"MySql.Data.Entity
Framework
"
version
=
"
8.
0.
1
9"
targetFramework
=
"net472"
/>
<
package
id
=
"MySqlConnector"
version
=
"0.62.0"
targetFramework
=
"net472"
/>
<
package
id
=
"SSH.NET"
version
=
"2016.1.0"
targetFramework
=
"net472"
/>
<
package
id
=
"System.Buffers"
version
=
"4.4.0"
targetFramework
=
"net472"
/>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment