8000 Version 0.0.3 · optimajet/DataEngine.NET@cb1052f · GitHub
[go: up one dir, main page]

Skip to content

Commit cb1052f

Browse files
committed
Version 0.0.3
0.0.2 (autocommit)
1 parent a111ec6 commit cb1052f

File tree

205 files changed

+6848
-6870
lines changed

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OptimaJet.DataEngine", "OptimaJet.DataEngine\OptimaJet.DataEngine.csproj", "{06D7D94D-C379-469B-B886-46953F0AA16C}"
4+
EndProject
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OptimaJet.DataEngine.Mssql", "OptimaJet.DataEngine.Mssql\OptimaJet.DataEngine.Mssql.csproj", "{FD5C12C8-A526-4D3C-8A48-9DDEF8FCA62B}"
6+
EndProject
7+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OptimaJet.DataEngine.Mysql", "OptimaJet.DataEngine.Mysql\OptimaJet.DataEngine.Mysql.csproj", "{6368E2DE-86CF-4D80-A260-C516020F2B7E}"
8+
EndProject
9+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OptimaJet.DataEngine.Oracle", "OptimaJet.DataEngine.Oracle\OptimaJet.DataEngine.Oracle.csproj", "{FF7DED4D-FEC2-442F-9777-7AC8136E7E89}"
10+
EndProject
11+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OptimaJet.DataEngine.Postgres", "OptimaJet.DataEngine.Postgres\OptimaJet.DataEngine.Postgres.csproj", "{2FD1B606-5D72-4984-9BBB-4373A6B02DE0}"
12+
EndProject
13+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OptimaJet.DataEngine.Sqlite", "OptimaJet.DataEngine.Sqlite\OptimaJet.DataEngine.Sqlite.csproj", "{05636E04-7C5D-47EC-A514-A80110460E63}"
14+
EndProject
15+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OptimaJet.DataEngine.Mongo", "OptimaJet.DataEngine.Mongo\OptimaJet.DataEngine.Mongo.csproj", "{AC38EAC7-D161-4C3D-905A-9B6FF244FCF7}"
16+
EndProject
17+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OptimaJet.DataEngine.Sql", "OptimaJet.DataEngine.Sql\OptimaJet.DataEngine.Sql.csproj", "{D0C6EC56-E6CB-4D36-B752-00D26823F2B8}"
18+
EndProject
19+
Global
20+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
21+
Debug|Any CPU = Debug|Any CPU
22+
Release|Any CPU = Release|Any CPU
23+
EndGlobalSection
24+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
25+
{06D7D94D-C379-469B-B886-46953F0AA16C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
26+
{06D7D94D-C379-469B-B886-46953F0AA16C}.Debug|Any CPU.Build.0 = Debug|Any CPU
27+
{06D7D94D-C379-469B-B886-46953F0AA16C}.Release|Any CPU.ActiveCfg = Release|Any CPU
28+
{06D7D94D-C379-469B-B886-46953F0AA16C}.Release|Any CPU.Build.0 = Release|Any CPU
29+
{FD5C12C8-A526-4D3C-8A48-9DDEF8FCA62B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30+
{FD5C12C8-A526-4D3C-8A48-9DDEF8FCA62B}.Debug|Any CPU.Build.0 = Debug|Any CPU
31+
{FD5C12C8-A526-4D3C-8A48-9DDEF8FCA62B}.Release|Any CPU.ActiveCfg = Release|Any CPU
32+
{FD5C12C8-A526-4D3C-8A48-9DDEF8FCA62B}.Release|Any CPU.Build.0 = Release|Any CPU
33+
{6368E2DE-86CF-4D80-A260-C516020F2B7E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34+
{6368E2DE-86CF-4D80-A260-C516020F2B7E}.Debug|Any CPU.Build.0 = Debug|Any CPU
35+
{6368E2DE-86CF-4D80-A260-C516020F2B7E}.Release|Any CPU.ActiveCfg = Release|Any CPU
36+
{6368E2DE-86CF-4D80-A260-C516020F2B7E}.Release|Any CPU.Build.0 = Release|Any CPU
37+
{FF7DED4D-FEC2-442F-9777-7AC8136E7E89}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
38+
{FF7DED4D-FEC2-442F-9777-7AC8136E7E89}.Debug|Any CPU.Build.0 = Debug|Any CPU
39+
{FF7DED4D-FEC2-442F-9777-7AC8136E7E89}.Release|Any CPU.ActiveCfg = Release|Any CPU
40+
{FF7DED4D-FEC2-442F-9777-7AC8136E7E89}.Release|Any CPU.Build.0 = Release|Any CPU
41+
{2FD1B606-5D72-4984-9BBB-4373A6B02DE0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
42+
{2FD1B606-5D72-4984-9BBB-4373A6B02DE0}.Debug|Any CPU.Build.0 = Debug|Any CPU
43+
{2FD1B606-5D72-4984-9BBB-4373A6B02DE0}.Release|Any CPU.ActiveCfg = Release|Any CPU
44+
{2FD1B606-5D72-4984-9BBB-4373A6B02DE0}.Release|Any CPU.Build.0 = Release|Any CPU
45+
{05636E04-7C5D-47EC-A514-A80110460E63}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
46+
{05636E04-7C5D-47EC-A514-A80110460E63}.Debug|Any CPU.Build.0 = Debug|Any CPU
47+
{05636E04-7C5D-47EC-A514-A80110460E63}.Release|Any CPU.ActiveCfg = Release|Any CPU
48+
{05636E04-7C5D-47EC-A514-A80110460E63}.Release|Any CPU.Build.0 = Release|Any CPU
49+
{AC38EAC7-D161-4C3D-905A-9B6FF244FCF7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
50+
{AC38EAC7-D161-4C3D-905A-9B6FF244FCF7}.Debug|Any CPU.Build.0 = Debug|Any CPU
51+
{AC38EAC7-D161-4C3D-905A-9B6FF244FCF7}.Release|Any CPU.ActiveCfg = Release|Any CPU
52+
{AC38EAC7-D161-4C3D-905A-9B6FF244FCF7}.Release|Any CPU.Build.0 = Release|Any CPU
53+
{D0C6EC56-E6CB-4D36-B752-00D26823F2B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
54+
{D0C6EC56-E6CB-4D36-B752-00D26823F2B8}.Debug|Any CPU.Build.0 = Debug|Any CPU
55+
{D0C6EC56-E6CB-4D36-B752-00D26823F2B8}.Release|Any CPU.ActiveCfg = Release|Any CPU
56+
{D0C6EC56-E6CB-4D36-B752-00D26823F2B8}.Release|Any CPU.Build.0 = Release|Any CPU
57+
EndGlobalSection
58+
EndGlobal
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
MIT License
2-
3-
Copyright (c) 2024 Optimajet Limited
4-
5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
11-
12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
1+
MIT License
2+
3+
Copyright (c) 2024 Optimajet Limited
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[assembly: Fody.ConfigureAwait(false)]
1+
[assembly: Fody.ConfigureAwait(false)]
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
using MongoDB.Driver;
2-
3-
namespace OptimaJet.DataEngine.Mongo;
4-
5-
public static class Extensions
6-
{
7-
public static Task<ITransaction> AttachSessionAsync(this ISession session, IClientSessionHandle transaction, bool disposeSession = false)
8-
{
9-
if (session.Provider.Name != ProviderName.Mongo)
10-
{
11-
throw new NotSupportedException("This method is only supported for Mongo sessions.");
12-
}
13-
14-
return ((MongoSession)session).AttachSessionAsync(transaction, disposeSession);
15-
}
1+
using MongoDB.Driver;
2+
using OptimaJet.DataEngine.Mongo.Implementation;
3+
4+
namespace OptimaJet.DataEngine.Mongo;
5+
6+
public static class Extensions
7+
{
8+
public static Task<ITransaction> AttachSessionAsync(this ISession session, IClientSessionHandle transaction, bool disposeSession = false)
9+
{
10+
if (session.Provider.Name != ProviderName.Mongo)
11+
{
12+
throw new NotSupportedException("This method is only supported for Mongo sessions.");
13+
}
14+
15+
return ((MongoSession)session).AttachSessionAsync(transaction, disposeSession);
16+
}
1617
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
using MongoDB.Driver;
2+
using OptimaJet.DataEngine.Queries;
3+
4+
namespace OptimaJet.DataEngine.Mongo.FilterBuilder;
5+
6+
internal interface IMongoFilterBuilder<TEntity> where TEntity : class
7+
{
8+
FilterDefinition<TEntity> Build(IFilter filter);
9+
}