-
Notifications
You must be signed in to change notification settings - Fork 6
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 #13 from mocoding-software/split
Extracted file storage to target NetStandard 1.0
- Loading branch information
Showing
20 changed files
with
231 additions
and
80 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": ".NET Core Launch (console)", | ||
"type": "coreclr", | ||
"request": "launch", | ||
"preLaunchTask": "build", | ||
"program": "${workspaceRoot}/examples/ConsoleApp/bin/Debug/netcoreapp1.0/ConsoleApp.dll", | ||
"args": [], | ||
"cwd": "${workspaceRoot}", | ||
"externalConsole": false, | ||
"stopAtEntry": false, | ||
"internalConsoleOptions": "openOnSessionStart" | ||
}, | ||
{ | ||
"name": ".NET Core Attach", | ||
"type": "coreclr", | ||
"request": "attach", | ||
"processId": "${command.pickProcess}" | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"version": "0.1.0", | ||
"command": "dotnet", | ||
"isShellCommand": true, | ||
"args": [], | ||
"tasks": [ | ||
{ | ||
"taskName": "build", | ||
"args": [ | ||
"${workspaceRoot}/examples/ConsoleApp/project.json" | ||
], | ||
"isBuildCommand": true, | ||
"problemMatcher": "$msCompile" | ||
} | ||
] | ||
} |
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
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
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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace Mocoding.EasyDocDb.FileSystem | ||
{ | ||
public class EmbeddedRepository : Repository | ||
{ | ||
public EmbeddedRepository(IDocumentSerializer serializer) | ||
: base(serializer, new EmbeddedStorage()) | ||
{ | ||
} | ||
|
||
public EmbeddedRepository(IDocumentSerializer serializer, IDocumentStorage storage) | ||
: base(serializer, storage) | ||
{ | ||
} | ||
} | ||
} |
5 changes: 3 additions & 2 deletions
5
...ocoding.EasyDocDb/Core/EmbeddedStorage.cs → ...g.EasyDocDb.FileSystem/EmbeddedStorage.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
18 changes: 18 additions & 0 deletions
18
src/Mocoding.EasyDocDb.FileSystem/Mocoding.EasyDocDb.FileSystem.xproj
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion> | ||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> | ||
</PropertyGroup> | ||
<Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.Props" Condition="'$(VSToolsPath)' != ''" /> | ||
<PropertyGroup Label="Globals"> | ||
<ProjectGuid>f818ecaf-cbc8-4a48-a8a3-f54025000be2</ProjectGuid> | ||
<RootNamespace>Mocoding.EasyDocDb.FileSystem</RootNamespace> | ||
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">..\..\artifacts\obj\$(MSBuildProjectName)</BaseIntermediateOutputPath> | ||
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
</PropertyGroup> | ||
<Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.targets" Condition="'$(VSToolsPath)' != ''" /> | ||
</Project> |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"version": "2.0.0", | ||
"description": "Embedded storage for EasyDocDb - stores documents as files on a local drive.", | ||
"packOptions": { | ||
"summary": "Implementation of IRepository for EasyDocDb that stores document files locally.", | ||
"tags": [ "netcore", "embedded", "database", "document db", "nosql", "docdb", "json", "serializer" ], | ||
"owners": [ "MOCODING, LLC" ], | ||
"releaseNotes": "Extracted from Core library. Added support for .NetStandard 1.3", | ||
"projectUrl": "https://github.com/mocoding-software/easy-doc-db", | ||
"iconUrl": "https://mocoding.blob.core.windows.net/resources/easy-doc-db/nugetIcon.png", | ||
"licenseUrl": "https://raw.githubusercontent.com/mocoding-software/easy-doc-db/master/LICENSE", | ||
"requireLicenseAcceptance": false, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/mocoding-software/easy-doc-db" | ||
} | ||
}, | ||
"buildOptions": { | ||
"additionalArguments": [ "/ruleset:../../_stylecop/StyleCop.ruleset" ] | ||
}, | ||
"frameworks": { | ||
"netstandard1.3": { } | ||
}, | ||
"dependencies": { | ||
"System.IO.FileSystem": "4.3.0", | ||
"Mocoding.EasyDocDb": { | ||
"target": "project" | ||
}, | ||
"StyleCop.Analyzers": "1.0.0" | ||
} | ||
} |
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
Oops, something went wrong.