Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
CAP
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
CAP
Commits
c15ae317
Commit
c15ae317
authored
Nov 11, 2019
by
Savorboard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename file
parent
c4f4f5f4
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
78 additions
and
88 deletions
+78
-88
IDataStorage.MySql.cs
src/DotNetCore.CAP.MySql/IDataStorage.MySql.cs
+75
-85
IStorageInitializer.MySql.cs
src/DotNetCore.CAP.MySql/IStorageInitializer.MySql.cs
+3
-3
No files found.
src/DotNetCore.CAP.MySql/
MySqlDataStorage
.cs
→
src/DotNetCore.CAP.MySql/
IDataStorage.MySql
.cs
View file @
c15ae317
This diff is collapsed.
Click to expand it.
src/DotNetCore.CAP.MySql/IStorage.MySql.cs
→
src/DotNetCore.CAP.MySql/IStorage
Initializer
.MySql.cs
View file @
c15ae317
// Copyright (c) .NET Core Community. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using
System
;
using
System.Threading
;
using
System.Threading.Tasks
;
using
Dapper
;
...
...
@@ -18,8 +19,7 @@ namespace DotNetCore.CAP.MySql
public
MySqlStorageInitializer
(
ILogger
<
MySqlStorageInitializer
>
logger
,
IOptions
<
MySqlOptions
>
options
,
IOptions
<
CapOptions
>
capOptions
)
IOptions
<
MySqlOptions
>
options
)
{
_options
=
options
;
_logger
=
logger
;
...
...
@@ -43,7 +43,7 @@ namespace DotNetCore.CAP.MySql
}
var
sql
=
CreateDbTablesScript
(
_options
.
Value
.
TableNamePrefix
);
using
(
var
connection
=
new
MySqlConnection
(
_options
.
Value
.
ConnectionString
))
await
using
(
var
connection
=
new
MySqlConnection
(
_options
.
Value
.
ConnectionString
))
{
await
connection
.
ExecuteAsync
(
sql
);
}
...
...
Write
Preview
Markdown
is supported
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