Permalink
Browse files

Adding new Store ctor

  • Loading branch information...
sebastienros committed Apr 12, 2017
1 parent 9a69f71 commit 8b257b6cb4120ee230e0a68ec7d189e6f967e171
Showing with 27 additions and 13 deletions.
  1. +10 −10 pack.ps1
  2. +16 −2 src/YesSql.Core/Services/Store.cs
  3. +1 −1 src/YesSql.Core/YesSql.Core.csproj
View
@@ -1,14 +1,14 @@
Remove-Item ".\artifacts\packages" -Recurse -ErrorAction Ignore
dotnet pack .\src\YesSql.Core -c release -o $pwd\artifacts\packages\YesSql.Core
dotnet pack .\src\YesSql.Core -c release -o $pwd\artifacts\packages
dotnet pack .\src\YesSql.Provider.InMemory -c release -o $pwd\artifacts\packages\YesSql.Provider.InMemory
dotnet pack .\src\YesSql.Provider.MySql -c release -o $pwd\artifacts\packages\YesSql.Provider.MySql
dotnet pack .\src\YesSql.Provider.PostgreSql -c release -o $pwd\artifacts\packages\YesSql.Provider.PostgreSql
dotnet pack .\src\YesSql.Provider.Sqlite -c release -o $pwd\artifacts\packages\YesSql.Provider.Sqlite
dotnet pack .\src\YesSql.Provider.SqlServer -c release -o $pwd\artifacts\packages\YesSql.Provider.SqlServer
dotnet pack .\src\YesSql.Provider.InMemory -c release -o $pwd\artifacts\packages
dotnet pack .\src\YesSql.Provider.MySql -c release -o $pwd\artifacts\packages
dotnet pack .\src\YesSql.Provider.PostgreSql -c release -o $pwd\artifacts\packages
dotnet pack .\src\YesSql.Provider.Sqlite -c release -o $pwd\artifacts\packages
dotnet pack .\src\YesSql.Provider.SqlServer -c release -o $pwd\artifacts\packages
dotnet pack .\src\YesSql.Storage.InMemory -c release -o $pwd\artifacts\packages\YesSql.Storage.InMemory
dotnet pack .\src\YesSql.Storage.Cache -c release -o $pwd\artifacts\packages\YesSql.Storage.Cache
dotnet pack .\src\YesSql.Storage.LightningDB -c release -o $pwd\artifacts\packages\YesSql.Storage.LightningDB
dotnet pack .\src\YesSql.Storage.Sql -c release -o $pwd\artifacts\packages\YesSql.Storage.Sql
dotnet pack .\src\YesSql.Storage.InMemory -c release -o $pwd\artifacts\packages
dotnet pack .\src\YesSql.Storage.Cache -c release -o $pwd\artifacts\packages
dotnet pack .\src\YesSql.Storage.LightningDB -c release -o $pwd\artifacts\packages
dotnet pack .\src\YesSql.Storage.Sql -c release -o $pwd\artifacts\packages
@@ -1,11 +1,11 @@
using Dapper;
using System;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Dapper;
using YesSql.Core.Collections;
using YesSql.Core.Commands;
using YesSql.Core.Data;
@@ -44,6 +44,20 @@ static Store()
// Add Type Handlers here
}
/// <summary>
/// Initializes a <see cref="Store"/> instance and its new <see cref="Configuration"/>.
/// </summary>
/// <param name="config">An action to execute on the <see cref="Configuration"/> of the new <see cref="Store"/> instance.</param>
public Store(Action<Configuration> config)
{
var configuration = new Configuration();
config?.Invoke(configuration);
}
/// <summary>
/// Initializes a <see cref="Store"/> instance using a specific <see cref="Configuration"/> instance.
/// </summary>
/// <param name="configuration">The <see cref="Configuration"/> instance to use.</param>
public Store(Configuration configuration)
{
IndexCommand.ResetQueryCache();
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Copyright>Sebastien Ros</Copyright>
<Version>2.0.0-beta-0014</Version>
<Version>2.0.0-beta-0015</Version>
<Authors>Sebastien Ros</Authors>
<TargetFrameworks>net451;netstandard1.5</TargetFrameworks>
<DebugType>portable</DebugType>

0 comments on commit 8b257b6

Please sign in to comment.