//第一步,创建实体 public void CreateEntity() { var connectionStr = "server=127.0.0.1;user id=root;password=1234;database=test;allowuservariables=True;SslMode=none;"; var dataBase = "test"; CodeFactory.MakeEntity(connectionStr, dataBase, "FrameworkDemo", @"../../../../FrameworkDemo.Entity"); }