static void Main(string[] args) { try { var edmx = Edmx.Open("TestData/Test.edmx"); var tableConfigurator = new Modeler(edmx.Runtime.StorageModels.Schema, "Test.EF", "TestEntities"); foreach (var dataSetModel in tableConfigurator.DataSetModels) { dataSetModel.WriteFiles("Models"); } } catch (Exception e) { Debugger.Break(); } }