entity 实体模型timeout设置
public Entities(): base("name=Entities") { var adapter = (IObjectContextAdapter)this; var objectContext = adapter.ObjectContext; objectContext.CommandTimeout = 20 * 60; // 单位为秒 }
由于Entity的DB Frist实体数据模型设置连接字符串上的connect time 无效,
搜了一天的百度终于找到了这个!
网上学习时找到的,记下帮助学习
浙公网安备 33010602011771号