简体   繁体   English

.NET 核心实体框架

[英].NET Core Entity Framework

So we have one main application and then another smaller one that needs only to read from two tables from database.所以我们有一个主应用程序,然后是另一个只需要从数据库中读取两个表的较小应用程序。 My question is: do I still need to implement all the models for each table or am I good just with the 2 I actually need.我的问题是:我是否仍然需要为每个表实现所有模型,还是我只使用我实际需要的 2 个模型。

You can use just the 2 models you need.您可以只使用您需要的 2 个模型。 Consider creating a shared library that both applications can use.考虑创建一个两个应用程序都可以使用的共享库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM