Example #1
0
        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文件夹下!!!", "提示");
        }
Example #2
0
 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;
 }
Example #3
0
        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);
        }
Example #4
0
 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文件夹下!!!", "提示");
 }