如何使用dbContext在动态表上检查动态条件
我在项目中对所有这些都是新手的,我在.NET Core 5和Dotnet Framework 5.0.17
现在使用DBContext和通用存储库,现在我要做的就是在SQL Server中以字符串格式存储一个条件
员工== 2
在我看来, 我陷入第一步的找到解决方案 任何提示或解决方案都将不胜感激。
I'm new To all Of this in my project i use dbcontext and generic Repository along .Net core 5 and dotnet frameWork 5.0.17
now here what I'm traying to do is Store a Condition in string format in sql server like
Employee.Id==2
in my mind 1st of all I must retrieve Employee then with help of predicate apply condition in where clause
and I'm stuck in find solution for 1st step
any hint or solution is appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论