Skip to content

Commit 0acccb8

Browse files
committed
wip
1 parent 2e33783 commit 0acccb8

File tree

15 files changed

+192
-1
lines changed

15 files changed

+192
-1
lines changed

EFCore.Jet.sln

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EFCore.Jet.Odbc", "src\EFCo
5656
EndProject
5757
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EFCore.Jet.OleDb", "src\EFCore.Jet.OleDb\EFCore.Jet.OleDb.csproj", "{FFC89A2D-F68F-47E3-BA00-47E9C0BEDB71}"
5858
EndProject
59+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LibRed", "src\LibRed\LibRed.csproj", "{00D43B88-09EA-9310-748A-814C451E2589}"
60+
EndProject
5961
Global
6062
GlobalSection(SolutionConfigurationPlatforms) = preSolution
6163
Debug|Any CPU = Debug|Any CPU
@@ -174,6 +176,18 @@ Global
174176
{FFC89A2D-F68F-47E3-BA00-47E9C0BEDB71}.Release|x64.Build.0 = Release|Any CPU
175177
{FFC89A2D-F68F-47E3-BA00-47E9C0BEDB71}.Release|x86.ActiveCfg = Release|Any CPU
176178
{FFC89A2D-F68F-47E3-BA00-47E9C0BEDB71}.Release|x86.Build.0 = Release|Any CPU
179+
{00D43B88-09EA-9310-748A-814C451E2589}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
180+
{00D43B88-09EA-9310-748A-814C451E2589}.Debug|Any CPU.Build.0 = Debug|Any CPU
181+
{00D43B88-09EA-9310-748A-814C451E2589}.Debug|x64.ActiveCfg = Debug|Any CPU
182+
{00D43B88-09EA-9310-748A-814C451E2589}.Debug|x64.Build.0 = Debug|Any CPU
183+
{00D43B88-09EA-9310-748A-814C451E2589}.Debug|x86.ActiveCfg = Debug|Any CPU
184+
{00D43B88-09EA-9310-748A-814C451E2589}.Debug|x86.Build.0 = Debug|Any CPU
185+
{00D43B88-09EA-9310-748A-814C451E2589}.Release|Any CPU.ActiveCfg = Release|Any CPU
186+
{00D43B88-09EA-9310-748A-814C451E2589}.Release|Any CPU.Build.0 = Release|Any CPU
187+
{00D43B88-09EA-9310-748A-814C451E2589}.Release|x64.ActiveCfg = Release|Any CPU
188+
{00D43B88-09EA-9310-748A-814C451E2589}.Release|x64.Build.0 = Release|Any CPU
189+
{00D43B88-09EA-9310-748A-814C451E2589}.Release|x86.ActiveCfg = Release|Any CPU
190+
{00D43B88-09EA-9310-748A-814C451E2589}.Release|x86.Build.0 = Release|Any CPU
177191
EndGlobalSection
178192
GlobalSection(SolutionProperties) = preSolution
179193
HideSolutionNode = FALSE
@@ -188,6 +202,7 @@ Global
188202
{5CD8B47D-E32C-480A-8331-55549EC8E12E} = {6A8DE399-1804-4113-A408-F23B7F5C9CAC}
189203
{1E0729DA-B861-46EA-B1F1-3AE20EA1E00A} = {F68095EE-6CD1-43A2-B498-6CA72CE2A0CB}
190204
{FFC89A2D-F68F-47E3-BA00-47E9C0BEDB71} = {F68095EE-6CD1-43A2-B498-6CA72CE2A0CB}
205+
{00D43B88-09EA-9310-748A-814C451E2589} = {F68095EE-6CD1-43A2-B498-6CA72CE2A0CB}
191206
EndGlobalSection
192207
GlobalSection(ExtensibilityGlobals) = postSolution
193208
SolutionGuid = {9359773D-6399-447E-9814-6CB41C2FB664}

src/LibRed/Formats/Jet12Format.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace LibRed.Formats
6+
{
7+
internal class Jet12Format : Jet4Format
8+
{
9+
}
10+
}

src/LibRed/Formats/Jet14Format.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace LibRed.Formats
6+
{
7+
internal class Jet14Format : Jet12Format
8+
{
9+
}
10+
}

src/LibRed/Formats/Jet16Format.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace LibRed.Formats
6+
{
7+
internal class Jet16Format : Jet14Format
8+
{
9+
}
10+
}

src/LibRed/Formats/Jet17Format.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace LibRed.Formats
6+
{
7+
internal class Jet17Format : Jet16Format
8+
{
9+
}
10+
}

src/LibRed/Formats/Jet3Format.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace LibRed.Formats
6+
{
7+
internal class Jet3Format : JetFormatBase
8+
{
9+
}
10+
}

src/LibRed/Formats/Jet4Format.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace LibRed.Formats
6+
{
7+
internal class Jet4Format : JetFormatBase
8+
{
9+
public Jet4Format()
10+
{
11+
PageSize = 4096; // Default page size for Jet 4.0
12+
}
13+
}
14+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace LibRed.Formats
6+
{
7+
internal abstract class JetFormatBase
8+
{
9+
// Database definition page constants
10+
public int PageSize { get; protected set; } = 2048; // Default page size for Jet formats
11+
public int VersionOffset { get; protected set; } = 0x14;
12+
}
13+
}

src/LibRed/Formats/JetVersion.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
namespace LibRed.Formats
2+
{
3+
public enum JetVersion
4+
{
5+
Version3 = 0x0,
6+
Version4 = 0x1,
7+
Version12_2007 = 0x2,
8+
Version14_2010 = 0x3,
9+
Version15_2013 = 0x4,
10+
Version16_2016 = 0x5,
11+
Version17_2019 = 0x6,
12+
}
13+
}

src/LibRed/LibRed.csproj

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net10.0</TargetFramework>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<Folder Include="Pages\Jet3\" />
11+
<Folder Include="Pages\Jet4\" />
12+
<Folder Include="SQL\" />
13+
</ItemGroup>
14+
15+
</Project>

0 commit comments

Comments
 (0)