private void eFContextToolStripMenuItem_Click(object sender, EventArgs e) { string dir = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory); List <TableModel> tablenames = BLLFactory.Instance.idb.GetTableModelList(Utils.dbName, true); EntityFrameworkBuild entityframework = new EntityFrameworkBuild(); entityframework.BuildDbContext(dir, tablenames); MessageBox.Show("已经生成到桌面的LCL文件夹下!!!", "提示"); }
public static IBuild FactoryBuild(BuildType buildtype) { IBuild ibuild = null; switch (buildtype) { case BuildType.WebBuild: break; case BuildType.WPFBuild: break; case BuildType.WCFBuild: break; case BuildType.EntityFrameworkBuild: ibuild = new EntityFrameworkBuild(); break; } return ibuild; }
public static IBuild FactoryBuild(BuildType buildtype) { IBuild ibuild = null; switch (buildtype) { case BuildType.WebBuild: break; case BuildType.WPFBuild: break; case BuildType.WCFBuild: break; case BuildType.EntityFrameworkBuild: ibuild = new EntityFrameworkBuild(); break; } return(ibuild); }
private void eFContextToolStripMenuItem_Click(object sender, EventArgs e) { string dir = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory); List<TableModel> tablenames = BLLFactory.Instance.idb.GetTableModelList(Utils.dbName, true); EntityFrameworkBuild entityframework = new EntityFrameworkBuild(); entityframework.BuildDbContext(dir, tablenames); MessageBox.Show("已经生成到桌面的LCL文件夹下!!!", "提示"); }