数据插入数据库时,提示表名不存在

在Service中,this.BaseRepository("ThreeYearFighting").Insert(entity);

黄色部分一定要填写表名对应的数据库,否则默认为服务器上默认的数据库,可能是BaseDB等。

猜你喜欢

转载自www.cnblogs.com/XYYCKL/p/9967377.html