-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from kubagdynia/develop
Develop
- Loading branch information
Showing
32 changed files
with
802 additions
and
828 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 6 additions & 7 deletions
13
...r.CustomTypeHandlers/Dapper.CustomTypeHandlers.Tests/DbConnection/IDbConnectionFactory.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
using System.Data; | ||
|
||
namespace Dapper.CustomTypeHandlers.Tests.DbConnection | ||
namespace Dapper.CustomTypeHandlers.Tests.DbConnection; | ||
|
||
internal interface IDbConnectionFactory | ||
{ | ||
internal interface IDbConnectionFactory | ||
{ | ||
IDbConnection Connection(); | ||
IDbConnection Connection(); | ||
|
||
IDbConnection Connection(string name); | ||
} | ||
} | ||
IDbConnection Connection(string name); | ||
} |
21 changes: 10 additions & 11 deletions
21
...ustomTypeHandlers/Dapper.CustomTypeHandlers.Tests/DbConnection/SqliteConnectionFactory.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
using System; | ||
using System.Data; | ||
|
||
namespace Dapper.CustomTypeHandlers.Tests.DbConnection | ||
namespace Dapper.CustomTypeHandlers.Tests.DbConnection; | ||
|
||
internal class SqliteConnectionFactory : BaseSqliteConnectionFactory | ||
{ | ||
internal class SqliteConnectionFactory : BaseSqliteConnectionFactory | ||
public SqliteConnectionFactory() : base($"TestDb_{Guid.NewGuid()}.sqlite") | ||
{ | ||
public SqliteConnectionFactory() : base($"TestDb_{Guid.NewGuid()}.sqlite") | ||
{ | ||
|
||
} | ||
} | ||
|
||
protected override void CreateDb(IDbConnection dbConnection) | ||
{ | ||
dbConnection.Execute( | ||
@"CREATE TABLE Test_Objects | ||
protected override void CreateDb(IDbConnection dbConnection) | ||
{ | ||
dbConnection.Execute( | ||
@"CREATE TABLE Test_Objects | ||
( | ||
ID integer primary key AUTOINCREMENT, | ||
FirstName varchar(100) not null, | ||
LastName varchar(100) not null, | ||
StartWork datetime not null, | ||
Content TEXT | ||
)"); | ||
} | ||
} | ||
} | ||
} |
19 changes: 9 additions & 10 deletions
19
...peHandlers/Dapper.CustomTypeHandlers.Tests/DbConnection/SqliteConnectionFactoryForGuid.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
using System; | ||
using System.Data; | ||
|
||
namespace Dapper.CustomTypeHandlers.Tests.DbConnection | ||
namespace Dapper.CustomTypeHandlers.Tests.DbConnection; | ||
|
||
internal class SqliteConnectionFactoryForGuid : BaseSqliteConnectionFactory | ||
{ | ||
internal class SqliteConnectionFactoryForGuid : BaseSqliteConnectionFactory | ||
public SqliteConnectionFactoryForGuid() : base($"TestGuidDb_{Guid.NewGuid()}.sqlite") | ||
{ | ||
public SqliteConnectionFactoryForGuid() : base($"TestGuidDb_{Guid.NewGuid()}.sqlite") | ||
{ | ||
} | ||
} | ||
|
||
protected override void CreateDb(IDbConnection dbConnection) | ||
=> | ||
dbConnection.Execute( | ||
@"CREATE TABLE Test_Objects | ||
protected override void CreateDb(IDbConnection dbConnection) | ||
=> | ||
dbConnection.Execute( | ||
@"CREATE TABLE Test_Objects | ||
( | ||
ID integer primary key AUTOINCREMENT, | ||
GuidId varchar(36) | ||
)"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.