Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
问题既简单又复杂。我在 silverlight 及其服务中创建了一个数据模型。现在我已经更改了数据库。在其中一个表中添加了一个字段,并更新了数据模型。现在我必须更新我之前创建的服务。我不想删除以前的服务。有什么方法可以更新服务吗?
如果您的意思是 WCF RIA 服务域上下文,那么最好的选择是将您的修改保存在单独的部分类文件中。
这样,当您进行数据更改(例如添加新字段)时,您可以重新创建域上下文,而不必做太多的修改来适应它。