How is it possible to create an entity in the visual studio designer and generate a table from it? I find it much easier to generate my entities within VS than to create a table in SQL Server.
如何在visual studio设计器中创建一个实体并从中生成一个表?我发现在VS中生成实体比在SQL Server中创建表更容易。
Also, if I do generate an entity from table, is it possible to make changes to the entity and push them to the table?
另外,如果我从表中生成实体,是否可以对实体进行更改并将它们推送到表中?
1 个解决方案
#1
EF, at least in the current version, doesn't support this. There isn't a mechanism to create the database; likewise, when you resync, it updates the model from the database.
EF,至少在当前版本中,不支持这一点。没有创建数据库的机制;同样,当您重新同步时,它会从数据库更新模型。
Perhaps use "data dude" (VS2008 Database Edition) to make your changes at the database?
也许使用“数据花花公子”(VS2008数据库版)在数据库中进行更改?
#1
EF, at least in the current version, doesn't support this. There isn't a mechanism to create the database; likewise, when you resync, it updates the model from the database.
EF,至少在当前版本中,不支持这一点。没有创建数据库的机制;同样,当您重新同步时,它会从数据库更新模型。
Perhaps use "data dude" (VS2008 Database Edition) to make your changes at the database?
也许使用“数据花花公子”(VS2008数据库版)在数据库中进行更改?