Skip to content

Commit

Permalink
Downgrade DOLDatabase and DOLBase to netstandard2.0
Browse files Browse the repository at this point in the history
Make it usable by Net Framework projects like DOLToolbox
  • Loading branch information
NetDwarf committed Oct 15, 2023
1 parent e3e2b17 commit 4896f47
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DOLBase/DOLBase.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</PropertyGroup>
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>netstandard2.0</TargetFramework>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<OutputType>Library</OutputType>
Expand Down
2 changes: 1 addition & 1 deletion DOLDatabase/DOLDatabase.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</PropertyGroup>
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>netstandard2.0</TargetFramework>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<OutputType>Library</OutputType>
Expand Down
6 changes: 3 additions & 3 deletions DOLDatabase/WhereClause.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace DOL.Database
{
public class WhereClause
{
internal virtual ParameterizedExpression expression { get; init; }
internal virtual ParameterizedExpression expression { get; }

private WhereClause(ParameterizedExpression expr)
{
Expand Down Expand Up @@ -125,8 +125,8 @@ private string GetPlaceHolder(uint id)

internal class ParameterizedExpression
{
public string QueryText { get; init; }
public object[] Parameters { get; init; }
public string QueryText { get; }
public object[] Parameters { get; }

public ParameterizedExpression(string queryText, params object[] parameters)
{
Expand Down

0 comments on commit 4896f47

Please sign in to comment.