标签:
通过下面的代码,你就可以拿到EF心中的地图 —— edmx文件。
using (var context = new Context()) { XmlWriterSettings settings = new XmlWriterSettings(); settings.Indent = true; using (XmlWriter writer = XmlWriter.Create(@"Model.edmx", settings)) { EdmxWriter.WriteEdmx(context, writer); } }
标签:
原文地址:http://www.cnblogs.com/dongshuangjie/p/4832644.html