Skip to content

Commit 04c06cb

Browse files
committed
🐞fix: Remove new() constraint from TFilter
1 parent b1e8d04 commit 04c06cb

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

src/Simpleverse.Repository.Db/Entity/ProjectedEntity.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class ProjectedEntity<TProjection, TModel, TUpdate, TFilter, TOptions>
1313
IProjectedEntity<TProjection, TModel, TUpdate, TFilter, TOptions>
1414
where TProjection : class, IProject<TModel>
1515
where TModel : class, new()
16-
where TFilter : class, new()
16+
where TFilter : class
1717
where TUpdate : class
1818
where TOptions : DbQueryOptions, new()
1919
{
@@ -199,7 +199,7 @@ public class ProjectedEntity<TProjection, TModel, TFilter, TOptions>
199199
: ProjectedEntity<TProjection, TModel, TModel, TFilter, TOptions>, IProjectedEntity<TProjection, TModel, TFilter, TOptions>
200200
where TProjection : class, IProject<TModel>
201201
where TModel : class, new()
202-
where TFilter : class, new()
202+
where TFilter : class
203203
where TOptions : DbQueryOptions, new()
204204
{
205205
public ProjectedEntity(IEntity<TModel, TFilter, TOptions> entity)

src/Simpleverse.Repository.Db/Simpleverse.Repository.Db.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
1414
<PackageTags>Dapper, Bulk, Merge, Upsert, Delete, Insert, Update, Repository</PackageTags>
1515
<PackageLicenseFile>LICENSE</PackageLicenseFile>
16-
<Version>2.1.5</Version>
16+
<Version>2.1.6</Version>
1717
<Description>High performance operation for MS SQL Server built for Dapper ORM. Including bulk operations Insert, Update, Delete, Get as well as Upsert both single and bulk.</Description>
18-
<AssemblyVersion>2.1.5.0</AssemblyVersion>
19-
<FileVersion>2.1.5.0</FileVersion>
18+
<AssemblyVersion>2.1.6.0</AssemblyVersion>
19+
<FileVersion>2.1.6.0</FileVersion>
2020
<RepositoryUrl>https://github.com/lukaferlez/Simpleverse.Repository</RepositoryUrl>
2121
<PackageReadmeFile>README.md</PackageReadmeFile>
2222
<EmbedAllSources>true</EmbedAllSources>

src/Simpleverse.Repository/Entity/ProjectedEntity.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class ProjectedEntity<TProjection, TEntity, TModel, TUpdate, TFilter, TOp
1313
where TProjection : class, IProject<TModel>
1414
where TEntity : IEntity<TModel, TUpdate, TFilter, TOptions>
1515
where TModel : class, new()
16-
where TFilter : class, new()
16+
where TFilter : class
1717
where TUpdate : class
1818
where TOptions : class, new()
1919
{
@@ -197,7 +197,7 @@ public class ProjectedEntity<TProjection, TModel, TUpdate, TFilter, TOptions>
197197
: ProjectedEntity<TProjection, IEntity<TModel, TUpdate, TFilter, TOptions>, TModel, TUpdate, TFilter, TOptions>
198198
where TProjection : class, IProject<TModel>
199199
where TModel : class, new()
200-
where TFilter : class, new()
200+
where TFilter : class
201201
where TUpdate : class
202202
where TOptions : class, new()
203203
{
@@ -216,7 +216,7 @@ public class ProjectedEntity<TProjection, TModel, TFilter, TOptions>
216216
: ProjectedEntity<TProjection, TModel, TModel, TFilter, TOptions>, IProjectedEntity<TProjection, TModel, TFilter, TOptions>
217217
where TProjection : class, IProject<TModel>
218218
where TModel : class, new()
219-
where TFilter : class, new()
219+
where TFilter : class
220220
where TOptions : class, new()
221221
{
222222
public ProjectedEntity(IEntity<TModel, TFilter, TOptions> entity)

src/Simpleverse.Repository/Simpleverse.Repository.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
1414
<PackageTags>Repository</PackageTags>
1515
<PackageLicenseFile>LICENSE</PackageLicenseFile>
16-
<Version>1.1.5</Version>
16+
<Version>1.1.6</Version>
1717
<Description>Base repository elements.</Description>
18-
<AssemblyVersion>1.1.5.0</AssemblyVersion>
19-
<FileVersion>1.1.5.0</FileVersion>
18+
<AssemblyVersion>1.1.6.0</AssemblyVersion>
19+
<FileVersion>1.1.6.0</FileVersion>
2020
<RepositoryUrl>https://github.com/lukaferlez/Simpleverse.Repository</RepositoryUrl>
2121
<PackageReadmeFile>README.md</PackageReadmeFile>
2222
<!-- Optional: Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->

0 commit comments

Comments
 (0)