Skip to content
This repository was archived by the owner on May 7, 2020. It is now read-only.

Commit 351ce96

Browse files
authored
Merge pull request #149 from stoveproject/dev
dev to master
2 parents 5ed7c89 + bf616e1 commit 351ce96

40 files changed

+641
-361
lines changed

common.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<VersionPrefix>2.3.6</VersionPrefix>
3+
<VersionPrefix>2.4.0</VersionPrefix>
44
<NoWarn>$(NoWarn);CS1591</NoWarn>
55
<PackageIconUrl>https://raw.githubusercontent.com/osoykan/Stove/master/stove.png</PackageIconUrl>
66
<PackageProjectUrl>https://github.com/osoykan/Stove</PackageProjectUrl>

src/Stove.Dapper/Stove.Dapper.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
<ItemGroup>
3131
<PackageReference Include="Dapper" Version="1.50.5" />
3232
<PackageReference Include="DapperExtensions.DotnetCore" Version="1.0.1" />
33-
<PackageReference Include="System.Data.SqlClient" Version="4.4.3" />
33+
<PackageReference Include="System.Data.SqlClient" Version="4.5.0" />
3434
</ItemGroup>
3535
</Project>

src/Stove.EntityFrameworkCore/EntityFrameworkCore/Repositories/EfCoreRepositoryBase{TEntity,TPrimaryKey}.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ namespace Stove.EntityFrameworkCore.Repositories
2525
/// <typeparam name="TPrimaryKey">Primary key of the entity</typeparam>
2626
public class EfCoreRepositoryBase<TDbContext, TEntity, TPrimaryKey> :
2727
StoveRepositoryBase<TEntity, TPrimaryKey>,
28-
ISupportsExplicitLoading<TEntity, TPrimaryKey>,
2928
IRepositoryWithDbContext
3029
where TEntity : class, IEntity<TPrimaryKey>
3130
where TDbContext : DbContext

src/Stove.EntityFrameworkCore/EntityFrameworkCore/StoveEntityMaterializerSource.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,25 @@ public class StoveEntityMaterializerSource : EntityMaterializerSource
1414
private static readonly MethodInfo NormalizeDateTimeMethod = typeof(StoveEntityMaterializerSource).GetTypeInfo().GetMethod(nameof(NormalizeDateTime), BindingFlags.Static | BindingFlags.NonPublic);
1515
private static readonly MethodInfo NormalizeNullableDateTimeMethod = typeof(StoveEntityMaterializerSource).GetTypeInfo().GetMethod(nameof(NormalizeNullableDateTime), BindingFlags.Static | BindingFlags.NonPublic);
1616

17-
public override Expression CreateReadValueExpression(Expression valueBuffer, Type type, int index, IProperty property = null)
17+
public override Expression CreateReadValueExpression(Expression valueBuffer, Type type, int index, IPropertyBase propertyBase)
1818
{
1919
if (type == typeof(DateTime))
2020
{
2121
return Expression.Call(
2222
NormalizeDateTimeMethod,
23-
base.CreateReadValueExpression(valueBuffer, type, index, property)
23+
base.CreateReadValueExpression(valueBuffer, type, index, propertyBase)
2424
);
2525
}
2626

2727
if (type == typeof(DateTime?))
2828
{
2929
return Expression.Call(
3030
NormalizeNullableDateTimeMethod,
31-
base.CreateReadValueExpression(valueBuffer, type, index, property)
31+
base.CreateReadValueExpression(valueBuffer, type, index, propertyBase)
3232
);
3333
}
3434

35-
return base.CreateReadValueExpression(valueBuffer, type, index, property);
35+
return base.CreateReadValueExpression(valueBuffer, type, index, propertyBase);
3636
}
3737

3838
private static DateTime NormalizeDateTime(DateTime value)

src/Stove.EntityFrameworkCore/EntityFrameworkCore/Uow/EfCoreUnitOfWork.cs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -167,18 +167,5 @@ protected virtual void Release(DbContext dbContext)
167167
{
168168
dbContext.Dispose();
169169
}
170-
171-
//private static void ObjectContext_ObjectMaterialized(DbContext dbContext, ObjectMaterializedEventArgs e)
172-
//{
173-
// dbContext.Configuration.AutoDetectChangesEnabled = true;
174-
175-
// dbContext.Entry(e.Entity).State = previousState;
176-
177-
// DateTimePropertyInfoHelper.NormalizeDatePropertyKinds(e.Entity, entityType);
178-
// var previousState = dbContext.Entry(e.Entity).State;
179-
180-
// dbContext.Configuration.AutoDetectChangesEnabled = false;
181-
// var entityType = ObjectContext.GetObjectType(e.Entity.GetType());
182-
//}
183-
}
170+
}
184171
}

src/Stove.EntityFrameworkCore/Stove.EntityFrameworkCore.csproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@
1919
</ItemGroup>
2020

2121
<ItemGroup>
22-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.0.3" />
23-
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="2.0.3" />
22+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.1.0" />
23+
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="2.1.0" />
24+
<PackageReference Include="Microsoft.EntityFrameworkCore.Proxies" Version="2.1.0" />
25+
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" />
2426
</ItemGroup>
2527

2628
<ItemGroup>

src/Stove.NHibernate/Stove.NHibernate.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
<ItemGroup>
2020
<PackageReference Include="FluentNHibernate" Version="2.1.2" />
21-
<PackageReference Include="Microsoft.CSharp" Version="4.4.1" />
21+
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" />
2222
<PackageReference Include="NHibernate" Version="5.1.2" />
2323
</ItemGroup>
2424

src/Stove.NLog/Stove.NLog.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@
2727
</ItemGroup>
2828

2929
<ItemGroup>
30-
<PackageReference Include="NLog" Version="4.5.5" />
30+
<PackageReference Include="NLog" Version="4.5.6" />
3131
</ItemGroup>
3232
</Project>

src/Stove.WebApi/Stove.WebApi.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.0.3" />
15-
<PackageReference Include="Microsoft.Extensions.Options" Version="2.0.2" />
14+
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.1.0" />
15+
<PackageReference Include="Microsoft.Extensions.Options" Version="2.1.0" />
1616
</ItemGroup>
1717

1818
<ItemGroup>

src/Stove/Domain/Repositories/ISupportsExplicitLoading.cs

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)