EntityFrameworkCore.IncludeFilter:过滤EntityFramework中查询中包含的实体

时间:2024-05-20 10:40:40
【文件属性】:

文件名称:EntityFrameworkCore.IncludeFilter:过滤EntityFramework中查询中包含的实体

文件大小:16KB

文件格式:ZIP

更新时间:2024-05-20 10:40:40

C#

EntityFrameworkCore.IncludeFilter 根据EntityFrameworkCore 2.1.0进行了修改 如何使用: public void ConfigureServices ( IServiceCollection services ) { ... services . AddDbContext < DbContext>( options => options . UseSqlServer ( " connection_string " ) . AddIncludeWithFilterMethods ()); ... } var children = dbContext . Parent . IncludeWithFilter ( p => p . Children , c => c . Active )


【文件预览】:
EntityFrameworkCore.IncludeFilter-master
----global.json(94B)
----.gitignore(4KB)
----EntityFrameworkCore.IncludeFilter.sln(1KB)
----NOTICE.txt(694B)
----LICENSE.txt(2KB)
----README.md(630B)
----EntityFrameworkCore.IncludeFilter()
--------EntityFrameworkCore.IncludeFilter.csproj(949B)
--------ReplaceThenIncludeExpressionNode.cs(2KB)
--------DbContextOptionsBuilderExtensions.cs(614B)
--------ReplaceModelExpressionApplyingExpressionVisitor.cs(9KB)
--------ReplaceRelationalQueryModelVisitor.cs(1KB)
--------QueryableExtensions.cs(4KB)
--------ReplaceIncludeExpressionNode.cs(3KB)
--------ReplaceMethodInfoBasedNodeTypeRegistryFactory.cs(961B)
--------ExpressionExtensions.cs(2KB)
--------ReplaceRelationalQueryModelVisitorFactory.cs(909B)
----.gitattributes(2KB)

网友评论