标签: c# sql entity-framework
是否可以从表的选定实体列表中创建备份/更新脚本?
var entities = context.Entities.Where(e => e.Id == id); var string GetBackupScript(entities); string GetBackupScript(IQueryable entities) { // return script that could be used for restoring the selected rows }