Skip to content

Commit

Permalink
Merge pull request #2 from HeLinSpace/add-license-1
Browse files Browse the repository at this point in the history
Add license 1
  • Loading branch information
HeLinSpace authored Oct 27, 2022
2 parents 7df22ac + b127047 commit 7f66f0b
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 4 deletions.
10 changes: 10 additions & 0 deletions IThink.Sqlsugar/IThink.Sqlsugar.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
<Description>基于ORM Sqlsugar进行二次封装</Description>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<PackageProjectUrl>https://github.com/HeLinSpace/IThink.Sqlsugar</PackageProjectUrl>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<Version>1.0.3</Version>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<IncludeSymbols>True</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PackageReleaseNotes>修复分页查询问题</PackageReleaseNotes>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand All @@ -30,6 +36,10 @@
<None Update="ServiceStack.Text.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="..\LICENSE">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion IThink.Sqlsugar/Model/PageQueryRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public int PageNumber
{
if (value != 0)
{
this._pageSize = value;
this._pageNumber = value;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion IThink.Sqlsugar/Repository/ISqlSugarRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public interface ISqlSugarRepository
/// <summary>
/// 上下文对象
/// </summary>
//BaseSqlSugarClient DbContext { get; }
BaseSqlSugarClient DbContext { get; }

/// <summary>
/// 返回指定Db实例
Expand Down
2 changes: 1 addition & 1 deletion IThink.Sqlsugar/Repository/SqlSugarRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public SqlSugarRepository(IEnumerable<BaseSqlSugarClient> clients)
/// <summary>
/// 上下文对象
/// </summary>
private BaseSqlSugarClient DbContext { get; set; }
public BaseSqlSugarClient DbContext { get; private set; }

/// <summary>
/// 返回指定Db实例
Expand Down
2 changes: 1 addition & 1 deletion IThink.Sqlsugar/SqlSugarExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static IServiceCollection AddSqlSugar(this IServiceCollection services, S
{
if (redisConfig == null)
{
throw new ArgumentNullException(typeof(RedisConfig).Name);
throw new ArgumentNullException(nameof(RedisConfig));
}

var instance = new RedisCache(redisConfig);
Expand Down
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 HeLinSpace

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

0 comments on commit 7f66f0b

Please sign in to comment.