从所选实体创建SQL更新/备份脚本

时间:2015-05-27 11:42:04

标签: 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
}

0 个答案:

没有答案